Simplify password row layout and resolve icon tints

Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
This commit is contained in:
Harsh Shandilya 2019-05-26 14:56:43 +05:30
parent c46f50f86f
commit 321035c319
No known key found for this signature in database
GPG key ID: C2E74282C2133D62
4 changed files with 44 additions and 47 deletions

2
.gitignore vendored
View file

@ -33,3 +33,5 @@ project.properties
#IntelliJ IDEA #IntelliJ IDEA
.idea .idea
*.iml *.iml
captures/

View file

@ -2,8 +2,9 @@
android:width="24dp" android:width="24dp"
android:height="24dp" android:height="24dp"
android:viewportWidth="24" android:viewportWidth="24"
android:viewportHeight="24"> android:viewportHeight="24"
android:tint="@color/grey_600">
<path <path
android:fillColor="#FF000000" android:fillColor="#FFFFFFFF"
android:pathData="M18,8h-1L17,6c0,-2.76 -2.24,-5 -5,-5S7,3.24 7,6v2L6,8c-1.1,0 -2,0.9 -2,2v10c0,1.1 0.9,2 2,2h12c1.1,0 2,-0.9 2,-2L20,10c0,-1.1 -0.9,-2 -2,-2zM12,17c-1.1,0 -2,-0.9 -2,-2s0.9,-2 2,-2 2,0.9 2,2 -0.9,2 -2,2zM15.1,8L8.9,8L8.9,6c0,-1.71 1.39,-3.1 3.1,-3.1 1.71,0 3.1,1.39 3.1,3.1v2z"/> android:pathData="M18,8h-1L17,6c0,-2.76 -2.24,-5 -5,-5S7,3.24 7,6v2L6,8c-1.1,0 -2,0.9 -2,2v10c0,1.1 0.9,2 2,2h12c1.1,0 2,-0.9 2,-2L20,10c0,-1.1 -0.9,-2 -2,-2zM12,17c-1.1,0 -2,-0.9 -2,-2s0.9,-2 2,-2 2,0.9 2,2 -0.9,2 -2,2zM15.1,8L8.9,8L8.9,6c0,-1.71 1.39,-3.1 3.1,-3.1 1.71,0 3.1,1.39 3.1,3.1v2z"/>
</vector> </vector>

View file

@ -2,8 +2,9 @@
android:width="24dp" android:width="24dp"
android:height="24dp" android:height="24dp"
android:viewportWidth="24" android:viewportWidth="24"
android:viewportHeight="24"> android:viewportHeight="24"
android:tint="@color/grey_600">
<path <path
android:fillColor="@color/grey_600" android:fillColor="#FFFFFFFF"
android:pathData="M10,4H4c-1.1,0 -1.99,0.9 -1.99,2L2,18c0,1.1 0.9,2 2,2h16c1.1,0 2,-0.9 2,-2V8c0,-1.1 -0.9,-2 -2,-2h-8l-2,-2z"/> android:pathData="M10,4H4c-1.1,0 -1.99,0.9 -1.99,2L2,18c0,1.1 0.9,2 2,2h16c1.1,0 2,-0.9 2,-2V8c0,-1.1 -0.9,-2 -2,-2h-8l-2,-2z"/>
</vector> </vector>

View file

@ -5,65 +5,58 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?android:attr/activatedBackgroundIndicator"> android:background="?android:attr/activatedBackgroundIndicator">
<RelativeLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="horizontal"
android:paddingTop="8dp" android:paddingTop="8dp"
android:paddingBottom="8dp" android:paddingBottom="8dp"
android:paddingLeft="16dp" android:paddingLeft="16dp"
android:paddingRight="16dp" android:paddingRight="16dp"
android:gravity="start"> 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 <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="horizontal"> android:layout_weight="1"
android:layout_gravity="bottom"
android:orientation="vertical">
<ImageView <TextView
android:id="@+id/type_image" android:id="@+id/type"
android:layout_width="80dp" android:layout_width="wrap_content"
android:layout_height="32dp" android:layout_height="wrap_content"
android:layout_gravity="bottom" android:ellipsize="start"
android:layout_weight="1" android:singleLine="true"
android:alpha="0.5" android:text="TYPE"
android:contentDescription="@string/folder_icon_hint" android:textColor="@color/grey_500"
android:paddingEnd="8dp" android:textSize="14sp"
android:paddingRight="8dp" tools:ignore="HardcodedText" />
android:src="@drawable/ic_folder_grey600_24dp"
tools:ignore="RtlSymmetry" /> <TextView
android:id="@+id/label"
<LinearLayout android:layout_width="wrap_content"
android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_gravity="bottom" android:layout_gravity="bottom"
android:orientation="vertical"> android:text="FILE_NAME"
android:textColor="@android:color/black"
<TextView android:textSize="18sp"
android:id="@+id/type" tools:ignore="HardcodedText" />
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>
</LinearLayout> </LinearLayout>
</RelativeLayout> </LinearLayout>
</LinearLayout> </LinearLayout>