Move more strings into resources.

This commit is contained in:
Brian Pellin
2009-10-02 23:54:56 -05:00
parent 146dee0671
commit f026e11a3d
4 changed files with 15 additions and 8 deletions

View File

@@ -35,7 +35,7 @@
android:scaleType="fitXY"
android:src="@android:drawable/divider_horizontal_dark"/>
<Button android:id="@+id/entry_edit"
android:text="Edit"
android:text="@string/menu_edit"
android:layout_width="100sp"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"

View File

@@ -24,15 +24,15 @@
android:layout_width="fill_parent"
android:layout_height="wrap_content"
style="?android:attr/listSeparatorTextViewStyle"
android:text="Open recent database (click to open):"/>
android:text="@string/open_recent"/>
<Button android:id="@+id/open"
android:text="Open"
android:text="@string/menu_open"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_alignParentBottom="true"
android:width="100sp"/>
<Button android:id="@+id/create"
android:text="Create"
android:text="@string/menu_create"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_alignParentBottom="true"
@@ -49,7 +49,7 @@
android:layout_height="wrap_content"
android:layout_above="@id/file_filename"
style="?android:attr/listSeparatorTextViewStyle"
android:text="Enter database filename:"/>
android:text="@string/enter_filename"/>
<ListView android:id="@android:id/list"
android:layout_width="fill_parent"
android:layout_height="wrap_content"

View File

@@ -24,7 +24,7 @@
android:layout_width="fill_parent"
android:layout_height="wrap_content"
style="?android:attr/listSeparatorTextViewStyle"
android:text="Enter database filename:"/>
android:text="@string/enter_filename"/>
<EditText android:id="@+id/file_filename"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
@@ -32,16 +32,20 @@
android:layout_below="@id/label_open_by_filename"
android:text="/sdcard/keepass/keepass.kdb"/>
<Button android:id="@+id/open"
android:text="Open"
android:text="@string/menu_open"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_below="@id/file_filename"
android:width="100sp"/>
<Button android:id="@+id/create"
android:text="Create"
android:text="@string/menu_create"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_below="@id/file_filename"
android:layout_toRightOf="@id/open"
android:width="100sp"/>
<!-- Small hack because I need to include a list since this is a list activity -->
<ListView android:id="@android:id/list"
android:layout_width="0sp"
android:layout_height="0sp"/>
</RelativeLayout>

View File

@@ -39,6 +39,7 @@
<string name="menu_delete">Delete</string>
<string name="menu_open">Open</string>
<string name="menu_rename">Rename</string>
<string name="menu_create">Create</string>
<string name="menu_db_settings">Database Settings</string>
<string name="menu_change_key">Change Master Key</string>
<string name="pass_filename">KeePass database filename:</string>
@@ -103,4 +104,6 @@
<string name="progress_create">Creating new database...</string>
<string name="error_database_exists">This file already exists.</string>
<string name="password_title">Enter database password</string>
<string name="enter_filename">Enter database filename:</string>
<string name="open_recent">Open recent database (click to open):</string>
</resources>