diff options
Diffstat (limited to 'app/src/main/res')
-rw-r--r-- | app/src/main/res/drawable/divider.xml | 6 | ||||
-rw-r--r-- | app/src/main/res/layout/password_row_layout.xml | 66 |
2 files changed, 33 insertions, 39 deletions
diff --git a/app/src/main/res/drawable/divider.xml b/app/src/main/res/drawable/divider.xml new file mode 100644 index 00000000..cf2134ff --- /dev/null +++ b/app/src/main/res/drawable/divider.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="utf-8"?> +<shape xmlns:android="http://schemas.android.com/apk/res/android" + android:shape="rectangle"> + <size android:height="1dp" /> + <solid android:color="@color/grey_300" /> +</shape>
\ No newline at end of file diff --git a/app/src/main/res/layout/password_row_layout.xml b/app/src/main/res/layout/password_row_layout.xml index 61c089df..0b877934 100644 --- a/app/src/main/res/layout/password_row_layout.xml +++ b/app/src/main/res/layout/password_row_layout.xml @@ -8,49 +8,37 @@ android:layout_marginRight="8dp" android:layout_marginTop="0dp"> - <android.support.v7.widget.CardView xmlns:card_view="http://schemas.android.com/apk/res-auto" - android:id="@+id/password_card" - style="@style/CardView.Light" + <RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_gravity="center" - card_view:cardCornerRadius="4dp" - card_view:cardElevation="4dp" - card_view:cardUseCompatPadding="true" - card_view:contentPaddingLeft="4dp" - card_view:contentPaddingTop="4dp"> + android:padding="8dp" + android:gravity="left"> - <RelativeLayout - android:layout_width="match_parent" + <TextView + android:id="@+id/type" + android:layout_width="wrap_content" android:layout_height="wrap_content" - android:padding="8dp" - android:gravity="left"> + android:alpha="0.5" + android:maxLines="1" + android:ellipsize="start" + android:text="TYPE" + android:textSize="14dp" + android:textColor="@android:color/black" + android:layout_alignParentTop="true" + android:layout_alignLeft="@+id/label" + android:layout_alignStart="@+id/label" /> - <TextView - android:id="@+id/type" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:alpha="0.5" - android:maxLines="1" - android:ellipsize="start" - android:text="TYPE" - android:textSize="14dp" - android:textColor="@android:color/black" - android:layout_alignParentTop="true" - android:layout_alignLeft="@+id/label" - android:layout_alignStart="@+id/label" /> + <TextView + android:id="@+id/label" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:text="FILE_NAME" + android:textColor="@android:color/black" + android:textSize="18dp" + android:layout_below="@+id/type" + android:layout_alignParentLeft="true" + android:layout_alignParentStart="true" /> + </RelativeLayout> - <TextView - android:id="@+id/label" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_gravity="center_vertical" - android:text="FILE_NAME" - android:textColor="@android:color/black" - android:textSize="18dp" - android:layout_below="@+id/type" - android:layout_alignParentLeft="true" - android:layout_alignParentStart="true" /> - </RelativeLayout> - </android.support.v7.widget.CardView> </LinearLayout>
\ No newline at end of file |