diff options
| author | Harsh Shandilya <msfjarvis@gmail.com> | 2019-05-26 14:56:43 +0530 |
|---|---|---|
| committer | Harsh Shandilya <msfjarvis@gmail.com> | 2019-05-26 14:56:43 +0530 |
| commit | 321035c319979010cafb10ce8bd83890d0c0a195 (patch) | |
| tree | 65e05519ee5daf5d1a36dc639dbcb56126265bd6 /app/src/main/res/layout | |
| parent | c46f50f86febc6d42b4da6c0160fc8fe3d494edf (diff) | |
| download | HardenedPass-321035c319979010cafb10ce8bd83890d0c0a195.tar.gz HardenedPass-321035c319979010cafb10ce8bd83890d0c0a195.zip | |
Simplify password row layout and resolve icon tints
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
Diffstat (limited to 'app/src/main/res/layout')
| -rw-r--r-- | app/src/main/res/layout/password_row_layout.xml | 79 |
1 files changed, 36 insertions, 43 deletions
diff --git a/app/src/main/res/layout/password_row_layout.xml b/app/src/main/res/layout/password_row_layout.xml index 824366e7..66616cc3 100644 --- a/app/src/main/res/layout/password_row_layout.xml +++ b/app/src/main/res/layout/password_row_layout.xml @@ -5,65 +5,58 @@ android:layout_height="wrap_content" android:background="?android:attr/activatedBackgroundIndicator"> - <RelativeLayout + <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" + android:orientation="horizontal" android:paddingTop="8dp" android:paddingBottom="8dp" android:paddingLeft="16dp" android:paddingRight="16dp" android:gravity="start"> + <ImageView + android:id="@+id/type_image" + android:layout_width="80dp" + android:layout_height="32dp" + android:layout_gravity="bottom" + android:layout_weight="1" + android:alpha="0.5" + android:contentDescription="@string/folder_icon_hint" + android:paddingEnd="8dp" + android:src="@drawable/ic_folder_grey600_24dp" + tools:ignore="RtlSymmetry" /> + <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" - android:orientation="horizontal"> - - <ImageView - android:id="@+id/type_image" - android:layout_width="80dp" - android:layout_height="32dp" - android:layout_gravity="bottom" - android:layout_weight="1" - android:alpha="0.5" - android:contentDescription="@string/folder_icon_hint" - android:paddingEnd="8dp" - android:paddingRight="8dp" - android:src="@drawable/ic_folder_grey600_24dp" - tools:ignore="RtlSymmetry" /> + android:layout_weight="1" + android:layout_gravity="bottom" + android:orientation="vertical"> - <LinearLayout - android:layout_width="match_parent" + <TextView + android:id="@+id/type" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:ellipsize="start" + android:singleLine="true" + android:text="TYPE" + android:textColor="@color/grey_500" + android:textSize="14sp" + tools:ignore="HardcodedText" /> + + <TextView + android:id="@+id/label" + android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_weight="1" android:layout_gravity="bottom" - android:orientation="vertical"> - - <TextView - android:id="@+id/type" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:ellipsize="start" - android:singleLine="true" - android:text="TYPE" - android:textColor="@color/grey_500" - android:textSize="14sp" - tools:ignore="HardcodedText" /> - - <TextView - android:id="@+id/label" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_gravity="bottom" - android:text="FILE_NAME" - android:textColor="@android:color/black" - android:textSize="18sp" - tools:ignore="HardcodedText" /> - - </LinearLayout> + android:text="FILE_NAME" + android:textColor="@android:color/black" + android:textSize="18sp" + tools:ignore="HardcodedText" /> </LinearLayout> - </RelativeLayout> + </LinearLayout> </LinearLayout>
\ No newline at end of file |
