From 7f6f6e18c9f078323b15c8185a7e707194e7d155 Mon Sep 17 00:00:00 2001 From: Freeman Ng Date: Thu, 2 Jun 2011 15:44:51 -0700 Subject: use prefs-style layout for setup wizard date/time settings on non-xlarge screens Adjusted the screen size test to fall back to phone version of DateTimeSettingsSetupWizard on large screens. I made the following changes from how the phone version works: 1. Some layout changes. (Tablet look, bigger margins.) 2. Use zone picker to select time zone. 3. Added isFirstRun boolean extra to hide the pref fields we don't need to see from setup wizard Furthermore, I made the following fixes to the existing phone flow (which had probably never yet been tried on a phone): 1. Added conditionals around access to some variables that only exist in the xlarge layout. 2. Implemented PreferenceFragment.OnPreferenceStartFragmentCallback in DateTimeSettingsSetupWizard in order to catch the user tapping on the timezone preference and show the time zone picker popup. (Note: for phones in ICS, we might want to launch the zone picker preferences style, like it would have been had this been a PreferenceActivity. Or maybe we should just create a separate DateTimeSettingsSetupWizardPhone activity that subclasses PreferencesActivity and doesn't need to play this trick.) Change-Id: Ib5774a005c9f44d730d86c13746d91eb712141cc --- .../date_time_settings_setupwizard.xml | 168 +++++++++++++++++++++ 1 file changed, 168 insertions(+) create mode 100644 res/layout-sw720dp/date_time_settings_setupwizard.xml (limited to 'res/layout-sw720dp') diff --git a/res/layout-sw720dp/date_time_settings_setupwizard.xml b/res/layout-sw720dp/date_time_settings_setupwizard.xml new file mode 100644 index 0000000..1fc25da --- /dev/null +++ b/res/layout-sw720dp/date_time_settings_setupwizard.xml @@ -0,0 +1,168 @@ + + + + + + + + + + + + +