Added missing hints in assistant & contact editor input text fields
This commit is contained in:
parent
4c98e19869
commit
002cbd7008
14 changed files with 52 additions and 3 deletions
|
@ -637,6 +637,9 @@ public class ContactEditorFragment extends Fragment {
|
|||
noa.setHint(isSip ? getString(R.string.sip_address) : getString(R.string.phone_number));
|
||||
if (!isSip) {
|
||||
noa.setInputType(InputType.TYPE_CLASS_PHONE);
|
||||
noa.setHint(R.string.phone_number);
|
||||
} else {
|
||||
noa.setHint(R.string.sip_address);
|
||||
}
|
||||
noa.requestFocus();
|
||||
noa.addTextChangedListener(
|
||||
|
|
|
@ -28,7 +28,6 @@
|
|||
android:paddingTop="10dp"
|
||||
android:text="@string/assistant_create_account_part_1" />
|
||||
|
||||
|
||||
<TableLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
|
@ -110,6 +109,7 @@
|
|||
android:inputType="phone"
|
||||
android:maxLines="1"
|
||||
android:text="+"
|
||||
android:hint="@string/international_prefix"
|
||||
android:textColor="@color/black_color" />
|
||||
|
||||
<EditText
|
||||
|
@ -120,6 +120,7 @@
|
|||
android:contentDescription="@string/content_description_phone_number_field"
|
||||
android:inputType="phone"
|
||||
android:maxLines="1"
|
||||
android:hint="@string/phone_number"
|
||||
android:textColor="@color/black_color" />
|
||||
|
||||
</LinearLayout>
|
||||
|
@ -178,6 +179,7 @@
|
|||
android:contentDescription="@string/content_description_username_field"
|
||||
android:inputType="text|textNoSuggestions"
|
||||
android:maxLines="1"
|
||||
android:hint="@string/username"
|
||||
android:textColor="@color/black_color" />
|
||||
|
||||
<TextView
|
||||
|
@ -218,6 +220,7 @@
|
|||
android:paddingLeft="10dp"
|
||||
android:paddingRight="10dp"
|
||||
android:textColor="@color/black_color"
|
||||
android:hint="@string/password"
|
||||
android:textCursorDrawable="@null" />
|
||||
|
||||
<TextView
|
||||
|
@ -266,6 +269,7 @@
|
|||
android:paddingLeft="10dp"
|
||||
android:paddingRight="10dp"
|
||||
android:textColor="@color/black_color"
|
||||
android:hint="@string/email"
|
||||
android:textCursorDrawable="@null" />
|
||||
|
||||
<TextView
|
||||
|
@ -307,6 +311,7 @@
|
|||
android:paddingLeft="10dp"
|
||||
android:paddingRight="10dp"
|
||||
android:textColor="@color/black_color"
|
||||
android:hint="@string/confirm_password"
|
||||
android:textCursorDrawable="@null" />
|
||||
|
||||
<TextView
|
||||
|
|
|
@ -96,6 +96,7 @@
|
|||
android:gravity="center"
|
||||
android:inputType="phone"
|
||||
android:maxLines="1"
|
||||
android:hint="@string/international_prefix"
|
||||
android:text="+"
|
||||
android:textColor="@color/black_color" />
|
||||
|
||||
|
@ -107,6 +108,7 @@
|
|||
android:contentDescription="@string/content_description_phone_number_field"
|
||||
android:inputType="phone"
|
||||
android:maxLines="1"
|
||||
android:hint="@string/phone_number"
|
||||
android:textColor="@color/black_color" />
|
||||
|
||||
</LinearLayout>
|
||||
|
@ -154,6 +156,7 @@
|
|||
android:contentDescription="@string/content_description_username_field"
|
||||
android:inputType="text|textNoSuggestions"
|
||||
android:maxLines="1"
|
||||
android:hint="@string/username"
|
||||
android:textColor="@color/black_color" />
|
||||
|
||||
</LinearLayout>
|
||||
|
@ -182,6 +185,7 @@
|
|||
android:background="@drawable/resizable_textfield"
|
||||
android:inputType="textPassword"
|
||||
android:maxLines="1"
|
||||
android:hint="@string/password"
|
||||
android:textColor="@color/black_color" />
|
||||
|
||||
<TextView
|
||||
|
|
|
@ -57,6 +57,7 @@
|
|||
android:contentDescription="@string/content_description_username_field"
|
||||
android:inputType="text|textNoSuggestions"
|
||||
android:maxLines="1"
|
||||
android:hint="@string/username"
|
||||
android:textColor="@color/black_color" />
|
||||
</LinearLayout>
|
||||
|
||||
|
@ -81,8 +82,10 @@
|
|||
android:background="@drawable/resizable_textfield"
|
||||
android:inputType="textPassword"
|
||||
android:maxLines="1"
|
||||
android:hint="@string/password"
|
||||
android:textColor="@color/black_color" />
|
||||
</LinearLayout>
|
||||
|
||||
</TableRow>
|
||||
|
||||
<TableRow
|
||||
|
@ -111,6 +114,7 @@
|
|||
android:contentDescription="@string/content_description_display_field"
|
||||
android:inputType="textPersonName"
|
||||
android:maxLines="1"
|
||||
android:hint="@string/assistant_display_name_optional"
|
||||
android:textColor="@color/black_color" />
|
||||
</LinearLayout>
|
||||
|
||||
|
@ -136,7 +140,9 @@
|
|||
android:contentDescription="@string/content_description_domain_field"
|
||||
android:inputType="textUri"
|
||||
android:maxLines="1"
|
||||
android:hint="@string/domain"
|
||||
android:textColor="@color/black_color" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</TableRow>
|
||||
|
@ -167,6 +173,7 @@
|
|||
android:contentDescription="@string/content_description_username_field"
|
||||
android:inputType="text|textNoSuggestions"
|
||||
android:maxLines="1"
|
||||
android:hint="@string/userid"
|
||||
android:textColor="@color/black_color" />
|
||||
|
||||
</LinearLayout>
|
||||
|
|
|
@ -93,6 +93,7 @@
|
|||
android:gravity="center"
|
||||
android:layout_width="65dp"
|
||||
android:layout_height="42dp"
|
||||
android:hint="@string/international_prefix"
|
||||
android:maxLines="1"/>
|
||||
|
||||
<EditText
|
||||
|
@ -103,6 +104,7 @@
|
|||
android:inputType="phone"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="40dp"
|
||||
android:hint="@string/phone_number"
|
||||
android:maxLines="1"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
@ -122,6 +124,7 @@
|
|||
android:layout_height="wrap_content"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
|
@ -147,6 +150,7 @@
|
|||
android:inputType="text|textNoSuggestions"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="40dp"
|
||||
android:hint="@string/username"
|
||||
android:maxLines="1"/>
|
||||
|
||||
<TextView
|
||||
|
@ -190,6 +194,7 @@
|
|||
android:layout_height="40dp"
|
||||
android:paddingLeft="10dp"
|
||||
android:paddingRight="10dp"
|
||||
android:hint="@string/email"
|
||||
android:maxLines="1"/>
|
||||
|
||||
<TextView
|
||||
|
@ -232,6 +237,7 @@
|
|||
android:layout_height="40dp"
|
||||
android:paddingLeft="10dp"
|
||||
android:paddingRight="10dp"
|
||||
android:hint="@string/password"
|
||||
android:maxLines="1"/>
|
||||
|
||||
<TextView
|
||||
|
@ -269,6 +275,7 @@
|
|||
android:layout_height="40dp"
|
||||
android:paddingLeft="10dp"
|
||||
android:paddingRight="10dp"
|
||||
android:hint="@string/confirm_password"
|
||||
android:maxLines="1"/>
|
||||
|
||||
<TextView
|
||||
|
|
|
@ -53,6 +53,7 @@
|
|||
android:gravity="center_vertical|center_horizontal"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="40dp"
|
||||
android:hint="@string/confirmation_code"
|
||||
android:maxLines="1"/>
|
||||
|
||||
<Button
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
android:background="@drawable/resizable_textfield"
|
||||
android:gravity="center"
|
||||
android:inputType="textPersonName"
|
||||
android:hint="@string/assistant_choose_country"
|
||||
android:textColor="@color/black_color"
|
||||
android:textCursorDrawable="@null" />
|
||||
|
||||
|
|
|
@ -100,6 +100,7 @@
|
|||
android:gravity="center"
|
||||
android:layout_width="65dp"
|
||||
android:layout_height="42dp"
|
||||
android:hint="@string/international_prefix"
|
||||
android:maxLines="1"/>
|
||||
|
||||
<EditText
|
||||
|
@ -110,6 +111,7 @@
|
|||
android:inputType="phone"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="40dp"
|
||||
android:hint="@string/phone_number"
|
||||
android:maxLines="1"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
@ -125,6 +127,7 @@
|
|||
android:visibility="invisible"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
|
@ -149,7 +152,9 @@
|
|||
android:contentDescription="@string/content_description_username_field"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="40dp"
|
||||
android:hint="@string/username"
|
||||
android:maxLines="1"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
|
@ -174,6 +179,7 @@
|
|||
android:inputType="textPassword"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="40dp"
|
||||
android:hint="@string/password"
|
||||
android:maxLines="1"/>
|
||||
|
||||
<TextView
|
||||
|
|
|
@ -49,6 +49,7 @@
|
|||
android:contentDescription="@string/content_description_username_field"
|
||||
android:inputType="text|textNoSuggestions"
|
||||
android:maxLines="1"
|
||||
android:hint="@string/username"
|
||||
android:textColor="@color/black_color" />
|
||||
|
||||
<TextView
|
||||
|
@ -67,6 +68,7 @@
|
|||
android:contentDescription="@string/content_description_username_field"
|
||||
android:inputType="text|textNoSuggestions"
|
||||
android:maxLines="1"
|
||||
android:hint="@string/userid"
|
||||
android:textColor="@color/black_color" />
|
||||
|
||||
<TextView
|
||||
|
@ -84,6 +86,7 @@
|
|||
android:background="@drawable/resizable_textfield"
|
||||
android:inputType="textPassword"
|
||||
android:maxLines="1"
|
||||
android:hint="@string/password"
|
||||
android:textColor="@color/black_color" />
|
||||
|
||||
<TextView
|
||||
|
@ -102,6 +105,7 @@
|
|||
android:contentDescription="@string/content_description_domain_field"
|
||||
android:inputType="textUri"
|
||||
android:maxLines="1"
|
||||
android:hint="@string/domain"
|
||||
android:textColor="@color/black_color" />
|
||||
|
||||
<TextView
|
||||
|
@ -120,6 +124,7 @@
|
|||
android:contentDescription="@string/content_description_display_field"
|
||||
android:inputType="textPersonName"
|
||||
android:maxLines="1"
|
||||
android:hint="@string/assistant_display_name_optional"
|
||||
android:textColor="@color/black_color" />
|
||||
|
||||
<TextView
|
||||
|
@ -161,6 +166,7 @@
|
|||
android:textColor="?attr/primaryTextColor"
|
||||
android:checked="true"
|
||||
android:text="@string/pref_transport_tls" />
|
||||
|
||||
</RadioGroup>
|
||||
|
||||
<Button
|
||||
|
|
|
@ -46,6 +46,7 @@
|
|||
android:contentDescription="@string/content_description_url_field"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="40dp"
|
||||
android:hint="@string/remote_provisioning_url"
|
||||
android:maxLines="1"/>
|
||||
|
||||
<Button
|
||||
|
|
|
@ -48,6 +48,7 @@
|
|||
android:layout_height="40dp"
|
||||
android:paddingLeft="10dp"
|
||||
android:paddingRight="10dp"
|
||||
android:hint="@string/username"
|
||||
android:maxLines="1"/>
|
||||
|
||||
<TextView
|
||||
|
@ -68,6 +69,7 @@
|
|||
android:layout_height="40dp"
|
||||
android:paddingLeft="10dp"
|
||||
android:paddingRight="10dp"
|
||||
android:hint="@string/password"
|
||||
android:maxLines="1"/>
|
||||
|
||||
|
||||
|
@ -90,6 +92,7 @@
|
|||
android:layout_height="40dp"
|
||||
android:paddingLeft="10dp"
|
||||
android:paddingRight="10dp"
|
||||
android:hint="@string/domain"
|
||||
android:maxLines="1"/>
|
||||
|
||||
<Button
|
||||
|
|
|
@ -96,6 +96,7 @@
|
|||
android:gravity="left"
|
||||
android:inputType="textPersonName|textCapWords"
|
||||
android:paddingRight="5dp"
|
||||
android:hint="@string/contact_last_name"
|
||||
android:textCursorDrawable="@null" />
|
||||
|
||||
<TextView
|
||||
|
@ -117,6 +118,7 @@
|
|||
android:gravity="left"
|
||||
android:inputType="textPersonName|textCapWords"
|
||||
android:paddingRight="5dp"
|
||||
android:hint="@string/contact_first_name"
|
||||
android:textCursorDrawable="@null" />
|
||||
|
||||
<TextView
|
||||
|
@ -139,6 +141,7 @@
|
|||
android:gravity="left"
|
||||
android:inputType="textPersonName|textCapWords"
|
||||
android:paddingRight="5dp"
|
||||
android:hint="@string/contact_organization"
|
||||
android:textCursorDrawable="@null" />
|
||||
|
||||
</LinearLayout>
|
||||
|
|
|
@ -27,6 +27,8 @@
|
|||
<string name="username">Username</string>
|
||||
<string name="userid">User-id (optional)</string>
|
||||
<string name="phone_number">Phone number</string>
|
||||
<string name="confirmation_code">Confirmation code</string>
|
||||
<string name="international_prefix">International phone number prefix</string>
|
||||
<string name="display_name">Display name</string>
|
||||
<string name="password">Password</string>
|
||||
<string name="confirm_password">Password confirmation</string>
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
<item name="accentColor">@color/primary_color</item>
|
||||
<item name="accentColorLight30">@color/primary_light_color</item>
|
||||
<item name="accentTextColor">@color/white_color</item>
|
||||
<item name="primaryTextColor">@color/dark_grey_color</item>
|
||||
<item name="primaryTextColor">@color/light_primary_text_color</item>
|
||||
<item name="secondaryTextColor">@color/white_color</item>
|
||||
<item name="primarySubtextDarkColor">@color/grey_color</item>
|
||||
<item name="primarySubtextLightColor">@color/light_grey_color</item>
|
||||
|
@ -54,7 +54,7 @@
|
|||
<item name="accentColor">@color/primary_color</item>
|
||||
<item name="accentColorLight30">@color/primary_light_color</item>
|
||||
<item name="accentTextColor">@color/white_color</item>
|
||||
<item name="primaryTextColor">@color/white_color</item>
|
||||
<item name="primaryTextColor">@color/dark_primary_text_color</item>
|
||||
<item name="secondaryTextColor">@color/dark_grey_color</item>
|
||||
<item name="primarySubtextDarkColor">@color/header_background_color</item>
|
||||
<item name="primarySubtextLightColor">@color/toolbar_color</item>
|
||||
|
|
Loading…
Reference in a new issue