1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2014 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.PreviewPageFrame xmlns:android="http://schemas.android.com/apk/res/android" 18 android:id="@+id/preview_page" 19 android:layout_width="wrap_content" 20 android:layout_height="wrap_content" 21 android:layout_margin="@dimen/preview_page_margin" 22 android:orientation="vertical" 23 android:background="?android:attr/colorForeground"> 24 25 <com.android.printspooler.widget.PageContentView 26 android:id="@+id/page_content" 27 android:layout_width="fill_parent" 28 android:layout_height="fill_parent"> 29 </com.android.printspooler.widget.PageContentView> 30 31 <RelativeLayout 32 android:id="@+id/page_footer" 33 android:layout_width="fill_parent" 34 android:layout_height="@dimen/preview_page_footer_height" 35 android:background="@color/material_grey_500" 36 android:orientation="horizontal" 37 android:duplicateParentState="true"> 38 39 <TextView 40 android:id="@+id/page_number" 41 android:layout_width="wrap_content" 42 android:layout_height="wrap_content" 43 android:layout_centerInParent="true" 44 android:textAppearance="?android:attr/textAppearanceSmall" 45 android:textColor="?android:attr/textColorPrimary"> 46 </TextView> 47 48 <ImageView 49 android:id="@+id/page_selector" 50 android:layout_width="wrap_content" 51 android:layout_height="wrap_content" 52 android:layout_marginRight="8dip" 53 android:layout_alignParentEnd="true" 54 android:layout_centerVertical="true" 55 android:background="@drawable/page_selector_background" 56 android:duplicateParentState="true"> 57 </ImageView> 58 59 </RelativeLayout> 60 61</com.android.printspooler.widget.PreviewPageFrame> 62