Update: Rounded Icons

Update: Use ShapeableImageView
This commit is contained in:
LooKeR
2021-10-16 09:47:32 +05:30
parent 649055d7f1
commit 7a36d943c0
15 changed files with 51 additions and 30 deletions

View File

@ -46,7 +46,7 @@
android:textSize="16sp"
tools:ignore="Autofill,HardcodedText" />
<ImageView
<com.google.android.material.imageview.ShapeableImageView
android:id="@+id/address_mirror"
android:layout_width="36dp"
android:layout_height="match_parent"

View File

@ -16,13 +16,14 @@
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="10dp"
android:layout_marginHorizontal="10dp"
android:background="@drawable/background_border" />
<FrameLayout
android:id="@+id/toolbar_extra"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:layout_marginHorizontal="10dp" />
</LinearLayout>
@ -33,7 +34,7 @@
android:layout_height="0dp"
android:layout_weight="1"
android:background="?android:attr/colorBackground"
android:paddingHorizontal="10dp"
android:paddingTop="10dp" />
android:layout_marginHorizontal="10dp"
android:layout_marginTop="10dp" />
</com.looker.droidify.widget.FragmentLinearLayout>

View File

@ -8,7 +8,7 @@
android:paddingStart="16dp"
android:paddingEnd="16dp">
<ImageView
<com.google.android.material.imageview.ShapeableImageView
android:id="@+id/icon"
android:layout_width="24dp"
android:layout_height="24dp"

View File

@ -8,7 +8,7 @@
android:paddingStart="16dp"
android:paddingEnd="16dp">
<ImageView
<com.google.android.material.imageview.ShapeableImageView
android:id="@+id/icon"
android:layout_width="24dp"
android:layout_height="24dp"

View File

@ -16,7 +16,7 @@
android:orientation="horizontal"
android:paddingBottom="8dp">
<ImageView
<com.google.android.material.imageview.ShapeableImageView
android:id="@+id/icon"
android:layout_width="64dp"
android:layout_height="64dp"

View File

@ -9,7 +9,7 @@
android:paddingStart="14dp"
android:paddingEnd="16dp">
<ImageView
<com.google.android.material.imageview.ShapeableImageView
android:id="@+id/icon"
android:layout_width="44dp"
android:layout_height="44dp"

View File

@ -2,6 +2,7 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="54dp"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:background="?android:attr/selectableItemBackground"
android:gravity="center_vertical"
android:orientation="horizontal">
@ -16,10 +17,11 @@
android:textColor="?android:attr/textColor"
android:textSize="16sp" />
<Switch
<com.google.android.material.switchmaterial.SwitchMaterial
android:id="@+id/enabled"
android:layout_width="wrap_content"
android:layout_height="match_parent"
app:thumbTint="?android:attr/colorPrimary"
android:paddingStart="12dp"
android:paddingEnd="12dp" />

View File

@ -17,7 +17,7 @@
android:textColor="?android:attr/textColor"
android:textSize="14sp" />
<ImageView
<com.google.android.material.imageview.ShapeableImageView
android:id="@+id/icon"
android:layout_width="wrap_content"
android:layout_height="match_parent"

View File

@ -2,6 +2,7 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="48dp"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:background="?android:attr/selectableItemBackground"
android:gravity="center_vertical"
android:orientation="horizontal">
@ -16,10 +17,11 @@
android:textColor="?android:attr/textColor"
android:textSize="16sp" />
<Switch
<com.google.android.material.switchmaterial.SwitchMaterial
android:id="@+id/enabled"
android:layout_width="wrap_content"
android:layout_height="match_parent"
app:thumbTint="?android:attr/colorPrimary"
android:clickable="false"
android:paddingStart="12dp"
android:paddingEnd="12dp" />

View File

@ -40,7 +40,7 @@
android:textColor="?android:attr/textColor"
android:textSize="16sp" />
<ImageView
<com.google.android.material.imageview.ShapeableImageView
android:id="@+id/section_icon"
android:layout_width="24dp"
android:layout_height="24dp"