Skip to content

Instantly share code, notes, and snippets.

@manishkpr
Created December 30, 2016 09:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save manishkpr/2a95772298a0e2abed66a1475a82b03a to your computer and use it in GitHub Desktop.
Save manishkpr/2a95772298a0e2abed66a1475a82b03a to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@color/white"
android:orientation="vertical" >
<TableLayout
style="@style/layout_f_w"
android:stretchColumns="*" >
<TableRow
android:id="@+id/tableRow1"
android:background="#dddddd"
style="@style/layout_wrap">
<!-- First Tab -->
<LinearLayout
style="@style/layout_f_w"
android:id="@+id/first_text"
android:orientation="vertical" >
<TextView
android:id="@+id/textView1"
style="@style/text_title"
android:text="Tab1" />
</LinearLayout>
<!-- Second Tab -->
<LinearLayout
style="@style/layout_f_w"
android:id="@+id/second_text"
android:orientation="vertical" >
<TextView
android:id="@+id/textView1"
style="@style/text_title"
android:text="Tab2" />
</LinearLayout>
</TableRow>
</TableLayout>
<!-- Include Tab Indicator -->
<include layout="@layout/indicator" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<android.support.v4.view.ViewPager
android:layout_width="fill_parent" android:layout_height="fill_parent"
android:id="@+id/viewPager" />
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment