Enlarge texts and fit the other elements
Basically set text size to 18sp and change layouts along with the new design. - Add custom list item xml for Wi-Fi security field rename existing "custom_list_item.xml" to appropriate name so that we won't be confused with their naming. - Use the custom xml just in SetupWizard. Bug: 3364731 Change-Id: I014903277a03c359ea193dd0f0a37c84ade19fa1
This commit is contained in:
@@ -32,7 +32,7 @@
|
|||||||
android:layout_alignParentLeft="true"
|
android:layout_alignParentLeft="true"
|
||||||
android:layout_marginLeft="16dip"
|
android:layout_marginLeft="16dip"
|
||||||
android:layout_alignParentTop="true"
|
android:layout_alignParentTop="true"
|
||||||
android:textSize="30dip"
|
android:textSize="32dip"
|
||||||
android:textColor="#FF99cc00"
|
android:textColor="#FF99cc00"
|
||||||
android:text="@string/date_and_time_settings_title_setup_wizard"
|
android:text="@string/date_and_time_settings_title_setup_wizard"
|
||||||
android:gravity="bottom" />
|
android:gravity="bottom" />
|
||||||
@@ -62,7 +62,8 @@
|
|||||||
android:layout_alignParentLeft="true"
|
android:layout_alignParentLeft="true"
|
||||||
android:layout_alignBottom="@+id/date_time_auto"
|
android:layout_alignBottom="@+id/date_time_auto"
|
||||||
android:gravity="left|center_vertical"
|
android:gravity="left|center_vertical"
|
||||||
android:textAppearance="?android:attr/textAppearanceMedium" />
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||||
|
android:textSize="20dip" />
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/date_time_auto"
|
android:id="@+id/date_time_auto"
|
||||||
@@ -80,7 +81,8 @@
|
|||||||
android:minHeight="?android:attr/listPreferredItemHeight"
|
android:minHeight="?android:attr/listPreferredItemHeight"
|
||||||
android:layout_marginLeft="16dip"
|
android:layout_marginLeft="16dip"
|
||||||
android:text="@string/date_time_auto"
|
android:text="@string/date_time_auto"
|
||||||
android:textAppearance="?android:attr/textAppearanceMedium" />
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||||
|
android:textSize="20dip" />
|
||||||
|
|
||||||
<!-- Divider -->
|
<!-- Divider -->
|
||||||
<View
|
<View
|
||||||
@@ -108,6 +110,7 @@
|
|||||||
android:layout_height="48dip"
|
android:layout_height="48dip"
|
||||||
android:text="@string/date_picker_title"
|
android:text="@string/date_picker_title"
|
||||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||||
|
android:textSize="20dip"
|
||||||
android:clickable="false"
|
android:clickable="false"
|
||||||
android:longClickable="false"
|
android:longClickable="false"
|
||||||
android:gravity="center" />
|
android:gravity="center" />
|
||||||
@@ -135,6 +138,7 @@
|
|||||||
android:layout_height="48dip"
|
android:layout_height="48dip"
|
||||||
android:text="@string/time_picker_title"
|
android:text="@string/time_picker_title"
|
||||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||||
|
android:textSize="20dip"
|
||||||
android:gravity="center" />
|
android:gravity="center" />
|
||||||
|
|
||||||
<TimePicker
|
<TimePicker
|
||||||
|
@@ -45,7 +45,7 @@
|
|||||||
android:layout_centerVertical="true"
|
android:layout_centerVertical="true"
|
||||||
android:layout_marginLeft="16dip"
|
android:layout_marginLeft="16dip"
|
||||||
android:layout_below="@id/top_padding_layout"
|
android:layout_below="@id/top_padding_layout"
|
||||||
android:textSize="30dip"
|
android:textSize="32dip"
|
||||||
android:textColor="#ff99cc00"
|
android:textColor="#ff99cc00"
|
||||||
android:text="@string/wifi_setup_title"
|
android:text="@string/wifi_setup_title"
|
||||||
android:gravity="bottom"/>
|
android:gravity="bottom"/>
|
||||||
@@ -104,9 +104,10 @@
|
|||||||
android:id="@+id/connecting_status"
|
android:id="@+id/connecting_status"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:lineSpacingExtra="12dip"
|
android:lineSpacingExtra="10dip"
|
||||||
android:inputType="textMultiLine"
|
android:inputType="textMultiLine"
|
||||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||||
|
android:textSize="20sp"
|
||||||
android:clickable="false"
|
android:clickable="false"
|
||||||
android:longClickable="false" />
|
android:longClickable="false" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<!-- Copyright (C) 2010 The Android Open Source Project
|
<!-- Copyright (C) 2011 The Android Open Source Project
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
you may not use this file except in compliance with the License.
|
you may not use this file except in compliance with the License.
|
@@ -30,6 +30,7 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:singleLine="true"
|
android:singleLine="true"
|
||||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||||
|
android:textSize="20sp"
|
||||||
android:ellipsize="marquee"
|
android:ellipsize="marquee"
|
||||||
android:fadingEdge="horizontal" />
|
android:fadingEdge="horizontal" />
|
||||||
|
|
||||||
@@ -52,73 +53,115 @@
|
|||||||
<TextView
|
<TextView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/wifi_wps_pin" />
|
android:text="@string/wifi_wps_pin"
|
||||||
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||||
|
android:textSize="20sp" />
|
||||||
|
|
||||||
<EditText android:id="@+id/wps_pin"
|
<EditText android:id="@+id/wps_pin"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:singleLine="true"
|
android:singleLine="true"
|
||||||
android:inputType="textPassword" />
|
android:inputType="textPassword"
|
||||||
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||||
|
android:textSize="20sp" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
<LinearLayout android:id="@+id/security_fields"
|
<RelativeLayout android:id="@+id/security_fields"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:visibility="gone">
|
android:visibility="gone">
|
||||||
<LinearLayout android:layout_width="match_parent"
|
<TextView android:id="@+id/password_text"
|
||||||
android:layout_height="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:orientation="horizontal">
|
|
||||||
<TextView android:layout_width="wrap_content"
|
|
||||||
android:minWidth="80dip"
|
android:minWidth="80dip"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/wifi_password" />
|
android:minHeight="48dip"
|
||||||
|
android:layout_marginRight="8dip"
|
||||||
|
android:layout_alignParentLeft="true"
|
||||||
|
android:text="@string/wifi_password"
|
||||||
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||||
|
android:textSize="20sp"
|
||||||
|
android:gravity="bottom" />
|
||||||
|
|
||||||
|
<FrameLayout android:id="@+id/password_layout"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:minHeight="48dip"
|
||||||
|
android:layout_alignParentTop="true"
|
||||||
|
android:layout_toRightOf="@id/password_text"
|
||||||
|
android:layout_alignBottom="@id/password_text">
|
||||||
<EditText android:id="@+id/password"
|
<EditText android:id="@+id/password"
|
||||||
android:layout_width="320dip"
|
android:layout_width="368dip"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:singleLine="true"
|
android:singleLine="true"
|
||||||
android:password="true" />
|
android:password="true"
|
||||||
</LinearLayout>
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||||
|
android:textSize="20sp" />
|
||||||
|
</FrameLayout>
|
||||||
|
|
||||||
<CheckBox android:id="@+id/show_password"
|
<CheckBox android:id="@+id/show_password"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/wifi_show_password" />
|
android:layout_marginTop="16dip"
|
||||||
</LinearLayout>
|
android:layout_below="@id/password_layout"
|
||||||
<LinearLayout android:id="@+id/type"
|
android:layout_alignLeft="@id/password_layout"
|
||||||
|
android:text="@string/wifi_show_password"
|
||||||
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||||
|
android:textSize="20sp" />
|
||||||
|
</RelativeLayout>
|
||||||
|
<RelativeLayout android:id="@+id/type"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:visibility="gone">
|
android:visibility="gone">
|
||||||
<LinearLayout android:layout_width="match_parent"
|
<TextView android:id="@+id/ssid_text"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:minWidth="128dip"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:minHeight="48dip"
|
android:minHeight="48dip"
|
||||||
android:orientation="horizontal">
|
android:layout_alignParentLeft="true"
|
||||||
<TextView android:layout_width="wrap_content"
|
android:text="@string/wifi_ssid"
|
||||||
android:minWidth="112dip"
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||||
|
android:textSize="20sp"
|
||||||
|
android:gravity="bottom"/>
|
||||||
|
|
||||||
|
<FrameLayout android:id="@+id/ssid_layout"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/wifi_ssid" />
|
android:layout_alignBottom="@id/ssid_text"
|
||||||
|
android:layout_toRightOf="@id/ssid_text">
|
||||||
<EditText android:id="@+id/ssid"
|
<EditText android:id="@+id/ssid"
|
||||||
android:layout_width="398dip"
|
android:layout_width="368dip"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:singleLine="true"
|
android:singleLine="true"
|
||||||
android:inputType="textNoSuggestions" />
|
android:inputType="textNoSuggestions"
|
||||||
</LinearLayout>
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||||
|
android:textSize="20sp" />
|
||||||
|
</FrameLayout>
|
||||||
|
|
||||||
<LinearLayout android:layout_width="match_parent"
|
<TextView android:id="@+id/security_text"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:minWidth="128dip"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="16dip"
|
||||||
|
android:minHeight="48dip"
|
||||||
|
android:layout_below="@id/ssid_text"
|
||||||
|
android:layout_alignLeft="@id/ssid_text"
|
||||||
|
android:text="@string/wifi_security"
|
||||||
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||||
|
android:textSize="20sp"
|
||||||
|
android:gravity="bottom"/>
|
||||||
|
|
||||||
|
<Spinner android:id="@+id/security"
|
||||||
|
android:layout_width="368dip"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:minHeight="48dip"
|
android:minHeight="48dip"
|
||||||
android:orientation="horizontal">
|
android:layout_alignBottom="@id/security_text"
|
||||||
<TextView android:layout_width="wrap_content"
|
android:layout_toRightOf="@id/security_text"
|
||||||
android:minWidth="112dip"
|
android:paddingLeft="4dip"
|
||||||
android:layout_height="wrap_content"
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||||
android:text="@string/wifi_security" />
|
android:textSize="20sp"
|
||||||
<Spinner android:id="@+id/security"
|
android:gravity="left|center_vertical"/>
|
||||||
android:layout_width="398dip"
|
</RelativeLayout> <!-- android:id="@+id/type" -->
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:prompt="@string/wifi_security"
|
|
||||||
android:entries="@array/wifi_security" />
|
|
||||||
</LinearLayout>
|
|
||||||
</LinearLayout> <!-- android:id="@+id/type" -->
|
|
||||||
|
|
||||||
<LinearLayout android:id="@+id/eap_not_supported"
|
<LinearLayout android:id="@+id/eap_not_supported"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
@@ -130,7 +173,8 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:lineSpacingExtra="12dip"
|
android:lineSpacingExtra="12dip"
|
||||||
android:text="@string/wifi_setup_eap_not_supported"
|
android:text="@string/wifi_setup_eap_not_supported"
|
||||||
android:textAppearance="?android:attr/textAppearanceMedium" />
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||||
|
android:textSize="20sp" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<!-- All the views below are "gone".
|
<!-- All the views below are "gone".
|
||||||
|
27
res/layout/wifi_setup_custom_list_item_1.xml
Normal file
27
res/layout/wifi_setup_custom_list_item_1.xml
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!-- Copyright (C) 2011 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.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!-- Based on simple_list_item_1.xml in framework -->
|
||||||
|
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:id="@android:id/text1"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||||
|
android:textSize="20sp"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
android:paddingLeft="10dip"
|
||||||
|
android:minHeight="48dip"
|
||||||
|
/>
|
@@ -55,6 +55,7 @@
|
|||||||
<item name="android:minWidth">208dip</item>
|
<item name="android:minWidth">208dip</item>
|
||||||
<item name="android:layout_height">48dip</item>
|
<item name="android:layout_height">48dip</item>
|
||||||
<item name="android:textAppearance">?android:attr/textAppearanceMedium</item>
|
<item name="android:textAppearance">?android:attr/textAppearanceMedium</item>
|
||||||
|
<item name="android:textSize">20sp</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
|
@@ -101,7 +101,7 @@ public class DateTimeSettingsSetupWizard extends Activity
|
|||||||
// mTimeZoneButton.setText(DateTimeSettings.getTimeZoneText(tz));
|
// mTimeZoneButton.setText(DateTimeSettings.getTimeZoneText(tz));
|
||||||
mTimeZoneButton.setOnClickListener(this);
|
mTimeZoneButton.setOnClickListener(this);
|
||||||
mTimeZoneAdapter = ZonePicker.constructTimezoneAdapter(this, false,
|
mTimeZoneAdapter = ZonePicker.constructTimezoneAdapter(this, false,
|
||||||
R.layout.custom_list_item);
|
R.layout.date_time_setup_custom_list_item_2);
|
||||||
|
|
||||||
final boolean autoDateTimeEnabled;
|
final boolean autoDateTimeEnabled;
|
||||||
final Intent intent = getIntent();
|
final Intent intent = getIntent();
|
||||||
|
@@ -159,6 +159,13 @@ public class WifiConfigController implements TextWatcher,
|
|||||||
mSsidView.addTextChangedListener(this);
|
mSsidView.addTextChangedListener(this);
|
||||||
mSecuritySpinner = ((Spinner) mView.findViewById(R.id.security));
|
mSecuritySpinner = ((Spinner) mView.findViewById(R.id.security));
|
||||||
mSecuritySpinner.setOnItemSelectedListener(this);
|
mSecuritySpinner.setOnItemSelectedListener(this);
|
||||||
|
if (context instanceof WifiSettingsForSetupWizardXL) {
|
||||||
|
// We want custom layout. The content must be same as the other cases.
|
||||||
|
mSecuritySpinner.setAdapter(
|
||||||
|
new ArrayAdapter<String>(context, R.layout.wifi_setup_custom_list_item_1,
|
||||||
|
android.R.id.text1,
|
||||||
|
context.getResources().getStringArray(R.array.wifi_security)));
|
||||||
|
}
|
||||||
mConfigUi.setSubmitButton(context.getString(R.string.wifi_save));
|
mConfigUi.setSubmitButton(context.getString(R.string.wifi_save));
|
||||||
} else {
|
} else {
|
||||||
mConfigUi.setTitle(mAccessPoint.ssid);
|
mConfigUi.setTitle(mAccessPoint.ssid);
|
||||||
|
Reference in New Issue
Block a user