• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3
4     Copyright (C) 2019 The Android Open Source Project
5
6     Licensed under the Apache License, Version 2.0 (the "License");
7     you may not use this file except in compliance with the License.
8     You may obtain a copy of the License at
9
10          http://www.apache.org/licenses/LICENSE-2.0
11
12     Unless required by applicable law or agreed to in writing, software
13     distributed under the License is distributed on an "AS IS" BASIS,
14     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15     See the License for the specific language governing permissions and
16     limitations under the License.
17-->
18<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
19    android:id="@+id/page_info"
20    android:layout_height="wrap_content"
21    android:layout_width="match_parent"
22    android:orientation="vertical"
23    android:paddingHorizontal="@dimen/preview_attribution_pane_horizontal_padding"
24    android:background="@drawable/preview_bottom_sheet_background"
25    android:theme="@android:style/Theme.DeviceDefault.Settings">
26
27    <Space
28        android:id="@+id/preview_attribution_pane_title_spacer"
29        android:layout_width="0dp"
30        android:layout_height="@dimen/preview_attribution_pane_inner_spacer_height"/>
31
32    <TextView
33        android:id="@+id/preview_attribution_pane_title"
34        android:layout_width="match_parent"
35        android:layout_height="wrap_content"
36        android:minHeight="@dimen/preview_attribution_pane_title_height"
37        android:ellipsize="end"
38        android:forceHasOverlappingRendering="false"
39        android:gravity="center"
40        android:singleLine="true"
41        android:textAppearance="@style/HeaderTextAppearance"
42        android:textColor="@color/material_white_100"/>
43
44    <TextView
45        android:id="@+id/preview_attribution_pane_subtitle1"
46        android:layout_width="match_parent"
47        android:layout_height="wrap_content"
48        android:minHeight="@dimen/preview_attribution_pane_author_height"
49        android:layout_marginTop="@dimen/preview_attribution_pane_author_top_margin"
50        android:forceHasOverlappingRendering="false"
51        android:gravity="center"
52        android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Subhead"
53        android:textColor="@color/material_white_100"
54        android:visibility="gone"/>
55
56    <TextView
57        android:id="@+id/preview_attribution_pane_subtitle2"
58        android:layout_width="match_parent"
59        android:layout_height="wrap_content"
60        android:minHeight="@dimen/preview_attribution_pane_description_height"
61        android:forceHasOverlappingRendering="false"
62        android:gravity="center_horizontal"
63        android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Caption"
64        android:textColor="@color/material_white_100"
65        android:visibility="gone"/>
66
67    <Space
68        android:id="@+id/preview_attribution_pane_spacer"
69        android:layout_width="0dp"
70        android:layout_height="0dp"
71        android:layout_marginTop="@dimen/preview_attribution_pane_inner_spacer_height"
72        android:layout_weight="1"/>
73
74    <LinearLayout
75        android:layout_width="match_parent"
76        android:layout_height="wrap_content"
77        android:layout_marginBottom="@dimen/preview_attribution_pane_button_bottom_margin"
78        android:gravity="center"
79        android:orientation="horizontal">
80
81        <Button
82            style="@style/OutlinedButtonStyle"
83            android:id="@+id/preview_attribution_pane_explore_button"
84            android:layout_width="wrap_content"
85            android:layout_height="wrap_content"
86            android:text="@string/explore"
87            android:visibility="gone"/>
88
89        <Space
90            android:id="@+id/spacer"
91            android:layout_width="0dp"
92            android:layout_height="0dp"
93            android:layout_weight="1"
94            android:visibility="gone"/>
95
96        <Button
97            style="@style/ButtonStyle"
98            android:id="@+id/preview_attribution_pane_set_wallpaper_button"
99            android:layout_width="wrap_content"
100            android:layout_height="wrap_content"
101            android:text="@string/set_wallpaper_button_text"
102            android:visibility="gone"/>
103
104    </LinearLayout>
105
106</LinearLayout>