| <?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. |
| --> |
| |
| <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" |
| android:layout_width="fill_parent" |
| android:layout_height="wrap_content" |
| android:orientation="vertical" |
| android:scrollbars="vertical"> |
| |
| <LinearLayout |
| android:layout_width="fill_parent" |
| android:layout_height="wrap_content" |
| android:orientation="vertical"> |
| |
| <!-- Destination --> |
| |
| <Spinner |
| android:id="@+id/destination_spinner" |
| android:layout_width="fill_parent" |
| android:layout_height="wrap_content" |
| android:layout_gravity="fill_horizontal" |
| android:layout_marginTop="24dip" |
| android:layout_marginStart="24dip" |
| android:layout_marginEnd="24dip" |
| android:minHeight="?android:attr/listPreferredItemHeightSmall"> |
| </Spinner> |
| |
| <LinearLayout |
| android:layout_width="fill_parent" |
| android:layout_height="wrap_content" |
| android:layout_marginBottom="24dip" |
| android:orientation="horizontal" |
| android:baselineAligned="false"> |
| |
| <LinearLayout |
| android:layout_width="0dip" |
| android:layout_height="wrap_content" |
| android:layout_weight="1" |
| android:orientation="vertical"> |
| |
| <!-- Copies --> |
| |
| <TextView |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_marginTop="12dip" |
| android:layout_marginStart="36dip" |
| android:layout_marginEnd="6dip" |
| android:textAppearance="@style/PrintOptionTitleTextAppearance" |
| android:labelFor="@+id/copies_edittext" |
| android:text="@string/label_copies"> |
| </TextView> |
| |
| <view |
| class="com.android.printspooler.PrintJobConfigActivity$CustomEditText" |
| android:id="@+id/copies_edittext" |
| android:layout_width="fill_parent" |
| android:layout_height="wrap_content" |
| android:layout_marginStart="24dip" |
| android:layout_marginEnd="6dip" |
| style="@style/PrintOptionEditTextStyle" |
| android:inputType="numberDecimal"> |
| </view> |
| |
| <!-- Color --> |
| |
| <TextView |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_marginTop="12dip" |
| android:layout_marginStart="36dip" |
| android:layout_marginEnd="6dip" |
| android:textAppearance="@style/PrintOptionTitleTextAppearance" |
| android:labelFor="@+id/color_spinner" |
| android:text="@string/label_color"> |
| </TextView> |
| |
| <Spinner |
| android:id="@+id/color_spinner" |
| android:layout_width="fill_parent" |
| android:layout_height="wrap_content" |
| android:layout_marginStart="24dip" |
| android:layout_marginEnd="6dip" |
| style="@style/PrintOptionSpinnerStyle"> |
| </Spinner> |
| |
| <!-- Range options --> |
| |
| <TextView |
| android:id="@+id/range_options_title" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_marginTop="12dip" |
| android:layout_marginStart="36dip" |
| android:textAppearance="@style/PrintOptionTitleTextAppearance" |
| android:labelFor="@+id/range_options_spinner" |
| android:text="@string/page_count_unknown"> |
| </TextView> |
| |
| <Spinner |
| android:id="@+id/range_options_spinner" |
| android:layout_width="fill_parent" |
| android:layout_height="wrap_content" |
| android:layout_marginStart="24dip" |
| android:layout_marginEnd="6dip" |
| style="@style/PrintOptionSpinnerStyle"> |
| </Spinner> |
| |
| </LinearLayout> |
| |
| <LinearLayout |
| android:layout_width="0dip" |
| android:layout_height="wrap_content" |
| android:layout_weight="1" |
| android:orientation="vertical"> |
| |
| <!-- Paper size --> |
| |
| <TextView |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_marginTop="12dip" |
| android:layout_marginStart="18dip" |
| android:layout_marginEnd="24dip" |
| android:textAppearance="@style/PrintOptionTitleTextAppearance" |
| android:labelFor="@+id/paper_size_spinner" |
| android:text="@string/label_paper_size"> |
| </TextView> |
| |
| <Spinner |
| android:id="@+id/paper_size_spinner" |
| android:layout_width="fill_parent" |
| android:layout_height="wrap_content" |
| android:layout_marginStart="6dip" |
| android:layout_marginEnd="24dip" |
| style="@style/PrintOptionSpinnerStyle"> |
| </Spinner> |
| |
| <!-- Orientation --> |
| |
| <TextView |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_marginTop="12dip" |
| android:layout_marginStart="18dip" |
| android:layout_marginEnd="24dip" |
| android:textAppearance="@style/PrintOptionTitleTextAppearance" |
| android:labelFor="@+id/orientation_spinner" |
| android:text="@string/label_orientation"> |
| </TextView> |
| |
| <Spinner |
| android:id="@+id/orientation_spinner" |
| android:layout_width="fill_parent" |
| android:layout_height="wrap_content" |
| android:layout_marginStart="6dip" |
| android:layout_marginEnd="24dip" |
| style="@style/PrintOptionSpinnerStyle"> |
| </Spinner> |
| |
| <!-- Pages --> |
| |
| <TextView |
| android:id="@+id/page_range_title" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_marginTop="12dip" |
| android:layout_marginStart="12dip" |
| android:layout_marginEnd="24dip" |
| android:textAppearance="@style/PrintOptionTitleTextAppearance" |
| android:text="@string/pages_range_example" |
| android:labelFor="@+id/page_range_edittext" |
| android:textAllCaps="false"> |
| </TextView> |
| |
| <view |
| class="com.android.printspooler.PrintJobConfigActivity$CustomEditText" |
| android:id="@+id/page_range_edittext" |
| android:layout_width="fill_parent" |
| android:layout_height="wrap_content" |
| android:layout_marginStart="6dip" |
| android:layout_marginEnd="24dip" |
| android:layout_gravity="bottom|fill_horizontal" |
| style="@style/PrintOptionEditTextStyle" |
| android:visibility="gone" |
| android:inputType="textNoSuggestions"> |
| </view> |
| |
| </LinearLayout> |
| |
| </LinearLayout> |
| |
| <!-- Advanced settings button --> |
| |
| <LinearLayout |
| android:id="@+id/advanced_settings_container" |
| android:layout_width="fill_parent" |
| android:layout_height="wrap_content" |
| android:orientation="vertical" |
| android:visibility="gone"> |
| |
| <ImageView |
| android:layout_width="fill_parent" |
| android:layout_height="1dip" |
| android:layout_marginStart="24dip" |
| android:layout_marginEnd="24dip" |
| android:layout_gravity="fill_horizontal" |
| android:background="@color/separator" |
| android:contentDescription="@null"> |
| </ImageView> |
| |
| <Button |
| android:id="@+id/advanced_settings_button" |
| style="?android:attr/buttonBarButtonStyle" |
| android:layout_width="fill_parent" |
| android:layout_height="wrap_content" |
| android:layout_marginStart="24dip" |
| android:layout_marginEnd="24dip" |
| android:layout_gravity="fill_horizontal" |
| android:text="@string/advanced_settings_button" |
| android:gravity="start|center_vertical" |
| android:textSize="16sp" |
| android:textColor="@color/item_text_color"> |
| </Button> |
| |
| <ImageView |
| android:layout_width="fill_parent" |
| android:layout_height="1dip" |
| android:layout_gravity="fill_horizontal" |
| android:layout_marginStart="24dip" |
| android:layout_marginEnd="24dip" |
| android:background="@color/separator" |
| android:contentDescription="@null"> |
| </ImageView> |
| |
| </LinearLayout> |
| |
| <!-- Print button --> |
| |
| <FrameLayout |
| android:layout_width="fill_parent" |
| android:layout_height="wrap_content" |
| android:layout_marginTop="24dip" |
| android:background="@color/action_button_background"> |
| |
| <ImageView |
| android:layout_width="fill_parent" |
| android:layout_height="1dip" |
| android:layout_gravity="fill_horizontal" |
| android:background="@color/separator" |
| android:contentDescription="@null"> |
| </ImageView> |
| |
| <Button |
| android:id="@+id/print_button" |
| style="?android:attr/buttonBarButtonStyle" |
| android:layout_width="fill_parent" |
| android:layout_height="wrap_content" |
| android:layout_gravity="fill_horizontal" |
| android:text="@string/print_button" |
| android:textSize="16sp" |
| android:textColor="@color/item_text_color"> |
| </Button> |
| |
| </FrameLayout> |
| |
| </LinearLayout> |
| |
| </ScrollView> |