aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/layout
diff options
context:
space:
mode:
authorknuthy <knuthy@gmail.com>2014-08-15 14:27:13 +0200
committerknuthy <knuthy@gmail.com>2014-08-15 14:27:13 +0200
commit390a7ec82598ba25f3dfa536ae819e771393f65b (patch)
treea111047c992019be2af65571475581d36cd89a4c /app/src/main/res/layout
parente6ad605d1784886b8dd16af3db19f68f77a3ed0b (diff)
first shot for improved expandable lists
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r--app/src/main/res/layout/child_row_layout.xml30
-rw-r--r--app/src/main/res/layout/fragment_password_list.xml5
2 files changed, 33 insertions, 2 deletions
diff --git a/app/src/main/res/layout/child_row_layout.xml b/app/src/main/res/layout/child_row_layout.xml
new file mode 100644
index 00000000..a60ead53
--- /dev/null
+++ b/app/src/main/res/layout/child_row_layout.xml
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<GridLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:orientation="vertical" android:layout_width="match_parent"
+ android:layout_height="match_parent">
+
+ <ImageButton
+ android:id="@+id/crypto_delete_button"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:src="@drawable/ico_del"
+ android:background="@drawable/red_rectangle"
+ android:layout_gravity="center_vertical"
+ android:onClick="handleClick"
+ android:layout_column="1"
+ android:layout_row="0"/>
+
+ <ImageButton
+ android:id="@+id/crypto_show_button"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:src="@drawable/ico_key"
+ android:background="@drawable/blue_rectangle"
+ android:layout_gravity="center_vertical"
+ android:layout_marginLeft="8dp"
+ android:onClick="handleClick"
+ android:layout_column="2"
+ android:layout_row="0"/>
+
+</GridLayout> \ No newline at end of file
diff --git a/app/src/main/res/layout/fragment_password_list.xml b/app/src/main/res/layout/fragment_password_list.xml
index 64dd3d94..6ae0c0d8 100644
--- a/app/src/main/res/layout/fragment_password_list.xml
+++ b/app/src/main/res/layout/fragment_password_list.xml
@@ -5,11 +5,12 @@
android:layout_height="match_parent"
tools:context="com.zeapo.pwdstore.PasswordFragment">
- <ListView
+ <ExpandableListView
android:id="@+id/pass_list"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:dividerHeight="@dimen/activity_vertical_margin"
- android:divider="@android:color/transparent"/>
+ android:divider="@android:color/transparent"
+ android:groupIndicator="@android:drawable/screen_background_light_transparent"/>
</FrameLayout>