diff options
author | Svetoslav <svetoslavganov@google.com> | 2013-10-28 15:15:45 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2013-10-28 15:15:45 -0700 |
commit | cdc2280a6e1837d3813cb5eab9a11c4f4efe8dc9 (patch) | |
tree | d9e125703ce9dffdf29049b57c8ec96698a27b97 /packages/PrintSpooler/res | |
parent | 128537f600e14c941656e648205987083f4096c3 (diff) | |
parent | 0298ebb2db5b7c24d68fd3817b11e2f887471d0c (diff) | |
download | frameworks_base-cdc2280a6e1837d3813cb5eab9a11c4f4efe8dc9.zip frameworks_base-cdc2280a6e1837d3813cb5eab9a11c4f4efe8dc9.tar.gz frameworks_base-cdc2280a6e1837d3813cb5eab9a11c4f4efe8dc9.tar.bz2 |
am 0298ebb2: am 60fb1e28: am 714ba345: Merge "Complete implementation of the advanced print options." into klp-dev
* commit '0298ebb2db5b7c24d68fd3817b11e2f887471d0c':
Complete implementation of the advanced print options.
Diffstat (limited to 'packages/PrintSpooler/res')
6 files changed, 113 insertions, 46 deletions
diff --git a/packages/PrintSpooler/res/layout/print_job_config_activity_container.xml b/packages/PrintSpooler/res/layout/print_job_config_activity_container.xml index d503216..3303ef1 100644 --- a/packages/PrintSpooler/res/layout/print_job_config_activity_container.xml +++ b/packages/PrintSpooler/res/layout/print_job_config_activity_container.xml @@ -16,7 +16,7 @@ <com.android.printspooler.PrintDialogFrame xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" - android:layout_height="fill_parent"> + android:layout_height="wrap_content"> <FrameLayout android:id="@+id/content_container" android:layout_width="fill_parent" diff --git a/packages/PrintSpooler/res/layout/print_job_config_activity_content_editing.xml b/packages/PrintSpooler/res/layout/print_job_config_activity_content_editing.xml index 02740a3..e50a7af 100644 --- a/packages/PrintSpooler/res/layout/print_job_config_activity_content_editing.xml +++ b/packages/PrintSpooler/res/layout/print_job_config_activity_content_editing.xml @@ -18,8 +18,7 @@ android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="vertical" - android:scrollbars="vertical" - android:background="@color/editable_background"> + android:scrollbars="vertical"> <LinearLayout android:layout_width="fill_parent" @@ -42,6 +41,7 @@ <LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" + android:layout_marginBottom="24dip" android:orientation="horizontal" android:baselineAligned="false"> @@ -203,27 +203,79 @@ </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 --> - <ImageView + <FrameLayout android:layout_width="fill_parent" - android:layout_height="1dip" + android:layout_height="wrap_content" android:layout_marginTop="24dip" - android:layout_gravity="fill_horizontal" - android:background="@color/separator" - android:contentDescription="@null"> - </ImageView> + 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> - <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> diff --git a/packages/PrintSpooler/res/layout/print_job_config_activity_content_error.xml b/packages/PrintSpooler/res/layout/print_job_config_activity_content_error.xml index 222b5b6..f573d9d 100644 --- a/packages/PrintSpooler/res/layout/print_job_config_activity_content_error.xml +++ b/packages/PrintSpooler/res/layout/print_job_config_activity_content_error.xml @@ -23,7 +23,6 @@ <LinearLayout android:layout_width="fill_parent" android:layout_height="fill_parent" - android:background="@color/editable_background" android:orientation="vertical"> <TextView @@ -43,23 +42,30 @@ android:textSize="16sp"> </TextView> + </LinearLayout> + + <FrameLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:background="@color/action_button_background"> + <View android:layout_width="fill_parent" android:layout_height="1dip" android:background="@color/separator"> </View> - </LinearLayout> + <Button + android:id="@+id/ok_button" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_gravity="fill_horizontal" + style="?android:attr/buttonBarButtonStyle" + android:text="@android:string/ok" + android:textSize="16sp" + android:textColor="@color/important_text"> + </Button> - <Button - android:id="@+id/ok_button" - android:layout_width="fill_parent" - android:layout_height="wrap_content" - android:layout_gravity="fill_horizontal" - style="?android:attr/buttonBarButtonStyle" - android:text="@android:string/ok" - android:textSize="16sp" - android:textColor="@color/important_text"> - </Button> + </FrameLayout> </LinearLayout> diff --git a/packages/PrintSpooler/res/layout/print_job_config_activity_content_generating.xml b/packages/PrintSpooler/res/layout/print_job_config_activity_content_generating.xml index 8bdb6c9..10602ee 100644 --- a/packages/PrintSpooler/res/layout/print_job_config_activity_content_generating.xml +++ b/packages/PrintSpooler/res/layout/print_job_config_activity_content_generating.xml @@ -23,7 +23,6 @@ <LinearLayout android:layout_width="fill_parent" android:layout_height="fill_parent" - android:background="@color/editable_background" android:orientation="vertical"> <TextView @@ -51,23 +50,30 @@ style="?android:attr/progressBarStyleLarge"> </ProgressBar> + </LinearLayout> + + <FrameLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:background="@color/action_button_background"> + <View android:layout_width="fill_parent" android:layout_height="1dip" android:background="@color/separator"> </View> - </LinearLayout> + <Button + android:id="@+id/cancel_button" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_gravity="fill_horizontal" + style="?android:attr/buttonBarButtonStyle" + android:text="@string/cancel" + android:textSize="16sp" + android:textColor="@color/important_text"> + </Button> - <Button - android:id="@+id/cancel_button" - android:layout_width="fill_parent" - android:layout_height="wrap_content" - android:layout_gravity="fill_horizontal" - style="?android:attr/buttonBarButtonStyle" - android:text="@string/cancel" - android:textSize="16sp" - android:textColor="@color/important_text"> - </Button> + </FrameLayout> </LinearLayout> diff --git a/packages/PrintSpooler/res/values/colors.xml b/packages/PrintSpooler/res/values/colors.xml index 9972c96..4fc25b3 100644 --- a/packages/PrintSpooler/res/values/colors.xml +++ b/packages/PrintSpooler/res/values/colors.xml @@ -16,10 +16,10 @@ <resources> - <color name="container_background">#FFFFFF</color> + <color name="container_background">#F2F2F2</color> <color name="important_text">#333333</color> <color name="print_option_title">#888888</color> <color name="separator">#CCCCCC</color> - <color name="editable_background">#F2F2F2</color> + <color name="action_button_background">#FFFFFF</color> -</resources>
\ No newline at end of file +</resources> diff --git a/packages/PrintSpooler/res/values/strings.xml b/packages/PrintSpooler/res/values/strings.xml index d74b414..f2e768a 100644 --- a/packages/PrintSpooler/res/values/strings.xml +++ b/packages/PrintSpooler/res/values/strings.xml @@ -19,6 +19,9 @@ <!-- Title of the PrintSpooler application. [CHAR LIMIT=50] --> <string name="app_label">Print Spooler</string> + <!-- Label of the print dialog's button for advanced printer settings. [CHAR LIMIT=25] --> + <string name="advanced_settings_button">Printer settings</string> + <!-- Label of the print dialog's print button. [CHAR LIMIT=16] --> <string name="print_button">Print</string> |