mainactivity界面布局
frag1布局界面
<android.support.design.widget.TabLayout
android:id="@+id/tab"
android:layout_width="match_parent"
android:layout_height="wrap_content"
/>
</LinearLayout>
<android.support.v4.view.ViewPager
android:id="@+id/viewpager"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
/>
frag2界面就一个banner
<com.youth.banner.Banner
android:id="@+id/banner"
android:layout_width=“match_parent”
android:layout_height=“300dp”/>
frag3布局界面侧滑
<android.support.v4.widget.DrawerLayout
android:id="@+id/draw"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="left"
android:background="#0ff"
android:orientation="vertical"
>
<ImageView
android:id="@+id/img"
android:layout_width="match_parent"
android:layout_height="90dp"
android:src="@mipmap/ic_launcher"/>
</LinearLayout>
</android.support.v4.widget.DrawerLayout>
tab1布局 pull
<com.handmark.pulltorefresh.library.PullToRefreshListView
android:id="@+id/pull"
android:layout_width=“match_parent”
android:layout_height=“wrap_content”/>