Merge "Revise layout for DateTime setup" into honeycomb
This commit is contained in:
committed by
Android (Google) Code Review
commit
f6bbf11a05
@@ -18,7 +18,7 @@
|
|||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:paddingTop="160dip"
|
android:paddingTop="154dip"
|
||||||
android:paddingLeft="128dip"
|
android:paddingLeft="128dip"
|
||||||
android:paddingRight="128dip"
|
android:paddingRight="128dip"
|
||||||
android:paddingBottom="96dip">
|
android:paddingBottom="96dip">
|
||||||
@@ -34,8 +34,8 @@
|
|||||||
android:layout_alignParentTop="true"
|
android:layout_alignParentTop="true"
|
||||||
android:textSize="30dip"
|
android:textSize="30dip"
|
||||||
android:textColor="#FF99cc00"
|
android:textColor="#FF99cc00"
|
||||||
android:text="@string/date_and_time_settings_title"
|
android:text="@string/date_and_time_settings_title_setup_wizard"
|
||||||
android:gravity="center_vertical" />
|
android:gravity="bottom" />
|
||||||
|
|
||||||
<!-- Divider -->
|
<!-- Divider -->
|
||||||
<View
|
<View
|
||||||
@@ -44,34 +44,35 @@
|
|||||||
android:layout_height="3dip"
|
android:layout_height="3dip"
|
||||||
android:layout_below="@id/title"
|
android:layout_below="@id/title"
|
||||||
android:layout_marginTop="6dip"
|
android:layout_marginTop="6dip"
|
||||||
android:layout_marginBottom="7dip"
|
android:layout_marginBottom="17dip"
|
||||||
android:background="@color/divider_color" />
|
android:background="@color/divider_color" />
|
||||||
|
|
||||||
|
<RelativeLayout
|
||||||
|
android:id="@+id/timezone_auto_time"
|
||||||
|
android:layout_width="716dip"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_centerHorizontal="true"
|
||||||
|
android:layout_below="@id/top_divider">
|
||||||
<!-- timezone -->
|
<!-- timezone -->
|
||||||
<Button
|
<Button
|
||||||
android:id="@+id/time_zone_button"
|
android:id="@+id/time_zone_button"
|
||||||
style="?android:attr/dropDownSpinnerStyle"
|
style="?android:attr/dropDownSpinnerStyle"
|
||||||
android:layout_width="304dip"
|
android:layout_width="304dip"
|
||||||
android:layout_height="48dip"
|
android:layout_height="48dip"
|
||||||
android:layout_below="@id/top_divider"
|
android:layout_alignParentLeft="true"
|
||||||
android:layout_marginTop="48dip"
|
android:layout_centerVertical="true"
|
||||||
android:layout_marginLeft="16dip"
|
android:gravity="left|center_vertical"
|
||||||
android:paddingLeft="16dip"
|
|
||||||
android:paddingTop="0dip"
|
|
||||||
android:paddingBottom="0dip"
|
|
||||||
android:gravity="left|center"
|
|
||||||
android:textAppearance="?android:attr/textAppearanceMedium" />
|
android:textAppearance="?android:attr/textAppearanceMedium" />
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/date_time_auto"
|
android:id="@+id/date_time_auto"
|
||||||
android:layout_width="624dip"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:layout_below="@id/top_divider"
|
android:layout_toRightOf="@id/time_zone_button"
|
||||||
android:layout_alignParentRight="true"
|
android:layout_marginLeft="32dip"
|
||||||
android:layout_marginTop="32dip"
|
android:layout_centerVertical="true"
|
||||||
android:layout_marginRight="16dip"
|
android:layout_alignParentRight="true">
|
||||||
android:layout_marginBottom="48dip">
|
|
||||||
|
|
||||||
<Switch
|
<Switch
|
||||||
android:id="@+id/date_time_auto_button"
|
android:id="@+id/date_time_auto_button"
|
||||||
@@ -89,52 +90,71 @@
|
|||||||
android:layout_height="1px"
|
android:layout_height="1px"
|
||||||
android:background="@color/divider_color" />
|
android:background="@color/divider_color" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
</RelativeLayout>
|
||||||
|
|
||||||
<TextView
|
<LinearLayout
|
||||||
android:id="@+id/date_picker_title"
|
android:layout_width="624dip"
|
||||||
android:layout_width="312dip"
|
android:layout_height="wrap_content"
|
||||||
android:layout_height="48dip"
|
android:layout_centerHorizontal="true"
|
||||||
android:layout_toLeftOf="@+id/time_picker_title"
|
android:layout_below="@+id/timezone_auto_time"
|
||||||
android:layout_below="@id/date_time_auto"
|
android:layout_marginTop="48dip"
|
||||||
android:text="@string/date_picker_title"
|
android:orientation="horizontal">
|
||||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
|
||||||
android:gravity="center" />
|
|
||||||
|
|
||||||
<DatePicker
|
<LinearLayout
|
||||||
android:id="@+id/date_picker"
|
|
||||||
android:layout_width="312dip"
|
android:layout_width="312dip"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_toLeftOf="@+id/time_picker"
|
android:orientation="vertical">
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/date_picker_title"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="48dip"
|
||||||
|
android:text="@string/date_picker_title"
|
||||||
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||||
|
android:clickable="false"
|
||||||
|
android:longClickable="false"
|
||||||
|
android:gravity="center" />
|
||||||
|
<DatePicker
|
||||||
|
android:id="@+id/date_picker"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
android:layout_below="@id/date_picker_title" />
|
android:layout_below="@id/date_picker_title" />
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<!-- divider -->
|
||||||
|
<View
|
||||||
|
android:id="@+id/center_divider"
|
||||||
|
android:layout_width="1dip"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:background="@color/divider_color" />
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="312dip"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="vertical">
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/time_picker_title"
|
android:id="@+id/time_picker_title"
|
||||||
android:layout_width="312dip"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="48dip"
|
android:layout_height="48dip"
|
||||||
android:layout_below="@id/date_time_auto"
|
|
||||||
android:layout_alignParentRight="true"
|
|
||||||
android:text="@string/time_picker_title"
|
android:text="@string/time_picker_title"
|
||||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||||
android:gravity="center" />
|
android:gravity="center" />
|
||||||
|
|
||||||
<TimePicker
|
<TimePicker
|
||||||
android:id="@+id/time_picker"
|
android:id="@+id/time_picker"
|
||||||
android:layout_width="312dip"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_alignParentRight="true"
|
|
||||||
android:layout_below="@id/time_picker_title" />
|
android:layout_below="@id/time_picker_title" />
|
||||||
|
</LinearLayout>
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
<!-- TODO: remove this button when we are sure it is needless -->
|
<View
|
||||||
<Button
|
android:id="@+id/bottom_divider"
|
||||||
android:id="@+id/skip_button"
|
android:layout_width="match_parent"
|
||||||
android:layout_width="208dip"
|
android:layout_height="3dip"
|
||||||
android:layout_height="48dip"
|
android:layout_alignLeft="@id/timezone_auto_time"
|
||||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
android:layout_above="@+id/next_button"
|
||||||
android:layout_alignParentBottom="true"
|
android:layout_marginBottom="16dip"
|
||||||
android:layout_toLeftOf="@+id/next_button"
|
android:background="@color/divider_color" />
|
||||||
android:layout_marginRight="16dip"
|
|
||||||
android:text="@string/skip_label"
|
|
||||||
android:visibility="gone" />
|
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
android:id="@+id/next_button"
|
android:id="@+id/next_button"
|
||||||
@@ -142,8 +162,6 @@
|
|||||||
android:layout_height="48dip"
|
android:layout_height="48dip"
|
||||||
android:layout_alignParentBottom="true"
|
android:layout_alignParentBottom="true"
|
||||||
android:layout_alignParentRight="true"
|
android:layout_alignParentRight="true"
|
||||||
android:layout_marginRight="16dip"
|
|
||||||
android:text="@string/next_label"
|
android:text="@string/next_label"
|
||||||
android:textAppearance="?android:attr/textAppearanceMedium" />
|
android:textAppearance="?android:attr/textAppearanceMedium" />
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
@@ -512,6 +512,8 @@
|
|||||||
<!-- Date and time settings --><skip />
|
<!-- Date and time settings --><skip />
|
||||||
<!-- Main Settings screen setting option name to go into the date and time settings-->
|
<!-- Main Settings screen setting option name to go into the date and time settings-->
|
||||||
<string name="date_and_time_settings_title">Date & time</string>
|
<string name="date_and_time_settings_title">Date & time</string>
|
||||||
|
<!-- Title for Date & Time settings screen in SetupWizard [CHAR LIMIT=40] -->
|
||||||
|
<string name="date_and_time_settings_title_setup_wizard">Set Date and time</string>
|
||||||
<!-- Main Settings screen setting option summary text for the item to go into the date and time settings. -->
|
<!-- Main Settings screen setting option summary text for the item to go into the date and time settings. -->
|
||||||
<string name="date_and_time_settings_summary">Set date, time, time zone & formats</string>
|
<string name="date_and_time_settings_summary">Set date, time, time zone & formats</string>
|
||||||
<!-- Date & time setting screen setting check box title if the date and time should be determined automatically [CHAR LIMIT=25] -->
|
<!-- Date & time setting screen setting check box title if the date and time should be determined automatically [CHAR LIMIT=25] -->
|
||||||
|
@@ -126,7 +126,10 @@ public class DateTimeSettingsSetupWizard extends Activity
|
|||||||
mInputMethodManager = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);
|
mInputMethodManager = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);
|
||||||
|
|
||||||
((Button)findViewById(R.id.next_button)).setOnClickListener(this);
|
((Button)findViewById(R.id.next_button)).setOnClickListener(this);
|
||||||
((Button)findViewById(R.id.skip_button)).setOnClickListener(this);
|
final Button skipButton = (Button)findViewById(R.id.skip_button);
|
||||||
|
if (skipButton != null) {
|
||||||
|
skipButton.setOnClickListener(this);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Reference in New Issue
Block a user