Add GUI changes for KeePassDroid icon support.

This commit is contained in:
toluse committed 2010-08-18 22:20:10 +02:00
1 parent fb093f0a3d
commit 6bd2cdf9d2
9 files changed
+143 -13

No files matched your search

+8 -1
View File
@@ -48,9 +48,16 @@
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/entry_title" />
<ImageButton android:id="@+id/icon_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic00"
android:layout_alignParentRight="true"
android:layout_below="@id/entry_title_label"/>
<EditText android:id="@+id/entry_title"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_toLeftOf="@+id/icon_button"
android:singleLine="true"
android:layout_below="@id/entry_title_label"
android:hint="@string/hint_title"/>
@@ -58,7 +65,7 @@
<TextView android:id="@+id/entry_user_name_label"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/entry_title"
android:layout_below="@id/icon_button"
android:text="@string/entry_user_name" />
<EditText android:id="@+id/entry_user_name"
android:layout_width="fill_parent"
+19 -4
View File
@@ -17,8 +17,23 @@
You should have received a copy of the GNU General Public License
along with KeePassDroid. If not, see <http://www.gnu.org/licenses/>.
-->
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/entry_text"
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
style="@style/ElementTextLarge"/>
android:stretchColumns="1">
<TableRow android:layout_width="fill_parent"
android:layout_height="wrap_content">
<ImageView android:id="@+id/entry_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="5dp"
android:scaleType="fitXY"
android:src="@drawable/ic99_blank"/>
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/entry_text"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
style="@style/ElementTextLarge"/>
<View/>
</TableRow>
</TableLayout>
+12 -3
View File
@@ -21,13 +21,22 @@
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<!-- Title -->
<TextView android:id="@+id/entry_title"
<TextView android:id="@+id/entry_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
style="@style/ElementTextTitle"
/>
android:layout_toLeftOf="@id/entry_icon"
android:minHeight="32dp"
style="@style/ElementTextTitle"/>
<ImageView android:id="@+id/entry_icon"
android:layout_alignParentTop="true"
android:layout_alignParentRight="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:scaleType="fitXY"
android:src="@drawable/ic99_blank"/>
<ImageView android:id="@+id/entry_divider1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
+12 -3
View File
@@ -21,13 +21,22 @@
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<!-- Title -->
<TextView android:id="@+id/entry_title"
<TextView android:id="@+id/entry_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
style="@style/ElementTextTitle"
/>
android:layout_toLeftOf="@id/entry_icon"
android:minHeight="32dp"
style="@style/ElementTextTitle"/>
<ImageView android:id="@+id/entry_icon"
android:layout_alignParentTop="true"
android:layout_alignParentRight="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:scaleType="fitXY"
android:src="@drawable/ic99_blank"/>
<ImageView android:id="@+id/entry_divider1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
@@ -20,9 +20,17 @@
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<ImageButton android:id="@+id/icon_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic00"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"/>
<EditText android:id="@+id/group_name"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="4dp"
android:layout_toLeftOf="@+id/icon_button"
android:singleLine="true"
android:hint="@string/hint_group_name"/>
<Button android:id="@+id/ok"
+7 -2
View File
@@ -23,11 +23,16 @@
android:stretchColumns="1">
<TableRow android:layout_width="fill_parent"
android:layout_height="wrap_content">
<ImageView android:id="@+id/group_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="5dp"
android:scaleType="fitXY"
android:src="@drawable/ic99_blank"/>
<TextView android:id="@+id/group_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
style="@style/GroupTextLarge"
/>
style="@style/GroupTextLarge"/>
<View/>
<TextView android:id="@+id/group_label"
android:layout_width="wrap_content"
+45
View File
@@ -0,0 +1,45 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2009 Brian Pellin.
This file is part of KeePassDroid.
KeePassDroid is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
KeePassDroid is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with KeePassDroid. If not, see <http://www.gnu.org/licenses/>.
-->
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
android:gravity="center_horizontal"
android:background="@color/icon_background"
android:minWidth="60dp"
android:minHeight="60dp"
android:padding="5dp">
<ImageView
android:id="@+id/icon_image"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic99_blank">
</ImageView>
<TextView
android:id="@+id/icon_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:textColor="@color/icon_text"
android:text="00">
</TextView>
</LinearLayout>
+30
View File
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2009 Brian Pellin.
This file is part of KeePassDroid.
KeePassDroid is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
KeePassDroid is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with KeePassDroid. If not, see <http://www.gnu.org/licenses/>.
-->
<GridView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/IconGridView"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@color/icon_background"
android:verticalSpacing="5dp"
android:horizontalSpacing="5dp"
android:columnWidth="60dp"
android:numColumns="auto_fit"
android:stretchMode="columnWidth">
</GridView>
+2
View File
@@ -20,4 +20,6 @@
<resources>
<color name="blue_highlight">#0000dd</color>
<color name="group">#ffffff</color>
<color name="icon_background">#555555</color>
<color name="icon_text">#000000</color>
</resources>