SO here is the image of how its look.
1. Create a new project.
1. Create a new project in Android Studio from File ⇒ New Project and select Empty Activity from templates.or you can choose your existing project.
2. Add this dependency to your app/build.gradle. And Sync the project.
3. Now open your activity_main.xml file and past this code /app/src/main/res/layout/activity_main.xml
4. Now create a new layout under the layout folder and name it as content_main.xml and past this code.
5. Now open MainActivity.java file and paste this code
That’s it now you can run your project and see how its look…
Thanks for your time you can see the original code from GitHub -> Download Full Source Code