a.xml

<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.DrawerLayout 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"
tools:context="com.example.week2.MainActivity"
android:id="@+id/zong">

<RelativeLayout
android:id="@+id/menu"
android:layout_width="170dp"
android:layout_height="match_parent"
android:layout_gravity="start"
android:background="#0f0"
>

<Button
android:id="@+id/but_Guan"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="关闭"/>

</RelativeLayout>

<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">

<android.support.design.widget.TabLayout
android:id="@+id/tab"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:tabGravity="center"
app:tabIndicatorColor="@color/colorAccent"
app:tabMode="scrollable"
app:tabSelectedTextColor="@color/colorPrimaryDark"
app:tabTextColor="#0f0"/>

<android.support.v4.view.ViewPager
android:id="@+id/ViewPager"
android:layout_width="match_parent"
android:layout_height="match_parent">

</android.support.v4.view.ViewPager>


</LinearLayout>

 

 


</android.support.v4.widget.DrawerLayout>

posted @ 2017-12-11 08:26  代码的搬运工头  阅读(180)  评论(0编辑  收藏  举报