diff options
author | Mohamed Zenadi <mohamed@zenadi.com> | 2015-08-12 22:33:48 +0200 |
---|---|---|
committer | Mohamed Zenadi <mohamed@zenadi.com> | 2015-08-12 22:33:48 +0200 |
commit | 58d93d757d30e45a740f9797ef15766c6db01bee (patch) | |
tree | bc9e1fb0faa8dc06022b2921632419c2bab8d6af /app/src/main/res/layout | |
parent | 0cb325f4b1b7af6209a7684e25f292600c7bc80c (diff) |
show the full category of the password
with a small style revamp
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r-- | app/src/main/res/layout/password_recycler_view.xml | 4 | ||||
-rw-r--r-- | app/src/main/res/layout/password_row_layout.xml | 53 |
2 files changed, 34 insertions, 23 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 |