aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorMohamed Zenadi <mohamed@zenadi.com>2015-08-12 22:33:48 +0200
committerMohamed Zenadi <mohamed@zenadi.com>2015-08-12 22:33:48 +0200
commit58d93d757d30e45a740f9797ef15766c6db01bee (patch)
treebc9e1fb0faa8dc06022b2921632419c2bab8d6af /app/src/main/res
parent0cb325f4b1b7af6209a7684e25f292600c7bc80c (diff)
show the full category of the password
with a small style revamp
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/layout/password_recycler_view.xml4
-rw-r--r--app/src/main/res/layout/password_row_layout.xml53
-rw-r--r--app/src/main/res/values/strings.xml1
-rw-r--r--app/src/main/res/values/styles.xml10
4 files changed, 40 insertions, 28 deletions
diff --git a/app/src/main/res/layout/password_recycler_view.xml b/app/src/main/res/layout/password_recycler_view.xml
index 1b922a17..c49e4e45 100644
--- a/app/src/main/res/layout/password_recycler_view.xml
+++ b/app/src/main/res/layout/password_recycler_view.xml
@@ -25,8 +25,8 @@
android:layout_gravity="bottom|end"
app:elevation="6dp"
app:pressedTranslationZ="12dp"
- app:backgroundTint="@color/blue_grey_500"
- app:rippleColor="@color/blue_grey_50"
+ app:backgroundTint="@color/indigo_A700"
+ app:rippleColor="@color/blue_500"
app:borderWidth="0dp"
android:layout_margin="@dimen/fab_compat_margin"
android:layout_alignParentBottom="true"
diff --git a/app/src/main/res/layout/password_row_layout.xml b/app/src/main/res/layout/password_row_layout.xml
index 99ee58eb..1e694f87 100644
--- a/app/src/main/res/layout/password_row_layout.xml
+++ b/app/src/main/res/layout/password_row_layout.xml
@@ -1,30 +1,41 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:card_view="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:background="@drawable/password_row_background"
android:layout_marginTop="4dp"
android:layout_marginBottom="4dp"
android:layout_gravity="start|center_vertical">
- <TextView
- android:id="@+id/type"
- android:text="TYPE"
- android:layout_width="wrap_content"
- android:layout_height="match_parent"
- android:paddingLeft="16dp"
- android:paddingRight="16dp"
- android:textStyle="bold"
- android:layout_gravity="center_horizontal|center_vertical"
- />
- <TextView
- android:id="@+id/label"
- android:text="FILE_NAME"
- android:layout_marginTop="8dp"
- android:layout_marginBottom="8dp"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center_vertical"
- android:padding="8dp"/>
-</LinearLayout> \ No newline at end of file
+ <android.support.v7.widget.CardView
+ xmlns:card_view="http://schemas.android.com/apk/res-auto"
+ android:id="@+id/password_card"
+ android:layout_gravity="center"
+ android:layout_width="match_parent"
+ android:layout_height="60dp"
+ card_view:contentPaddingTop="4dp"
+ card_view:contentPaddingLeft="4dp"
+ card_view:cardCornerRadius="4dp"
+ card_view:cardElevation="3dp"
+ card_view:cardBackgroundColor="@color/light_blue_600">
+
+ <TextView
+ android:id="@+id/type"
+ android:text="TYPE"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:textColor="@android:color/white"
+ android:textStyle="italic"
+ android:maxLines="1" />
+ <TextView
+ android:id="@+id/label"
+ android:text="FILE_NAME"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center_vertical"
+ android:padding="8dp"
+ android:textColor="@android:color/white"
+ android:textStyle="bold" />
+ </android.support.v7.widget.CardView>
+ </LinearLayout> \ No newline at end of file
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 75d5bb51..3a3d4061 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -152,5 +152,6 @@
<string name="show_password_pref_summary">Control the visibility of the passwords once decrypted, this does not disable the password copy</string>
<string name="toast_password_copied">Password copied into the clipboard</string>
<string name="pwd_generate_button">Generate</string>
+ <string name="category_string">"Category: "</string>
</resources>
diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml
index 3fffef42..9f610b68 100644
--- a/app/src/main/res/values/styles.xml
+++ b/app/src/main/res/values/styles.xml
@@ -2,15 +2,15 @@
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
- <item name="colorPrimary">@color/blue_grey_500</item>
- <item name="colorPrimaryDark">@color/blue_grey_700</item>
- <item name="android:windowBackground">@color/blue_grey_50</item>
- <item name="android:textColorPrimary">@color/teal_900</item>
+ <item name="colorPrimary">@color/indigo_A400</item>
+ <item name="colorPrimaryDark">@color/indigo_A700</item>
+ <item name="android:windowBackground">@color/indigo_50</item>
+ <item name="android:textColorPrimary">@color/blue_500</item>
<item name="android:textColor">@color/text_color</item>
<item name="actionModeStyle">@style/ActionMode</item>
</style>
<style name="ActionMode" parent="@style/Widget.AppCompat.ActionMode">
- <item name="background">@color/blue_grey_700</item>
+ <item name="background">@color/indigo_A700</item>
</style>
</resources>