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 </TextView> 74 75 <TextView 76 android:layout_width="wrap_content" 77 android:layout_height="wrap_content" 78 android:layout_marginStart="32dip" 79 android:textAppearance="?android:attr/textAppearanceSmall" 80 android:labelFor="@+id/paper_size_summary" 81 android:text="@string/label_paper_size_summary"> 82 </TextView> 83 84 <TextView 85 android:id="@+id/paper_size_summary" 86 android:layout_width="wrap_content" 87 android:layout_height="wrap_content" 88 android:layout_marginStart="16dip" 89 android:textAppearance="?android:attr/textAppearanceMedium" 90 android:textColor="?android:attr/textColorPrimary"> 91 </TextView> 92 93 </LinearLayout> 94 95 <!-- Print button --> 96 97 <ImageButton 98 android:id="@+id/print_button" 99 android:layout_width="wrap_content" 100 android:layout_height="wrap_content" 101 android:layout_marginStart="16dip" 102 android:elevation="@dimen/preview_controls_elevation" 103 android:background="@drawable/print_button"> 104 </ImageButton> 105 106 <!-- Controls --> 107 108 <include layout="@layout/print_activity_controls"/> 109 110 <!-- Content --> 111 112 <com.android.printspooler.widget.EmbeddedContentContainer 113 android:id="@+id/embedded_content_container" 114 android:layout_width="fill_parent" 115 android:layout_height="fill_parent" 116 android:animateLayoutChanges="true" 117 android:background="@color/print_preview_background_color" 118 android:gravity="center"> 119 120 <!-- Error message added here --> 121 122 <android.support.v7.widget.RecyclerView 123 android:id="@+id/preview_content" 124 android:layout_width="wrap_content" 125 android:layout_height="wrap_content" 126 android:clipToPadding="false" 127 android:orientation="vertical"> 128 </android.support.v7.widget.RecyclerView> 129 130 <!-- Scrim --> 131 132 <View 133 android:id="@+id/embedded_content_scrim" 134 android:layout_width="fill_parent" 135 android:layout_height="fill_parent"> 136 </View> 137 138 </com.android.printspooler.widget.EmbeddedContentContainer> 139 140 </com.android.printspooler.widget.PrintContentView> 141