ui improvements
|
@ -8,8 +8,8 @@ android {
|
|||
applicationId "com.zeapo.pwdstore"
|
||||
minSdkVersion 14
|
||||
targetSdkVersion 20
|
||||
versionCode 3
|
||||
versionName "1.0.2"
|
||||
versionCode 5
|
||||
versionName "1.0.3"
|
||||
}
|
||||
buildTypes {
|
||||
release {
|
||||
|
|
Before Width: | Height: | Size: 1,006 B After Width: | Height: | Size: 246 B |
BIN
app/src/main/res/drawable-hdpi/ico_confirm_add.png
Normal file
After Width: | Height: | Size: 427 B |
Before Width: | Height: | Size: 626 B After Width: | Height: | Size: 178 B |
BIN
app/src/main/res/drawable-mdpi/ico_confirm_add.png
Normal file
After Width: | Height: | Size: 277 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 341 B |
BIN
app/src/main/res/drawable-xhdpi/ico_confirm_add.png
Normal file
After Width: | Height: | Size: 497 B |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 494 B |
BIN
app/src/main/res/drawable-xxhdpi/ico_confirm_add.png
Normal file
After Width: | Height: | Size: 731 B |
4
app/src/main/res/drawable/actionbar_background.xml
Normal file
|
@ -0,0 +1,4 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
|
||||
<solid android:color="@android:color/holo_orange_dark" />
|
||||
</shape>
|
24
app/src/main/res/drawable/blue_rectangle.xml
Normal file
|
@ -0,0 +1,24 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item>
|
||||
<shape android:shape="rectangle"
|
||||
android:dither="true">
|
||||
<corners android:radius="2dp"/>
|
||||
<solid android:color="#ccc" />
|
||||
|
||||
</shape>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<shape android:shape="rectangle" android:dither="true">
|
||||
<corners android:radius="2dp" />
|
||||
<solid android:color="@android:color/holo_blue_light" />
|
||||
|
||||
<padding android:bottom="8dp"
|
||||
android:left="8dp"
|
||||
android:right="8dp"
|
||||
android:top="8dp" />
|
||||
</shape>
|
||||
</item>
|
||||
</layer-list>
|
24
app/src/main/res/drawable/gray_rectangle.xml
Normal file
|
@ -0,0 +1,24 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item>
|
||||
<shape android:shape="rectangle"
|
||||
android:dither="true">
|
||||
<corners android:radius="2dp"/>
|
||||
<solid android:color="#ccc" />
|
||||
|
||||
</shape>
|
||||
</item>
|
||||
|
||||
<item android:bottom="2dp">
|
||||
<shape android:shape="rectangle" android:dither="true">
|
||||
<corners android:radius="2dp" />
|
||||
<solid android:color="@android:color/darker_gray" />
|
||||
|
||||
<padding android:bottom="8dp"
|
||||
android:left="8dp"
|
||||
android:right="8dp"
|
||||
android:top="8dp" />
|
||||
</shape>
|
||||
</item>
|
||||
</layer-list>
|
37
app/src/main/res/drawable/oval.xml
Normal file
|
@ -0,0 +1,37 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<item>
|
||||
<shape android:shape="oval" android:dither="true">
|
||||
<corners android:radius="2dp"/>
|
||||
<solid android:color="#eee" />
|
||||
<gradient
|
||||
android:startColor="#aaa"
|
||||
android:centerColor="#aaa"
|
||||
android:endColor="@android:color/transparent"
|
||||
android:gradientRadius="55"
|
||||
android:type="radial"
|
||||
/>
|
||||
|
||||
<padding android:bottom="5dp"
|
||||
android:left="5dp"
|
||||
android:right="5dp"
|
||||
android:top="5dp" />
|
||||
</shape>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<shape android:shape="oval" android:dither="true">
|
||||
<corners android:radius="2dp" />
|
||||
<solid android:color="@android:color/white" />
|
||||
|
||||
<padding android:bottom="8dp"
|
||||
android:left="8dp"
|
||||
android:right="8dp"
|
||||
android:top="8dp" />
|
||||
</shape>
|
||||
</item>
|
||||
|
||||
|
||||
</layer-list>
|
24
app/src/main/res/drawable/rectangle.xml
Normal file
|
@ -0,0 +1,24 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item>
|
||||
<shape android:shape="rectangle"
|
||||
android:dither="true">
|
||||
<corners android:radius="2dp"/>
|
||||
<solid android:color="#ccc" />
|
||||
|
||||
</shape>
|
||||
</item>
|
||||
|
||||
<item android:bottom="2dp">
|
||||
<shape android:shape="rectangle" android:dither="true">
|
||||
<corners android:radius="2dp" />
|
||||
<solid android:color="@android:color/white" />
|
||||
|
||||
<padding android:bottom="8dp"
|
||||
android:left="8dp"
|
||||
android:right="8dp"
|
||||
android:top="8dp" />
|
||||
</shape>
|
||||
</item>
|
||||
</layer-list>
|
24
app/src/main/res/drawable/red_rectangle.xml
Normal file
|
@ -0,0 +1,24 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item>
|
||||
<shape android:shape="rectangle"
|
||||
android:dither="true">
|
||||
<corners android:radius="2dp"/>
|
||||
<solid android:color="#ccc" />
|
||||
|
||||
</shape>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<shape android:shape="rectangle" android:dither="true">
|
||||
<corners android:radius="2dp" />
|
||||
<solid android:color="@android:color/holo_red_light" />
|
||||
|
||||
<padding android:bottom="8dp"
|
||||
android:left="8dp"
|
||||
android:right="8dp"
|
||||
android:top="8dp" />
|
||||
</shape>
|
||||
</item>
|
||||
</layer-list>
|
|
@ -12,8 +12,8 @@
|
|||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/rectangle"
|
||||
android:orientation="horizontal"
|
||||
android:layout_row="1"
|
||||
android:layout_column="0">
|
||||
android:paddingLeft="@dimen/activity_horizontal_margin"
|
||||
android:paddingRight="@dimen/activity_horizontal_margin">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/crypto_password_category"
|
||||
|
@ -88,12 +88,17 @@
|
|||
<RelativeLayout
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingLeft="@dimen/activity_horizontal_margin"
|
||||
android:paddingRight="@dimen/activity_horizontal_margin"
|
||||
android:paddingTop="8dp"
|
||||
android:paddingBottom="8dp"
|
||||
android:background="@android:color/darker_gray"
|
||||
android:layout_weight="0">
|
||||
<ImageButton
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="wrap_content"
|
||||
android:src="@drawable/ico_check"
|
||||
android:background="@drawable/oval"
|
||||
android:src="@drawable/ico_confirm_add"
|
||||
android:background="@drawable/blue_rectangle"
|
||||
android:id="@+id/crypto_confirm_add"
|
||||
android:onClick="handleClick"
|
||||
android:layout_alignParentTop="true"
|
||||
|
@ -104,7 +109,7 @@
|
|||
android:layout_height="wrap_content"
|
||||
android:layout_width="wrap_content"
|
||||
android:src="@drawable/ico_cancel"
|
||||
android:background="@drawable/oval"
|
||||
android:background="@drawable/red_rectangle"
|
||||
android:id="@+id/crypto_cancel_add"
|
||||
android:onClick="handleClick"
|
||||
android:layout_alignParentTop="true"
|
||||
|
|
|
@ -1,8 +1,4 @@
|
|||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
tools:context="com.zeapo.pwdstore.crypto.PgpHandler" >
|
||||
<item android:id="@+id/action_settings"
|
||||
android:title="@string/action_settings"
|
||||
android:orderInCategory="100"
|
||||
android:showAsAction="never" />
|
||||
</menu>
|
||||
|
|