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