SHARE
TWEET

Tab Fragment Tutorial - Layouts - simple_tab.xml

ncosentino Oct 30th, 2013 1,482 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!--
  2. Blog Post:
  3. http://devleader.ca/2013/11/04/fragments-tabbed-android-user-interface
  4.  
  5. Layouts:
  6. activity_main.xml: http://pastebin.com/kj8M38Ze
  7. fragment_tabs.xml: http://pastebin.com/0b7HAeAK
  8. simple_tab.xml: http://pastebin.com/9SqLbS0X
  9.  
  10. Classes:
  11. MainActivity.java: http://pastebin.com/eBv3H775
  12. SimpleTabDefinition.java: http://pastebin.com/wW3WCcy9
  13. TabDefinition.java: http://pastebin.com/KSRV2f3U
  14. TabsFragment.java: http://pastebin.com/9Asv7AVH
  15. -->
  16. <?xml version="1.0" encoding="utf-8"?>
  17. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  18.    android:layout_width="wrap_content"
  19.    android:layout_height="wrap_content"
  20.    android:orientation="vertical" >
  21.  
  22.     <TextView
  23.        android:id="@+id/tabTitle"
  24.        android:layout_width="fill_parent"
  25.        android:layout_height="wrap_content"
  26.        android:textAppearance="?android:attr/textAppearanceLarge" />
  27.  
  28. </LinearLayout>
RAW Paste Data
Top