diff options
| author | Svetoslav <svetoslavganov@google.com> | 2013-09-18 12:31:23 -0700 | 
|---|---|---|
| committer | Svetoslav <svetoslavganov@google.com> | 2013-09-18 12:31:26 -0700 | 
| commit | 013b816ac7d723a0116c039e6266d93d13851fe1 (patch) | |
| tree | a2faa290343c9992fa049f45c3e5bfcf6848bedc /core/java/android/print/PrintAttributes.java | |
| parent | 01fc088462d05478bcdf416fb02532d53e85dd6a (diff) | |
| download | frameworks_base-013b816ac7d723a0116c039e6266d93d13851fe1.zip frameworks_base-013b816ac7d723a0116c039e6266d93d13851fe1.tar.gz frameworks_base-013b816ac7d723a0116c039e6266d93d13851fe1.tar.bz2  | |
Update the print dialog.
1. The print dialog was resizable and as a result when printers
   come and go its size changes which looks bad. The dialog is
   now trying to be maximally large limited by a max size or the
   screen - whichever is smaller. This required moving from
   GridLayout to several LinearLayouts since the former does not
   support distribution of empty space evently between the items
   in a row. Also we want all items in a column of inputs to be
   of equal size (the spinners specifically).
2. Added labeledBy attribute to associate a view with another one
   that serves as its label for accessibility purposes. We have
   lebelFor attribute but it is not useful in most layout files
   since it has to refer the auto-generated id of a view which
   usually appears later in the layout file, thus generating a
   compilation error. This was needed for the accessibility support
   of the print dialog.
bug:10631660
2. Disabling the spinners or the print button did not produce
   visual feedback leading to user frustration.
bug:10741907
Change-Id: I0c12eddabc4035bc7becd1b86c1f1b8fdcf4289c
Diffstat (limited to 'core/java/android/print/PrintAttributes.java')
| -rw-r--r-- | core/java/android/print/PrintAttributes.java | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/print/PrintAttributes.java b/core/java/android/print/PrintAttributes.java index efe6b15..e61fe89 100644 --- a/core/java/android/print/PrintAttributes.java +++ b/core/java/android/print/PrintAttributes.java @@ -391,7 +391,7 @@ public final class PrintAttributes implements Parcelable {          public static final MediaSize NA_LEDGER =                  new MediaSize("NA_LEDGER", "android", R.string.mediaSize_na_ledger, 17000, 11000);          /** North America Tabloid media size: 11" x 17" (279mm × 432mm) */ -        public static final MediaSize NA_TBLOID = +        public static final MediaSize NA_TABLOID =                  new MediaSize("NA_TABLOID", "android",                          R.string.mediaSize_na_tabloid, 11000, 17000);          /** North America Index Card 3x5 media size: 3" x 5" (76mm x 127mm) */  | 
