1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
- <layout >
3
- <LinearLayout xmlns : android =" http://schemas.android.com/apk/res/android"
4
- xmlns : tools =" http://schemas.android.com/tools"
5
- android : id =" @+id/activity_main"
6
- android : layout_width =" match_parent"
7
- android : layout_height =" match_parent"
8
- android : orientation =" vertical"
9
- tools : context =" com.wingsofts.gankclient.ui.activity.MainActivity" >
2
+ <layout xmlns : app =" http://schemas.android.com/apk/res-auto" >
10
3
11
- <Button
12
- android : id =" @+id/btn_fuck"
13
- android : layout_width =" wrap_content"
14
- android : layout_height =" wrap_content"
15
- android : text =" 手气不错" />
16
- <Button
17
- android : id =" @+id/btn_about"
18
- android : text =" 关于"
19
- android : layout_width =" wrap_content"
20
- android : layout_height =" wrap_content" />
21
-
22
- <android .support.v7.widget.RecyclerView
23
- android : background =" #f1f1f1"
24
- android : id =" @+id/recyclerView"
4
+ <android .support.design.widget.CoordinatorLayout xmlns : android =" http://schemas.android.com/apk/res/android"
5
+ xmlns : tools =" http://schemas.android.com/tools"
6
+ android : id =" @+id/activity_main"
25
7
android : layout_width =" match_parent"
26
8
android : layout_height =" match_parent"
27
- >
9
+ tools : context =" com.wingsofts.gankclient.ui.activity.MainActivity" >
10
+
11
+ <android .support.v4.view.ViewPager
12
+ android : id =" @+id/viewPager"
13
+ android : layout_width =" match_parent"
14
+ android : layout_height =" match_parent" >
15
+
16
+ </android .support.v4.view.ViewPager>
17
+ <android .support.design.widget.BottomNavigationView
18
+ android : id =" @+id/navigationView"
19
+ android : layout_gravity =" bottom"
20
+ android : layout_width =" match_parent"
21
+ android : layout_height =" wrap_content"
22
+ android : background =" @color/colorPrimary"
23
+ app : itemIconTint =" #fff"
24
+ app : itemTextColor =" #fff"
25
+ app : menu =" @menu/bottom"
26
+ >
27
+
28
+ </android .support.design.widget.BottomNavigationView>
28
29
29
- </android .support.v7.widget.RecyclerView>
30
- </LinearLayout >
30
+ </android .support.design.widget.CoordinatorLayout>
31
31
</layout >
0 commit comments