This project deals with learning how to create layouts using fragments in an activity in Android Studio.
- Create new project
- Create new fragment
click right directory *app > Fragment > Fragment (Blank)*
before click button finish, uncheck “Include fragment factory methods?“ and “include interface callbacks“.
- Edit activity_main.xml - to create view application.
- Edit Layout Fragment fragment_tampilan.xml - to create view in fragment layout
- Add action button in class TampilanFragment.java
- Edit class MainActivity.java
- You can Build or Run to test your application.