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