• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<!--
2  ~ Copyright (C) 2016 The Android Open Source Project
3  ~
4  ~ Licensed under the Apache License, Version 2.0 (the "License");
5  ~ you may not use this file except in compliance with the License.
6  ~ You may obtain a copy of the License at
7  ~
8  ~      http://www.apache.org/licenses/LICENSE-2.0
9  ~
10  ~ Unless required by applicable law or agreed to in writing, software
11  ~ distributed under the License is distributed on an "AS IS" BASIS,
12  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  ~ See the License for the specific language governing permissions and
14  ~ limitations under the License
15  -->
16
17<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
18    xmlns:app="http://schemas.android.com/apk/res-auto"
19    android:layout_width="match_parent"
20    android:layout_height="match_parent">
21
22    <FrameLayout
23        android:id="@+id/loading"
24        android:layout_width="match_parent"
25        android:layout_height="match_parent"
26        android:background="#ff000000"
27        android:forceHasOverlappingRendering="false">
28
29        <ProgressBar
30            style="@android:style/Widget.Material.ProgressBar"
31            android:layout_width="wrap_content"
32            android:layout_height="wrap_content"
33            android:layout_gravity="center"
34            android:indeterminate="true"/>
35
36    </FrameLayout>
37
38    <FrameLayout android:layout_width="match_parent"
39        android:layout_height="match_parent"
40        android:fitsSystemWindows="true">
41
42        <android.support.design.widget.CoordinatorLayout
43            android:id="@+id/coordinator_layout"
44            android:layout_width="match_parent"
45            android:layout_height="wrap_content"
46            android:layout_gravity="bottom">
47
48            <RelativeLayout android:id="@+id/bottom_sheet"
49                android:layout_width="match_parent"
50                android:layout_height="wrap_content"
51                android:layout_gravity="bottom"
52                android:minHeight="@dimen/preview_attribution_pane_expanded_height"
53                android:orientation="vertical"
54                android:background="@color/translucent_black"
55                app:behavior_peekHeight="@dimen/preview_attribution_pane_collapsed_height"
56                app:layout_behavior="android.support.design.widget.BottomSheetBehavior">
57
58                <ImageButton android:id="@+id/preview_attribution_pane_arrow"
59                    android:contentDescription="@string/expand_attribution_panel"
60                    android:layout_width="48dp"
61                    android:layout_height="48dp"
62                    android:layout_alignParentEnd="true"
63                    android:focusable="true"
64                    android:clickable="true"
65                    android:src="@drawable/ic_keyboard_arrow_up_white_24dp"
66                    style="?android:attr/borderlessButtonStyle"/>
67
68                <TextView
69                    android:id="@+id/preview_attribution_pane_title"
70                    android:layout_width="match_parent"
71                    android:layout_height="wrap_content"
72                    android:layout_gravity="start"
73                    android:layout_marginStart="@dimen/preview_attribution_pane_content_side_margin"
74                    android:layout_marginEnd="@dimen/preview_attribution_pane_content_side_margin"
75                    android:layout_marginTop="@dimen/preview_attribution_pane_title_top_margin"
76                    android:layout_toStartOf="@id/preview_attribution_pane_arrow"
77                    android:ellipsize="end"
78                    android:textAppearance="@style/AttributionPaneTitle"
79                    android:forceHasOverlappingRendering="false"/>
80
81                <TextView android:id="@+id/preview_attribution_pane_subtitle1"
82                    android:layout_width="match_parent"
83                    android:layout_height="wrap_content"
84                    android:layout_marginStart="@dimen/preview_attribution_pane_content_side_margin"
85                    android:layout_marginEnd="@dimen/preview_attribution_pane_content_side_margin"
86                    android:layout_marginTop="@dimen/preview_attribution_pane_subtitle1_top_margin"
87                    android:layout_below="@id/preview_attribution_pane_title"
88                    android:layout_toStartOf="@id/preview_attribution_pane_arrow"
89                    android:textAppearance="@android:style/TextAppearance.Material.Body1"
90                    android:forceHasOverlappingRendering="false"/>
91
92                <TextView android:id="@+id/preview_attribution_pane_subtitle2"
93                    android:layout_width="match_parent"
94                    android:layout_height="wrap_content"
95                    android:textSize="@dimen/abc_text_size_caption_material"
96                    android:layout_marginStart="@dimen/preview_attribution_pane_content_side_margin"
97                    android:layout_marginEnd="@dimen/preview_attribution_pane_content_side_margin"
98                    android:layout_marginTop="@dimen/preview_attribution_pane_subtitle2_top_margin"
99                    android:layout_below="@id/preview_attribution_pane_subtitle1"
100                    android:layout_toStartOf="@id/preview_attribution_pane_arrow"
101                    android:textAppearance="@android:style/TextAppearance.Material.Caption"
102                    android:forceHasOverlappingRendering="false"/>
103
104                <Button android:id="@+id/preview_attribution_pane_explore_button"
105                    android:layout_width="wrap_content"
106                    android:layout_height="wrap_content"
107                    android:textColor="?android:attr/colorAccent"
108                    android:layout_marginLeft="@dimen/preview_attribution_pane_explore_left_margin"
109                    android:layout_marginStart="@dimen/preview_attribution_pane_explore_left_margin"
110                    android:layout_marginTop="@dimen/preview_attribution_pane_explore_top_margin"
111                    android:layout_marginBottom="@dimen/preview_attribution_pane_explore_bottom_margin"
112                    android:layout_below="@id/preview_attribution_pane_subtitle2"
113                    android:layout_gravity="center_vertical"
114                    style="?android:attr/borderlessButtonStyle"
115                    android:forceHasOverlappingRendering="false"/>
116
117                <View android:id="@id/spacer"
118                    android:layout_width="match_parent"
119                    android:layout_height="@dimen/preview_attribution_pane_spacer_height"
120                    android:layout_below="@id/preview_attribution_pane_subtitle2"
121                    android:visibility="gone"/>
122
123            </RelativeLayout>
124
125        </android.support.design.widget.CoordinatorLayout>
126
127        <android.widget.Toolbar android:id="@+id/toolbar"
128            android:layout_width="match_parent"
129            android:layout_height="wrap_content"
130            android:layout_gravity="top"
131            android:paddingStart="@dimen/preview_toolbar_up_button_padding"
132            android:paddingEnd="@dimen/preview_toolbar_set_wallpaper_button_end_padding"
133            style="@style/TranslucentToolbarStyle"/>
134
135    </FrameLayout>
136</FrameLayout>
137