1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2013 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<com.android.printspooler.widget.PrintContentView
18        xmlns:android="http://schemas.android.com/apk/res/android"
19        xmlns:printspooler="http://schemas.android.com/apk/res/com.android.printspooler"
20    android:id="@+id/options_content"
21    android:layout_width="fill_parent"
22    android:layout_height="fill_parent">
23
24    <!-- Destination -->
25
26    <FrameLayout
27        android:id="@+id/static_content"
28        android:layout_width="fill_parent"
29        android:layout_height="wrap_content"
30        android:paddingStart="8dip"
31        android:elevation="@dimen/preview_controls_elevation"
32        android:background="?android:attr/colorPrimary">
33
34        <Spinner
35            android:id="@+id/destination_spinner"
36            android:layout_width="@dimen/preview_destination_spinner_width"
37            android:layout_height="wrap_content"
38            android:layout_marginTop="4dip"
39            android:dropDownWidth="wrap_content"
40            android:minHeight="?android:attr/listPreferredItemHeightSmall">
41        </Spinner>
42
43    </FrameLayout>
44
45    <!-- Summary -->
46
47    <LinearLayout
48        android:id="@+id/summary_content"
49        android:layout_width="fill_parent"
50        android:layout_height="wrap_content"
51        android:paddingStart="16dip"
52        android:paddingEnd="16dip"
53        android:orientation="horizontal"
54        android:elevation="@dimen/preview_controls_elevation"
55        android:background="?android:attr/colorPrimary">
56
57        <TextView
58            android:layout_width="wrap_content"
59            android:layout_height="wrap_content"
60            android:layout_marginStart="12dip"
61            android:textAppearance="?android:attr/textAppearanceSmall"
62            android:labelFor="@+id/copies_count_summary"
63            android:text="@string/label_copies_summary">
64        </TextView>
65
66        <TextView
67            android:id="@+id/copies_count_summary"
68            android:layout_width="wrap_content"
69            android:layout_height="wrap_content"
70            android:layout_marginStart="16dip"
71            android:textAppearance="?android:attr/textAppearanceMedium"
72            android:textColor="?android:attr/textColorPrimary"
73            android:singleLine="true"
74            android:ellipsize="end">
75        </TextView>
76
77        <TextView
78            android:layout_width="wrap_content"
79            android:layout_height="wrap_content"
80            android:layout_marginStart="32dip"
81            android:textAppearance="?android:attr/textAppearanceSmall"
82            android:labelFor="@+id/paper_size_summary"
83            android:text="@string/label_paper_size_summary">
84        </TextView>
85
86        <TextView
87            android:id="@+id/paper_size_summary"
88            android:layout_width="wrap_content"
89            android:layout_height="wrap_content"
90            android:layout_marginStart="16dip"
91            android:textAppearance="?android:attr/textAppearanceMedium"
92            android:textColor="?android:attr/textColorPrimary"
93            android:singleLine="true"
94            android:ellipsize="end">
95        </TextView>
96
97    </LinearLayout>
98
99    <!-- Print button -->
100
101    <ImageButton
102        android:id="@+id/print_button"
103        android:layout_width="wrap_content"
104        android:layout_height="wrap_content"
105        android:layout_marginStart="16dip"
106        android:elevation="@dimen/preview_controls_elevation"
107        android:background="@drawable/print_button">
108    </ImageButton>
109
110    <!-- Controls -->
111
112    <include layout="@layout/print_activity_controls"/>
113
114    <!-- Content -->
115
116    <com.android.printspooler.widget.EmbeddedContentContainer
117        android:id="@+id/embedded_content_container"
118        android:layout_width="fill_parent"
119        android:layout_height="fill_parent"
120        android:animateLayoutChanges="true"
121        android:background="@color/print_preview_background_color"
122        android:gravity="center">
123
124        <!-- Error message added here -->
125
126        <android.support.v7.widget.RecyclerView
127            android:id="@+id/preview_content"
128            android:layout_width="match_parent"
129            android:layout_height="match_parent"
130            android:clipToPadding="false"
131            android:orientation="vertical">
132        </android.support.v7.widget.RecyclerView>
133
134        <!-- Scrim -->
135
136        <View
137            android:id="@+id/embedded_content_scrim"
138            android:layout_width="fill_parent"
139            android:layout_height="fill_parent">
140        </View>
141
142    </com.android.printspooler.widget.EmbeddedContentContainer>
143
144</com.android.printspooler.widget.PrintContentView>
145