diff options
author | Svetoslav Ganov <svetoslavganov@google.com> | 2013-09-26 14:14:55 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2013-09-26 14:14:55 -0700 |
commit | 2a2fcdd6dbeee06af8acca7c76fbe905c862cbd4 (patch) | |
tree | f929e0f694205cb7c8b8464922e629aec65e4da2 /res | |
parent | 01aa7930306e15ba4ce942844506e42df85a0a04 (diff) | |
parent | bc2c3db8f923b9ee25345f5ebbad9f6c762a1e23 (diff) | |
download | packages_apps_Settings-2a2fcdd6dbeee06af8acca7c76fbe905c862cbd4.zip packages_apps_Settings-2a2fcdd6dbeee06af8acca7c76fbe905c862cbd4.tar.gz packages_apps_Settings-2a2fcdd6dbeee06af8acca7c76fbe905c862cbd4.tar.bz2 |
am bc2c3db8: Add print job settings screen.
* commit 'bc2c3db8f923b9ee25345f5ebbad9f6c762a1e23':
Add print job settings screen.
Diffstat (limited to 'res')
-rw-r--r-- | res/drawable-hdpi/ic_grayedout_printer.png | bin | 0 -> 3418 bytes | |||
-rw-r--r-- | res/drawable-mdpi/ic_grayedout_printer.png | bin | 0 -> 3418 bytes | |||
-rw-r--r-- | res/drawable-xhdpi/ic_grayedout_printer.png | bin | 0 -> 3418 bytes | |||
-rw-r--r-- | res/layout/empty_print_state.xml | 48 | ||||
-rw-r--r-- | res/layout/empty_printers_list_service_enabled.xml | 55 | ||||
-rw-r--r-- | res/layout/print_job_summary.xml | 43 | ||||
-rw-r--r-- | res/values/donottranslate.xml | 1 | ||||
-rw-r--r-- | res/values/strings.xml | 25 | ||||
-rw-r--r-- | res/xml/print_job_settings.xml | 30 | ||||
-rw-r--r-- | res/xml/print_settings.xml | 13 |
10 files changed, 212 insertions, 3 deletions
diff --git a/res/drawable-hdpi/ic_grayedout_printer.png b/res/drawable-hdpi/ic_grayedout_printer.png Binary files differnew file mode 100644 index 0000000..5e54970 --- /dev/null +++ b/res/drawable-hdpi/ic_grayedout_printer.png diff --git a/res/drawable-mdpi/ic_grayedout_printer.png b/res/drawable-mdpi/ic_grayedout_printer.png Binary files differnew file mode 100644 index 0000000..5e54970 --- /dev/null +++ b/res/drawable-mdpi/ic_grayedout_printer.png diff --git a/res/drawable-xhdpi/ic_grayedout_printer.png b/res/drawable-xhdpi/ic_grayedout_printer.png Binary files differnew file mode 100644 index 0000000..5e54970 --- /dev/null +++ b/res/drawable-xhdpi/ic_grayedout_printer.png diff --git a/res/layout/empty_print_state.xml b/res/layout/empty_print_state.xml new file mode 100644 index 0000000..135b3dd --- /dev/null +++ b/res/layout/empty_print_state.xml @@ -0,0 +1,48 @@ +<?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. +--> + +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/empty_printers_list_service_disabled" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:visibility="gone"> + + <LinearLayout + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center" + android:gravity="center" + android:orientation="vertical"> + + <ImageView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginBottom="12dip" + android:src="@drawable/ic_grayedout_printer" + android:contentDescription="@string/print_service_disabled"> + </ImageView> + + <TextView + android:id="@+id/message" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceLarge" + android:textColor="?android:attr/textColorSecondary"> + </TextView> + + </LinearLayout> + +</FrameLayout> diff --git a/res/layout/empty_printers_list_service_enabled.xml b/res/layout/empty_printers_list_service_enabled.xml new file mode 100644 index 0000000..78c8b43 --- /dev/null +++ b/res/layout/empty_printers_list_service_enabled.xml @@ -0,0 +1,55 @@ +<?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. +--> + +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/empty_printers_list_service_enabled" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:visibility="gone"> + + <LinearLayout + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center" + android:gravity="center" + android:orientation="vertical"> + + <ImageView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginBottom="12dip" + android:src="@drawable/ic_grayedout_printer" + android:contentDescription="@string/print_searching_for_printers"> + </ImageView> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceLarge" + android:textColor="?android:attr/textColorSecondary" + android:text="@string/print_searching_for_printers"> + </TextView> + + <ProgressBar + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:indeterminate="true" + style="@android:style/Widget.Holo.ProgressBar.Horizontal"> + </ProgressBar> + + </LinearLayout> + +</FrameLayout> diff --git a/res/layout/print_job_summary.xml b/res/layout/print_job_summary.xml new file mode 100644 index 0000000..d755de2 --- /dev/null +++ b/res/layout/print_job_summary.xml @@ -0,0 +1,43 @@ +<?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. +--> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_marginStart="15dip" + android:layout_marginEnd="6dip" + android:minHeight="?android:attr/listPreferredItemHeight" + android:gravity="top|start" + android:orientation="vertical" + android:paddingEnd="?android:attr/scrollbarSize" + android:background="?android:attr/selectableItemBackground"> + + <View + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:background="?android:attr/listDivider"> + </View> + + <TextView android:id="@+android:id/summary" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginTop="6dip" + android:layout_marginBottom="6dip" + android:textAppearance="?android:attr/textAppearanceSmall" + android:textColor="?android:attr/textColorSecondary"> + </TextView> + +</LinearLayout> diff --git a/res/values/donottranslate.xml b/res/values/donottranslate.xml index 3d12d7c..f290f38 100644 --- a/res/values/donottranslate.xml +++ b/res/values/donottranslate.xml @@ -37,5 +37,4 @@ <string name="download_print_service_query">market://search?q=print service</string> <!-- Default query string to search for a NFC payment service. --> <string name="download_nfc_payment_service_query">market://search?q=nfc payment</string> - </resources> diff --git a/res/values/strings.xml b/res/values/strings.xml index 099d787..79a4c92 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -3453,11 +3453,32 @@ <!-- Title for the prompt if no printers are available and the system is searching for such. [CHAR LIMIT=50] --> <string name="print_searching_for_printers">Searching for printers</string> + <!-- Title for the prompt if no printers are available because the print service is disabled. [CHAR LIMIT=50] --> + <string name="print_service_disabled">Service disabled</string> + <!-- Title for the menu item to open the print jobs screen. [CHAR LIMIT=25] --> <string name="print_print_jobs">Print jobs</string> - <!-- Title for the print jobs screen. [CHAR LIMIT=25] --> - <string name="print_active_print_jobs">Active print jobs</string> + <!-- Title for the print job settings screen. [CHAR LIMIT=25] --> + <string name="print_print_job">Print job</string> + + <!-- Title for the button to restart a print job. [CHAR LIMIT=25] --> + <string name="print_restart">Restart</string> + + <!-- Title for the button to cancel a print job. [CHAR LIMIT=25] --> + <string name="print_cancel">Cancel</string> + + <!-- Template for the summary of a print job. [CHAR LIMIT=25] --> + <string name="print_job_summary"><xliff:g id="printer">%1$s</xliff:g>\n<xliff:g id="time">%2$s</xliff:g></string> + + <!-- Template for the label of the state for a ongoing print job. [CHAR LIMIT=25] --> + <string name="print_printing_state_title_template">Printing <xliff:g id="print_job_name" example="foo.jpg">%1$s</xliff:g></string> + + <!-- Template for the label of the state for a failed print job. [CHAR LIMIT=25] --> + <string name="print_failed_state_title_template">Printer error <xliff:g id="print_job_name" example="foo.jpg">%1$s</xliff:g></string> + + <!-- Template for the label of the state for a blocked print job. [CHAR LIMIT=25] --> + <string name="print_blocked_state_title_template">Printer blocked <xliff:g id="print_job_name" example="foo.jpg">%1$s</xliff:g></string> <!-- App Fuel Gauge strings --> <skip /> diff --git a/res/xml/print_job_settings.xml b/res/xml/print_job_settings.xml new file mode 100644 index 0000000..a78cec1 --- /dev/null +++ b/res/xml/print_job_settings.xml @@ -0,0 +1,30 @@ +<?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. +--> + +<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:settings="http://schemas.android.com/apk/res/com.android.settings" + android:title="@string/print_print_job"> + + <Preference + android:key="print_job_preference"> + </Preference> + + <Preference + android:key="print_job_message_preference" + android:layout="@layout/print_job_summary"> + </Preference> + +</PreferenceScreen> diff --git a/res/xml/print_settings.xml b/res/xml/print_settings.xml index dc31968..8a29563 100644 --- a/res/xml/print_settings.xml +++ b/res/xml/print_settings.xml @@ -17,4 +17,17 @@ <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" xmlns:settings="http://schemas.android.com/apk/res/com.android.settings" android:title="@string/print_settings_title"> + + <PreferenceCategory + android:key="print_jobs_category" + android:title="@string/print_print_jobs" + android:order="0"> + </PreferenceCategory> + + <PreferenceCategory + android:key="print_services_category" + android:title="@string/print_settings_title" + android:order="1"> + </PreferenceCategory> + </PreferenceScreen> |