aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/layout/fragment_password_list.xml7
-rw-r--r--app/src/main/res/layout/fragment_to_clone_or_not.xml11
-rw-r--r--app/src/main/res/values/strings.xml7
3 files changed, 19 insertions, 6 deletions
diff --git a/app/src/main/res/layout/fragment_password_list.xml b/app/src/main/res/layout/fragment_password_list.xml
index 9ee68056..e3f04ece 100644
--- a/app/src/main/res/layout/fragment_password_list.xml
+++ b/app/src/main/res/layout/fragment_password_list.xml
@@ -6,10 +6,15 @@
tools:context="com.zeapo.pwdstore.PasswordFragment">
<ListView
- android:id="@android:id/list"
+ android:id="@+id/pass_list"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:dividerHeight="8dp"
android:divider="@android:color/transparent"/>
+ <Button
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="Add!"
+ android:onClick="addItem"/>
</FrameLayout>
diff --git a/app/src/main/res/layout/fragment_to_clone_or_not.xml b/app/src/main/res/layout/fragment_to_clone_or_not.xml
index c11f3567..90a1ac32 100644
--- a/app/src/main/res/layout/fragment_to_clone_or_not.xml
+++ b/app/src/main/res/layout/fragment_to_clone_or_not.xml
@@ -7,8 +7,10 @@
<LinearLayout
android:id="@+id/myRectangleView"
- android:layout_width="200dp"
+ android:layout_width="match_parent"
android:layout_height="wrap_content"
+ android:layout_marginLeft="18dp"
+ android:layout_marginRight="18dp"
android:background="@drawable/rectangle"
android:layout_gravity="center"
android:orientation="vertical">
@@ -16,7 +18,8 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
- android:text="You have no git repository for the password store."/>
+ android:gravity="center"
+ android:text="@string/clone_fragment_text"/>
<Button
android:id="@+id/main_clone_button"
android:layout_width="match_parent"
@@ -25,13 +28,13 @@
android:layout_marginBottom="8dp"
android:background="@android:color/holo_green_light"
android:onClick="getClone"
- android:text="Clone!"/>
+ android:text="@string/clone"/>
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:background="@android:color/holo_red_light"
- android:text="Initialize!"/>
+ android:text="@string/initialize"/>
</LinearLayout>
</FrameLayout>
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index c348f3aa..d3e70a68 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -2,7 +2,7 @@
<resources>
<string name="app_name">PwdStore</string>
- <string name="clone">Clone!</string>
+
<string name="clone_settings">Clone</string>
<string name="action_settings">Settings</string>
<string name="hello_world">Hello world!</string>
@@ -21,6 +21,11 @@
<item>http://</item>
</string-array>
+ <!-- Clone fragment -->
+ <string name="clone_fragment_text">Password store empty</string>
+ <string name="clone">Clone a git repository</string>
+ <string name="initialize">Initialize a git repository</string>
+
<string name="hello_blank_fragment">Hello blank fragment</string>
</resources>