diff options
Diffstat (limited to 'app/src/main/res/layout/password_row_layout.xml')
| -rw-r--r-- | app/src/main/res/layout/password_row_layout.xml | 66 |
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 |
