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:
@@ -159,6 +159,13 @@ public class WifiConfigController implements TextWatcher,
|
||||
mSsidView.addTextChangedListener(this);
|
||||
mSecuritySpinner = ((Spinner) mView.findViewById(R.id.security));
|
||||
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));
|
||||
} else {
|
||||
mConfigUi.setTitle(mAccessPoint.ssid);
|
||||
|
Reference in New Issue
Block a user