JLChen
2021-03-16 3617e6eecac94965554487afc50d39b0584324fb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/drawer_layout"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    tools:context="android.serialport.api.sample.MainActivity" >
 
    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent" >
 
        <include
            android:id="@+id/TabLayout"
            android:layout_width="match_parent"
            android:layout_height="50dp"
            layout="@layout/tab" />
 
        <ImageView
            android:id="@+id/tab_image"
            android:layout_width="100dp"
            android:layout_height="3dp"
            android:layout_below="@id/TabLayout"
            android:background="#FF000000" />
 
        <android.support.v4.view.ViewPager
            android:id="@+id/mViewPager"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_below="@id/tab_image" />
        
    </RelativeLayout>
 
    <fragment
        android:id="@+id/navigation_drawer"
        android:name="android.serialport.api.sample.NavigationDrawerFragment"
        android:layout_width="400dp"
        android:layout_height="match_parent"
        android:layout_gravity="start"
        tools:layout="@layout/fragment_navigation" />
 
</android.support.v4.widget.DrawerLayout>