aboutsummaryrefslogtreecommitdiffstats
path: root/app/src/main/res/layout/password_row_layout.xml
diff options
context:
space:
mode:
authorMohamed Zenadi <zeapo@users.noreply.github.com>2016-06-20 00:17:41 +0200
committerGitHub <noreply@github.com>2016-06-20 00:17:41 +0200
commit7336c614e9ab3cc72f975e914a68640f7e87531e (patch)
treef7c75d423d360c71cdd497b8354e7526660375b5 /app/src/main/res/layout/password_row_layout.xml
parentfe591a9cb80fdc215be7c11d87de54fea08aa1e6 (diff)
parent7c0062e24f0da036761c0e8b2ef60be74b165e1b (diff)
downloadHardenedPass-7336c614e9ab3cc72f975e914a68640f7e87531e.tar.gz
HardenedPass-7336c614e9ab3cc72f975e914a68640f7e87531e.zip
Merge pull request #189 from DSIW/master
Some restyling
Diffstat (limited to 'app/src/main/res/layout/password_row_layout.xml')
-rw-r--r--app/src/main/res/layout/password_row_layout.xml66
1 files changed, 40 insertions, 26 deletions
diff --git a/app/src/main/res/layout/password_row_layout.xml b/app/src/main/res/layout/password_row_layout.xml
index 2ad69762..5fd62249 100644
--- a/app/src/main/res/layout/password_row_layout.xml
+++ b/app/src/main/res/layout/password_row_layout.xml
@@ -1,40 +1,54 @@
<?xml version="1.0" encoding="utf-8"?>
-<LinearLayout
- xmlns:android="http://schemas.android.com/apk/res/android"
+<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="wrap_content"
- android:layout_marginTop="4dp"
- android:layout_marginBottom="4dp">
+ android:background="?android:attr/activatedBackgroundIndicator">
- <android.support.v7.widget.CardView
- xmlns:card_view="http://schemas.android.com/apk/res-auto"
- android:id="@+id/password_card"
- android:layout_gravity="center"
+ <RelativeLayout
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_50">
+ android:layout_height="wrap_content"
+ android:paddingTop="8dp"
+ android:paddingBottom="8dp"
+ android:paddingLeft="16dp"
+ android:paddingRight="16dp"
+ android:gravity="left">
+
+ <ImageView
+ android:layout_width="40dp"
+ android:layout_height="32dp"
+ android:id="@+id/type_image"
+ android:src="@drawable/ic_folder_grey600_24dp"
+ android:alpha="0.5"
+ android:layout_centerVertical="true"
+ android:layout_alignParentLeft="true"
+ android:layout_alignParentStart="true"
+ android:paddingRight="8dp" />
<TextView
android:id="@+id/type"
- android:text="TYPE"
- android:layout_width="match_parent"
+ android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:textColor="@android:color/white"
- android:textStyle="italic"
- android:maxLines="1" />
+ android:maxLines="1"
+ android:ellipsize="start"
+ android:text="TYPE"
+ android:textSize="14dp"
+ android:textColor="@color/grey_500"
+ android:layout_alignTop="@+id/type_image"
+ android:layout_toRightOf="@+id/type_image"
+ android:layout_toEndOf="@+id/type_image" />
+
<TextView
android:id="@+id/label"
- android:text="FILE_NAME"
- android:layout_width="match_parent"
+ android:layout_width="wrap_content"
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
+ android:text="FILE_NAME"
+ android:textColor="@android:color/black"
+ android:textSize="18dp"
+ android:layout_below="@+id/type"
+ android:layout_alignLeft="@+id/type"
+ android:layout_alignStart="@+id/type" />
+ </RelativeLayout>
+
+</LinearLayout> \ No newline at end of file