blob: 9e16f5ef40a7e2a444381df6acff7bfd98cbc9a0 [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2013 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<com.android.printspooler.widget.PrintContentView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/options_content"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<!-- Destination -->
<FrameLayout
android:id="@+id/static_content"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:paddingStart="8dip"
android:layout_marginEnd="16dp"
android:elevation="@dimen/preview_controls_elevation"
style="?android:actionBarStyle">
<com.android.printspooler.widget.ClickInterceptSpinner
android:id="@+id/destination_spinner"
android:layout_width="wrap_content"
android:minWidth="@dimen/preview_destination_spinner_width"
android:layout_height="wrap_content"
android:layout_marginTop="4dip"
android:dropDownWidth="wrap_content"
android:minHeight="?android:attr/listPreferredItemHeightSmall">
</com.android.printspooler.widget.ClickInterceptSpinner>
</FrameLayout>
<!-- Summary -->
<LinearLayout
android:id="@+id/summary_content"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:paddingTop="2dip"
android:paddingStart="16dip"
android:paddingEnd="16dip"
android:paddingBottom="8dip"
android:orientation="horizontal"
android:elevation="@dimen/preview_controls_elevation"
style="?android:actionBarStyle">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="12dip"
android:textAppearance="?android:attr/textAppearanceSmall"
android:labelFor="@+id/copies_count_summary"
android:text="@string/label_copies_summary">
</TextView>
<TextView
android:id="@+id/copies_count_summary"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="16dip"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textColor="?android:attr/textColorPrimary"
android:singleLine="true"
android:ellipsize="end">
</TextView>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="32dip"
android:textAppearance="?android:attr/textAppearanceSmall"
android:labelFor="@+id/paper_size_summary"
android:text="@string/label_paper_size_summary">
</TextView>
<TextView
android:id="@+id/paper_size_summary"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="16dip"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textColor="?android:attr/textColorPrimary"
android:singleLine="true"
android:ellipsize="end">
</TextView>
</LinearLayout>
<!-- Print button -->
<ImageButton
android:id="@+id/print_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="16dip"
android:elevation="@dimen/preview_controls_elevation"
android:tint="@android:color/white"
android:background="@drawable/print_button">
</ImageButton>
<!-- Controls -->
<include layout="@layout/print_activity_controls"/>
<!-- Content -->
<com.android.printspooler.widget.EmbeddedContentContainer
android:id="@+id/embedded_content_container"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:animateLayoutChanges="true"
android:gravity="center">
<!-- Error message added here -->
<android.support.v7.widget.RecyclerView
android:id="@+id/preview_content"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clipToPadding="false"
android:orientation="vertical">
</android.support.v7.widget.RecyclerView>
<!-- Scrim -->
<View
android:id="@+id/embedded_content_scrim"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
</View>
</com.android.printspooler.widget.EmbeddedContentContainer>
</com.android.printspooler.widget.PrintContentView>