Add edit text hints.

This commit is contained in:
Brian Pellin
2009-07-06 20:41:05 -05:00
parent c955661ed2
commit 83e92519b4
3 changed files with 24 additions and 16 deletions

View File

@@ -52,7 +52,8 @@
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:singleLine="true" android:singleLine="true"
android:layout_below="@id/entry_title_label"/> android:layout_below="@id/entry_title_label"
android:hint="@string/hint_title"/>
<!-- Username --> <!-- Username -->
<TextView android:id="@+id/entry_user_name_label" <TextView android:id="@+id/entry_user_name_label"
android:layout_width="wrap_content" android:layout_width="wrap_content"
@@ -63,7 +64,8 @@
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:singleLine="true" android:singleLine="true"
android:layout_below="@id/entry_user_name_label"/> android:layout_below="@id/entry_user_name_label"
android:hint="@string/hint_username"/>
<!-- URL --> <!-- URL -->
<TextView android:id="@+id/entry_url_label" <TextView android:id="@+id/entry_url_label"
android:layout_width="wrap_content" android:layout_width="wrap_content"
@@ -74,7 +76,8 @@
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:singleLine="true" android:singleLine="true"
android:layout_below="@id/entry_url_label"/> android:layout_below="@id/entry_url_label"
android:hint="@string/hint_url"/>
<!-- Password --> <!-- Password -->
<TextView android:id="@+id/entry_password_label" <TextView android:id="@+id/entry_password_label"
android:layout_width="wrap_content" android:layout_width="wrap_content"
@@ -86,7 +89,8 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:password="true" android:password="true"
android:singleLine="true" android:singleLine="true"
android:layout_below="@id/entry_password_label"/> android:layout_below="@id/entry_password_label"
android:hint="@string/hint_pass"/>
<!-- Confirm Password --> <!-- Confirm Password -->
<TextView android:id="@+id/entry_confpassword_label" <TextView android:id="@+id/entry_confpassword_label"
android:layout_width="wrap_content" android:layout_width="wrap_content"
@@ -98,7 +102,8 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:password="true" android:password="true"
android:singleLine="true" android:singleLine="true"
android:layout_below="@id/entry_confpassword_label"/> android:layout_below="@id/entry_confpassword_label"
android:hint="@string/hint_conf_pass"/>
<!-- Comment --> <!-- Comment -->
<TextView android:id="@+id/entry_comment_label" <TextView android:id="@+id/entry_comment_label"
android:layout_width="wrap_content" android:layout_width="wrap_content"
@@ -109,7 +114,8 @@
android:inputType="textMultiLine" android:inputType="textMultiLine"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_below="@id/entry_comment_label"/> android:layout_below="@id/entry_comment_label"
android:hint="@string/hint_comment"/>
</RelativeLayout> </RelativeLayout>
</ScrollView> </ScrollView>
</RelativeLayout> </RelativeLayout>

View File

@@ -42,23 +42,19 @@
<TextView android:layout_width="wrap_content" <TextView android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/entry_and_or" /> android:text="@string/entry_and_or" />
<TextView android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/entry_password" />
<EditText android:id="@+id/pass_password" <EditText android:id="@+id/pass_password"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
android:password="true" android:password="true"
android:singleLine="true"/> android:singleLine="true"
<TextView android:layout_width="wrap_content" android:hint="@string/entry_password"/>
android:layout_height="wrap_content"
android:text="@string/entry_keyfile" />
<EditText android:id="@+id/pass_keyfile" <EditText android:id="@+id/pass_keyfile"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
android:singleLine="true"/> android:singleLine="true"
android:hint="@string/entry_keyfile"/>
<Button android:id="@+id/pass_ok" <Button android:id="@+id/pass_ok"
android:text="@string/pass_ok" android:text="@string/pass_ok"
android:layout_width="100sp" android:layout_width="100sp"

View File

@@ -9,7 +9,7 @@
<string name="entry_title">Name: </string> <string name="entry_title">Name: </string>
<string name="entry_user_name">User Name: </string> <string name="entry_user_name">User Name: </string>
<string name="entry_url">URL: </string> <string name="entry_url">URL: </string>
<string name="entry_password">Password: </string> <string name="entry_password">Password</string>
<string name="entry_comment">Comments: </string> <string name="entry_comment">Comments: </string>
<string name="MaskedPassword">*****</string> <string name="MaskedPassword">*****</string>
<string name="menu_show_password">Show Password</string> <string name="menu_show_password">Show Password</string>
@@ -24,7 +24,7 @@
<string name="menu_lock">Lock Database</string> <string name="menu_lock">Lock Database</string>
<string name="error_nopass">A password or a keyfile is requried.</string> <string name="error_nopass">A password or a keyfile is requried.</string>
<string name="entry_and_or">Enter a password and/or a key file to unlock your database:</string> <string name="entry_and_or">Enter a password and/or a key file to unlock your database:</string>
<string name="entry_keyfile">Key file (optional):</string> <string name="entry_keyfile">Key file (optional)</string>
<color name="blue_highlight">#0000dd</color> <color name="blue_highlight">#0000dd</color>
<string name="group">Group</string> <string name="group">Group</string>
@@ -53,4 +53,10 @@
<string name="search_label">Search</string> <string name="search_label">Search</string>
<string name="search_hint">Entry title/description</string> <string name="search_hint">Entry title/description</string>
<string name="no_results">No search results</string> <string name="no_results">No search results</string>
<string name="hint_title">name</string>
<string name="hint_username">username</string>
<string name="hint_url">url</string>
<string name="hint_pass">password</string>
<string name="hint_conf_pass">confirm password</string>
<string name="hint_comment">comment</string>
</resources> </resources>