This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Goal of these libraries is to achieve MVVM architecture. | |
- Data Binding | |
- RxJava2 | |
- Android Priority Job Queue | |
- Room | |
- Dagger 2 | |
- Retrofit | |
- Realm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add Fragment through XML. | |
1. Create a xml for the fragment. | |
2. Create a class for the fragment and extend android.app.Fragment(for Honeycomb/API 11 and above). | |
3. Link fragment class with the xml created in step 1. Link them inside onCreateView method. | |
return inflater.inflate(R.layout.fragment_xml_name, container, false); | |
4. Add fragment to activity through xml file. Open activity's xml. | |
<fragment | |
android:id="@+id/fragment_xml_a" | |
class="FragmentXMLA" /> |