Tabs with fontawesome support.
Tabs with fontawesome support. This library is created to customize the feel for tabs. Now you can add images using fontawesome. Customize the color for the tab image and its indicator according to your need.
No need to use png files and hence reduce your apk size.
Sample screen 1
Sample screen 2
Import this library as a library project in your workspace and reference your project with this library.
com.tabswithfontawesome.views.TabLayout
android:id="@+id/tabLayout"
android:layout_width="match_parent"
android:layout_height="48dp"
tab:tab_background_color="#95a5a6"
tab:tab_child_count="5"
tab:tab_image_focussed_color="#e74c3c"
tab:tab_image_size="20"
tab:tab_image_unfocussed_color="#bdc3c7"
tab:tab_indicator_focussed_color="#e74c3c"
tab:tab_indicator_unfocussed_color="#bdc3c7" >
TabLayout tabLayout = (TabLayout)findViewById(R.id.tabLayout);
tabLayout.setTabImagesArray(getResources().getStringArray(R.array.image_array));
tabLayout.setTabClickListener(this);
tabLayout.attachViewPager(pager);
tabLayout.createTabs();
Add FontAwesome.otf file for fontawesome library
<string-array name="image_array">
<item></item>
<item></item>
<item></item>
<item></item>
</string-array>