Skip to content

Instantly share code, notes, and snippets.

View azlanjamal's full-sized avatar

Azlan Jamal azlanjamal

  • Selangor
View GitHub Profile
@azlanjamal
azlanjamal / Android Development Library.txt
Last active January 9, 2018 15:35
Android Development Library
Goal of these libraries is to achieve MVVM architecture.
- Data Binding
- RxJava2
- Android Priority Job Queue
- Room
- Dagger 2
- Retrofit
- Realm
@azlanjamal
azlanjamal / FragmentGuide.txt
Last active December 19, 2017 03:05
Fragment Guide
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" />