Created
August 17, 2016 02:24
-
-
Save cakfan/7b7499b6c3caeabd1854347d4706e587 to your computer and use it in GitHub Desktop.
Sliding Tab Layout using Font Awesome
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
<?xml version="1.0" encoding="utf-8"?> | |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:orientation="vertical" | |
tools:context="com.taufan.materialdesigntheme.MainActivity"> | |
<include | |
android:id="@+id/toolbar" | |
layout="@layout/toolbar" /> | |
<android.support.design.widget.TabLayout | |
android:id="@+id/tabs" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:background="@color/putih" | |
app:tabGravity="fill" | |
app:tabIndicatorColor="@color/colorPrimary" | |
app:tabMode="fixed" | |
app:tabSelectedTextColor="@color/colorPrimary" | |
app:tabTextAppearance="@style/tabTeksStyle" | |
app:tabTextColor="@color/teksColorPrimary" /> | |
<android.support.v4.view.ViewPager | |
android:id="@+id/pager" | |
android:layout_width="match_parent" | |
android:layout_height="0dp" | |
android:layout_weight="1" /> | |
</LinearLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment