Home | History | Annotate | Download | only in layout
      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         style="?android:actionBarStyle">
     33 
     34         <com.android.printspooler.widget.ClickInterceptSpinner
     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         </com.android.printspooler.widget.ClickInterceptSpinner>
     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:paddingTop="2dip"
     53         android:paddingStart="16dip"
     54         android:paddingEnd="16dip"
     55         android:paddingBottom="8dip"
     56         android:orientation="horizontal"
     57         android:elevation="@dimen/preview_controls_elevation"
     58         style="?android:actionBarStyle">
     59 
     60         <TextView
     61             android:layout_width="wrap_content"
     62             android:layout_height="wrap_content"
     63             android:layout_marginStart="12dip"
     64             android:textAppearance="?android:attr/textAppearanceSmall"
     65             android:labelFor="@+id/copies_count_summary"
     66             android:text="@string/label_copies_summary">
     67         </TextView>
     68 
     69         <TextView
     70             android:id="@+id/copies_count_summary"
     71             android:layout_width="wrap_content"
     72             android:layout_height="wrap_content"
     73             android:layout_marginStart="16dip"
     74             android:textAppearance="?android:attr/textAppearanceMedium"
     75             android:textColor="?android:attr/textColorPrimary"
     76             android:singleLine="true"
     77             android:ellipsize="end">
     78         </TextView>
     79 
     80         <TextView
     81             android:layout_width="wrap_content"
     82             android:layout_height="wrap_content"
     83             android:layout_marginStart="32dip"
     84             android:textAppearance="?android:attr/textAppearanceSmall"
     85             android:labelFor="@+id/paper_size_summary"
     86             android:text="@string/label_paper_size_summary">
     87         </TextView>
     88 
     89         <TextView
     90             android:id="@+id/paper_size_summary"
     91             android:layout_width="wrap_content"
     92             android:layout_height="wrap_content"
     93             android:layout_marginStart="16dip"
     94             android:textAppearance="?android:attr/textAppearanceMedium"
     95             android:textColor="?android:attr/textColorPrimary"
     96             android:singleLine="true"
     97             android:ellipsize="end">
     98         </TextView>
     99 
    100     </LinearLayout>
    101 
    102     <!-- Print button -->
    103 
    104     <ImageButton
    105         android:id="@+id/print_button"
    106         android:layout_width="wrap_content"
    107         android:layout_height="wrap_content"
    108         android:layout_marginStart="16dip"
    109         android:elevation="@dimen/preview_controls_elevation"
    110         android:tint="@android:color/white"
    111         android:background="@drawable/print_button">
    112     </ImageButton>
    113 
    114     <!-- Controls -->
    115 
    116     <include layout="@layout/print_activity_controls"/>
    117 
    118     <!-- Content -->
    119 
    120     <com.android.printspooler.widget.EmbeddedContentContainer
    121         android:id="@+id/embedded_content_container"
    122         android:layout_width="fill_parent"
    123         android:layout_height="fill_parent"
    124         android:animateLayoutChanges="true"
    125         android:gravity="center">
    126 
    127         <!-- Error message added here -->
    128 
    129         <android.support.v7.widget.RecyclerView
    130             android:id="@+id/preview_content"
    131             android:layout_width="match_parent"
    132             android:layout_height="match_parent"
    133             android:clipToPadding="false"
    134             android:orientation="vertical">
    135         </android.support.v7.widget.RecyclerView>
    136 
    137         <!-- Scrim -->
    138 
    139         <View
    140             android:id="@+id/embedded_content_scrim"
    141             android:layout_width="fill_parent"
    142             android:layout_height="fill_parent">
    143         </View>
    144 
    145     </com.android.printspooler.widget.EmbeddedContentContainer>
    146 
    147 </com.android.printspooler.widget.PrintContentView>
    148