-
Notifications
You must be signed in to change notification settings - Fork 59
/
Copy pathactivity_main.xml
103 lines (87 loc) · 4.67 KB
/
activity_main.xml
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (c) 2020 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License
is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
or implied. See the License for the specific language governing permissions and limitations under
the License.
-->
<layout
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">
<androidx.coordinatorlayout.widget.CoordinatorLayout
android:layout_width="match_parent"
android:id="@+id/coordinator_layout"
android:layout_height="match_parent"
app:layoutFullscreen="@{true}"
tools:context="com.materialstudies.reply.ui.MainActivity">
<fragment
android:id="@+id/nav_host_fragment"
android:name="androidx.navigation.fragment.NavHostFragment"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:defaultNavHost="true"
app:navGraph="@navigation/navigation_graph"/>
<fragment
android:id="@+id/bottom_nav_drawer"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:name="com.materialstudies.reply.ui.nav.BottomNavDrawerFragment"/>
<com.google.android.material.bottomappbar.BottomAppBar
android:id="@+id/bottom_app_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
app:fabAlignmentMode="center"
app:fabCradleRoundedCornerRadius="@dimen/bottom_app_bar_fab_cradle_corner_radius"
app:fabCradleMargin="@dimen/bottom_app_bar_fab_cradle_margin"
app:hideOnScroll="true">
<LinearLayout
android:id="@+id/bottom_app_bar_content_container"
android:layout_width="wrap_content"
android:layout_height="@dimen/min_touch_target_size"
android:layout_marginVertical="@dimen/grid_0_5"
android:paddingHorizontal="@dimen/grid_0_5"
android:orientation="horizontal"
android:gravity="center_vertical"
android:foreground="@drawable/bottom_app_bar_title_foreground">
<ImageView
android:id="@+id/bottom_app_bar_chevron"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:contentDescription="@string/bottom_app_bar_chevron_content_desc"
android:layout_gravity="center_vertical"
app:tint="?attr/colorOnPrimarySurface"
app:srcCompat="@drawable/ic_arrow_drop_up" />
<ImageView
android:id="@+id/bottom_app_bar_logo"
android:layout_width="@dimen/bottom_app_bar_logo_size"
android:layout_height="@dimen/bottom_app_bar_logo_size"
android:layout_marginLeft="@dimen/grid_1"
android:contentDescription="@string/bottom_app_bar_logo_content_desc"
android:layout_gravity="center_vertical"
app:srcCompat="@drawable/ic_reply_logo" />
<TextView
android:id="@+id/bottom_app_bar_title"
android:textAppearance="?attr/textAppearanceBody1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginHorizontal="@dimen/grid_1"
android:text="@string/navigation_inbox"
android:textColor="?attr/colorControlNormal"/>
</LinearLayout>
</com.google.android.material.bottomappbar.BottomAppBar>
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/fab"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_anchor="@id/bottom_app_bar"
android:contentDescription="@string/fab_compose_email_content_description"
app:srcCompat="@drawable/asl_edit_reply" />
</androidx.coordinatorlayout.widget.CoordinatorLayout>
</layout>