Android基于ViewPager Fragment实现选项卡

2019-12-10 19:50:37王旭
  • <RelativeLayout xmlns:android="http://www.easck.com/apk/res/android"  android:layout_width="fill_parent" 
  • android:layout_height="fill_parent"  android:background="#ff0000ff" >  
  • <Button   android:id="@+id/mybutton" 
  • android:layout_width="wrap_content"  android:layout_height="wrap_content" 
  • android:text="hit me"  android:gravity="center"/>  
  • </RelativeLayout>   [html] view plaincopy 
  • <?xml version="1.0" encoding="utf-8"?>   <RelativeLayout xmlns:android="http://www.easck.com/apk/res/android" 
  • android:layout_width="fill_parent"  android:layout_height="fill_parent" 
  • android:orientation="vertical"  android:background="#158684" >  
  • <TextView   android:id="@+id/tv" 
  • android:layout_width="wrap_content"  android:layout_height="wrap_content" 
  • android:text="TextView" />   </RelativeLayout> 


    注:相关教程知识阅读请移步到Android开发频道。