- Reformatted code

- Changed textColor Attribute
- Removed fixed themes for views
- Fixed padding of tabs_toolbar
This commit is contained in:
Mohit 2021-06-08 21:27:55 +05:30
parent 74a14457ec
commit 93442f74d1
13 changed files with 681 additions and 702 deletions

View File

@ -1,6 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<FrameLayout <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
@ -16,21 +15,21 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="vertical" android:orientation="vertical"
android:paddingTop="4dp"
android:paddingStart="12dp" android:paddingStart="12dp"
android:paddingTop="4dp"
android:paddingEnd="12dp" android:paddingEnd="12dp"
android:paddingBottom="12dp"> android:paddingBottom="12dp">
<TextView <TextView
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:layout_marginBottom="-12dp"
android:layout_marginStart="4dp" android:layout_marginStart="4dp"
android:layout_marginTop="12dp"
android:layout_marginEnd="4dp" android:layout_marginEnd="4dp"
android:layout_marginBottom="-12dp"
android:text="@string/address"
android:textColor="?android:attr/textColorSecondary" android:textColor="?android:attr/textColorSecondary"
android:textSize="12sp" android:textSize="12sp" />
android:text="@string/address" />
<FrameLayout <FrameLayout
android:layout_width="match_parent" android:layout_width="match_parent"
@ -40,11 +39,11 @@
android:id="@+id/address" android:id="@+id/address"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:hint="https://"
android:inputType="textUri"
android:paddingTop="16dp" android:paddingTop="16dp"
android:paddingBottom="16dp" android:paddingBottom="16dp"
android:textSize="16sp" android:textSize="16sp"
android:inputType="textUri"
android:hint="https://"
tools:ignore="Autofill,HardcodedText" /> tools:ignore="Autofill,HardcodedText" />
<ImageView <ImageView
@ -52,11 +51,11 @@
android:layout_width="36dp" android:layout_width="36dp"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_gravity="end" android:layout_gravity="end"
android:background="?android:attr/actionBarItemBackground"
android:scaleType="center" android:scaleType="center"
android:src="@drawable/ic_arrow_down" android:src="@drawable/ic_arrow_down"
android:tint="?android:attr/textColorSecondary" android:tint="?android:attr/textColorSecondary"
android:tintMode="src_in" android:tintMode="src_in"
android:background="?android:attr/actionBarItemBackground"
android:visibility="gone" android:visibility="gone"
tools:ignore="ContentDescription" /> tools:ignore="ContentDescription" />
@ -66,10 +65,10 @@
android:id="@+id/address_error" android:id="@+id/address_error"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="-2dp"
android:layout_marginBottom="4dp"
android:layout_marginStart="4dp" android:layout_marginStart="4dp"
android:layout_marginTop="-2dp"
android:layout_marginEnd="4dp" android:layout_marginEnd="4dp"
android:layout_marginBottom="4dp"
android:textColor="?attr/colorError" android:textColor="?attr/colorError"
android:textSize="12sp" android:textSize="12sp"
android:visibility="gone" /> android:visibility="gone" />
@ -77,34 +76,34 @@
<TextView <TextView
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:layout_marginBottom="-12dp"
android:layout_marginStart="4dp" android:layout_marginStart="4dp"
android:layout_marginTop="12dp"
android:layout_marginEnd="4dp" android:layout_marginEnd="4dp"
android:layout_marginBottom="-12dp"
android:text="@string/fingerprint"
android:textColor="?android:attr/textColorSecondary" android:textColor="?android:attr/textColorSecondary"
android:textSize="12sp" android:textSize="12sp" />
android:text="@string/fingerprint" />
<EditText <EditText
android:id="@+id/fingerprint" android:id="@+id/fingerprint"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:fontFamily="monospace"
android:gravity="top"
android:inputType="textNoSuggestions|textMultiLine"
android:paddingTop="16dp" android:paddingTop="16dp"
android:paddingBottom="16dp" android:paddingBottom="16dp"
android:gravity="top"
android:fontFamily="monospace"
android:textSize="16sp" android:textSize="16sp"
android:inputType="textNoSuggestions|textMultiLine"
tools:ignore="Autofill,LabelFor" /> tools:ignore="Autofill,LabelFor" />
<TextView <TextView
android:id="@+id/fingerprint_error" android:id="@+id/fingerprint_error"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="-2dp"
android:layout_marginBottom="4dp"
android:layout_marginStart="4dp" android:layout_marginStart="4dp"
android:layout_marginTop="-2dp"
android:layout_marginEnd="4dp" android:layout_marginEnd="4dp"
android:layout_marginBottom="4dp"
android:textColor="?attr/colorError" android:textColor="?attr/colorError"
android:textSize="12sp" android:textSize="12sp"
android:visibility="gone" /> android:visibility="gone" />
@ -112,33 +111,33 @@
<TextView <TextView
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:layout_marginBottom="-12dp"
android:layout_marginStart="4dp" android:layout_marginStart="4dp"
android:layout_marginTop="12dp"
android:layout_marginEnd="4dp" android:layout_marginEnd="4dp"
android:layout_marginBottom="-12dp"
android:text="@string/username"
android:textColor="?android:attr/textColorSecondary" android:textColor="?android:attr/textColorSecondary"
android:textSize="12sp" android:textSize="12sp" />
android:text="@string/username" />
<EditText <EditText
android:id="@+id/username" android:id="@+id/username"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:hint="@string/username"
android:inputType="textNoSuggestions"
android:paddingTop="16dp" android:paddingTop="16dp"
android:paddingBottom="16dp" android:paddingBottom="16dp"
android:textSize="16sp" android:textSize="16sp"
android:inputType="textNoSuggestions"
android:hint="@string/username"
tools:ignore="Autofill,LabelFor" /> tools:ignore="Autofill,LabelFor" />
<TextView <TextView
android:id="@+id/username_error" android:id="@+id/username_error"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="-2dp"
android:layout_marginBottom="4dp"
android:layout_marginStart="4dp" android:layout_marginStart="4dp"
android:layout_marginTop="-2dp"
android:layout_marginEnd="4dp" android:layout_marginEnd="4dp"
android:layout_marginBottom="4dp"
android:textColor="?attr/colorError" android:textColor="?attr/colorError"
android:textSize="12sp" android:textSize="12sp"
android:visibility="gone" /> android:visibility="gone" />
@ -146,33 +145,33 @@
<TextView <TextView
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:layout_marginBottom="-12dp"
android:layout_marginStart="4dp" android:layout_marginStart="4dp"
android:layout_marginTop="12dp"
android:layout_marginEnd="4dp" android:layout_marginEnd="4dp"
android:layout_marginBottom="-12dp"
android:text="@string/password"
android:textColor="?android:attr/textColorSecondary" android:textColor="?android:attr/textColorSecondary"
android:textSize="12sp" android:textSize="12sp" />
android:text="@string/password" />
<EditText <EditText
android:id="@+id/password" android:id="@+id/password"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:hint="@string/password"
android:inputType="textPassword"
android:paddingTop="16dp" android:paddingTop="16dp"
android:paddingBottom="16dp" android:paddingBottom="16dp"
android:textSize="16sp" android:textSize="16sp"
android:inputType="textPassword"
android:hint="@string/password"
tools:ignore="Autofill,LabelFor" /> tools:ignore="Autofill,LabelFor" />
<TextView <TextView
android:id="@+id/password_error" android:id="@+id/password_error"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="-2dp"
android:layout_marginBottom="4dp"
android:layout_marginStart="4dp" android:layout_marginStart="4dp"
android:layout_marginTop="-2dp"
android:layout_marginEnd="4dp" android:layout_marginEnd="4dp"
android:layout_marginBottom="4dp"
android:textColor="?attr/colorError" android:textColor="?attr/colorError"
android:textSize="12sp" android:textSize="12sp"
android:visibility="gone" /> android:visibility="gone" />
@ -185,10 +184,10 @@
android:id="@+id/overlay" android:id="@+id/overlay"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="vertical"
android:gravity="center"
android:background="?android:attr/colorBackground" android:background="?android:attr/colorBackground"
android:clickable="true" android:clickable="true"
android:gravity="center"
android:orientation="vertical"
tools:ignore="KeyboardInaccessibleWidget"> tools:ignore="KeyboardInaccessibleWidget">
<ProgressBar <ProgressBar
@ -201,16 +200,16 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="16dp" android:layout_marginTop="16dp"
android:fontFamily="sans-serif-light" android:fontFamily="sans-serif-light"
android:text="@string/checking_repository"
android:textColor="?android:attr/textColorPrimary" android:textColor="?android:attr/textColorPrimary"
android:textSize="20sp" android:textSize="20sp" />
android:text="@string/checking_repository" />
<Button <Button
android:id="@+id/skip" android:id="@+id/skip"
style="@android:style/Widget.Material.Button.Borderless.Colored"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="4dp" android:layout_marginTop="4dp"
style="@android:style/Widget.Material.Button.Borderless.Colored"
android:text="@string/skip" /> android:text="@string/skip" />
</LinearLayout> </LinearLayout>

View File

@ -1,7 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?><!--AppBar-->
<!--AppBar--> <com.looker.droidify.widget.FragmentLinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
<com.looker.droidify.widget.FragmentLinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:elevation="0dp" android:elevation="0dp"
@ -10,25 +8,22 @@
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="vertical" android:background="?android:attr/colorBackground"
android:theme="?android:attr/actionBarTheme" android:elevation="0dp"
android:background="?android:attr/colorPrimaryDark" android:orientation="vertical">
android:elevation="0dp">
<com.looker.droidify.widget.Toolbar <com.looker.droidify.widget.Toolbar
android:id="@+id/toolbar" android:id="@+id/toolbar"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:popupTheme="@style/Theme.Main.Toolbar.Popup"
android:layout_margin="10dp" android:layout_margin="10dp"
android:background="@drawable/background_border" android:background="@drawable/background_border" />
android:theme="@style/Theme.Main.Light"/>
<FrameLayout <FrameLayout
android:id="@+id/toolbar_extra" android:id="@+id/toolbar_extra"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:theme="@style/Theme.Main.Light"/> android:layout_marginHorizontal="10dp" />
</LinearLayout> </LinearLayout>
@ -36,6 +31,8 @@
android:id="@+id/fragment_content" android:id="@+id/fragment_content"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="0dp" android:layout_height="0dp"
android:paddingHorizontal="10dp"
android:paddingTop="10dp"
android:layout_weight="1" android:layout_weight="1"
android:background="?android:attr/colorBackground" /> android:background="?android:attr/colorBackground" />

View File

@ -1,18 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<LinearLayout <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?android:attr/selectableItemBackground"
android:orientation="horizontal" android:orientation="horizontal"
android:paddingStart="16dp" android:paddingStart="16dp"
android:paddingEnd="16dp" android:paddingEnd="16dp">
android:background="?android:attr/selectableItemBackground">
<ImageView <ImageView
android:id="@+id/icon" android:id="@+id/icon"
android:layout_width="24dp" android:layout_width="24dp"
android:layout_height="24dp" android:layout_height="24dp"
android:layout_gravity="center"
android:scaleType="centerInside" android:scaleType="centerInside"
android:tint="?android:attr/textColor" android:tint="?android:attr/textColor"
android:tintMode="src_in" android:tintMode="src_in"
@ -23,25 +23,23 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
android:orientation="vertical" android:orientation="vertical"
android:layout_marginStart="32dp" android:padding="16dp">
android:paddingTop="16dp"
android:paddingBottom="16dp">
<TextView <TextView
android:id="@+id/text" android:id="@+id/text"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:singleLine="true"
android:textColor="?android:attr/textColor" android:textColor="?android:attr/textColor"
android:textSize="16sp" android:textSize="16sp" />
android:singleLine="true" />
<TextView <TextView
android:id="@+id/link" android:id="@+id/link"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:singleLine="true"
android:textColor="?android:attr/textColor" android:textColor="?android:attr/textColor"
android:textSize="14sp" android:textSize="14sp" />
android:singleLine="true" />
</LinearLayout> </LinearLayout>

View File

@ -14,6 +14,7 @@
android:layout_width="24dp" android:layout_width="24dp"
android:layout_height="24dp" android:layout_height="24dp"
android:scaleType="centerInside" android:scaleType="centerInside"
android:layout_gravity="center"
android:tint="?android:attr/textColorSecondary" android:tint="?android:attr/textColorSecondary"
android:tintMode="src_in" android:tintMode="src_in"
tools:ignore="ContentDescription" /> tools:ignore="ContentDescription" />
@ -26,7 +27,7 @@
android:layout_marginStart="32dp" android:layout_marginStart="32dp"
android:paddingTop="16dp" android:paddingTop="16dp"
android:paddingBottom="16dp" android:paddingBottom="16dp"
android:textColor="?android:attr/textColorPrimary" android:textColor="?android:attr/textColor"
android:textSize="16sp" /> android:textSize="16sp" />
</LinearLayout> </LinearLayout>

View File

@ -1,10 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<LinearLayout <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="horizontal" android:background="?android:attr/selectableItemBackground"
android:background="?android:attr/selectableItemBackground"> android:orientation="horizontal">
<LinearLayout <LinearLayout
android:layout_width="0dp" android:layout_width="0dp"
@ -17,9 +16,9 @@
android:id="@+id/title" android:id="@+id/title"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:singleLine="true"
android:textColor="?android:attr/textColor" android:textColor="?android:attr/textColor"
android:textSize="16sp" android:textSize="16sp" />
android:singleLine="true" />
<TextView <TextView
android:id="@+id/summary" android:id="@+id/summary"
@ -35,9 +34,8 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_marginStart="-16dp" android:layout_marginStart="-16dp"
android:paddingStart="12dp"
android:paddingEnd="12dp"
android:clickable="false" android:clickable="false"
android:paddingHorizontal="12dp"
android:visibility="gone" /> android:visibility="gone" />
</LinearLayout> </LinearLayout>

View File

@ -1,20 +1,19 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="vertical" android:orientation="vertical"
android:paddingTop="12dp"
android:paddingBottom="4dp"
android:paddingStart="12dp" android:paddingStart="12dp"
android:paddingEnd="12dp"> android:paddingTop="12dp"
android:paddingEnd="12dp"
android:paddingBottom="4dp">
<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:gravity="center_vertical" android:gravity="center_vertical"
android:orientation="horizontal"
android:paddingBottom="8dp"> android:paddingBottom="8dp">
<ImageView <ImageView
@ -28,35 +27,35 @@
<LinearLayout <LinearLayout
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="12dp"
android:layout_weight="1" android:layout_weight="1"
android:orientation="vertical" android:orientation="vertical">
android:layout_marginStart="12dp">
<TextView <TextView
android:id="@+id/name" android:id="@+id/name"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:fontFamily="sans-serif-medium" android:fontFamily="sans-serif-medium"
android:textColor="?android:attr/textColorPrimary" android:singleLine="true"
android:textSize="16sp" android:textColor="?android:attr/textColor"
android:singleLine="true" /> android:textSize="16sp" />
<TextView <TextView
android:id="@+id/package_name" android:id="@+id/package_name"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:textColor="?android:attr/textColorPrimary" android:singleLine="true"
android:textSize="14sp" android:textColor="?android:attr/textColor"
android:singleLine="true" /> android:textSize="14sp" />
<TextView <TextView
android:id="@+id/version" android:id="@+id/version"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:paddingBottom="2sp" android:paddingBottom="2sp"
android:textColor="?android:attr/textColorSecondary" android:singleLine="true"
android:textSize="12sp" android:textColor="?attr/subTextColor"
android:singleLine="true" /> android:textSize="12sp" />
</LinearLayout> </LinearLayout>
@ -67,35 +66,35 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="vertical" android:orientation="vertical"
android:paddingBottom="4dp"
android:paddingStart="4dp" android:paddingStart="4dp"
android:paddingEnd="4dp"> android:paddingEnd="4dp"
android:paddingBottom="4dp">
<TextView <TextView
android:id="@+id/status" android:id="@+id/status"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center_vertical" android:layout_gravity="center_vertical"
android:singleLine="true"
android:textColor="?android:attr/textColorSecondary" android:textColor="?android:attr/textColorSecondary"
android:textSize="12sp" android:textSize="12sp" />
android:singleLine="true" />
<ProgressBar <ProgressBar
android:id="@+id/progress" android:id="@+id/progress"
style="@android:style/Widget.Material.ProgressBar.Horizontal"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center_vertical" android:layout_gravity="center_vertical"
android:layout_marginBottom="2dp" android:layout_marginBottom="2dp"
style="@android:style/Widget.Material.ProgressBar.Horizontal"
android:indeterminateTint="?android:attr/colorPrimary" /> android:indeterminateTint="?android:attr/colorPrimary" />
</LinearLayout> </LinearLayout>
<Button <Button
android:id="@+id/action" android:id="@+id/action"
android:background="@drawable/background_border"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="bottom"/> android:layout_gravity="bottom"
android:background="@drawable/background_border" />
</LinearLayout> </LinearLayout>

View File

@ -1,20 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<LinearLayout <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:orientation="horizontal"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="72dp" android:layout_height="72dp"
android:paddingStart="14dp" android:background="?android:attr/selectableItemBackground"
android:paddingEnd="16dp"
android:gravity="center_vertical" android:gravity="center_vertical"
android:background="?android:attr/selectableItemBackground"> android:orientation="horizontal"
android:paddingStart="14dp"
android:paddingEnd="16dp">
<ImageView <ImageView
android:id="@+id/icon" android:id="@+id/icon"
android:layout_width="44dp" android:layout_width="44dp"
android:layout_height="44dp" android:layout_height="44dp"
android:scaleType="centerInside"
tools:ignore="ContentDescription" /> tools:ignore="ContentDescription" />
<LinearLayout <LinearLayout
@ -35,9 +33,9 @@
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
android:singleLine="true"
android:textColor="?android:attr/textColor" android:textColor="?android:attr/textColor"
android:textSize="16sp" android:textSize="16sp" />
android:singleLine="true" />
<TextView <TextView
android:id="@+id/status" android:id="@+id/status"
@ -52,9 +50,9 @@
android:id="@+id/summary" android:id="@+id/summary"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:singleLine="true"
android:textColor="?android:attr/textColor" android:textColor="?android:attr/textColor"
android:textSize="14sp" android:textSize="14sp" />
android:singleLine="true" />
</LinearLayout> </LinearLayout>

View File

@ -1,20 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<LinearLayout <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="vertical" android:background="?android:attr/selectableItemBackground"
android:gravity="center_vertical"
android:baselineAligned="false" android:baselineAligned="false"
android:padding="16dp" android:gravity="center_vertical"
android:background="?android:attr/selectableItemBackground"> android:orientation="vertical"
android:padding="16dp">
<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:gravity="bottom"
android:gravity="bottom"> android:orientation="horizontal">
<FrameLayout <FrameLayout
android:layout_width="0dp" android:layout_width="0dp"
@ -24,8 +23,8 @@
<LinearLayout <LinearLayout
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="horizontal"
android:gravity="center_vertical" android:gravity="center_vertical"
android:orientation="horizontal"
tools:ignore="UselessParent"> tools:ignore="UselessParent">
<TextView <TextView
@ -33,26 +32,26 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
android:textColor="?android:attr/textColorPrimary"
android:textSize="16sp"
android:singleLine="true" android:singleLine="true"
android:textColor="?android:attr/textColor"
android:textSize="16sp"
tools:ignore="InefficientWeight" /> tools:ignore="InefficientWeight" />
<TextView <TextView
android:id="@+id/status" android:id="@+id/status"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="1dp"
android:layout_marginStart="8dp" android:layout_marginStart="8dp"
android:paddingTop="1dp" android:layout_marginTop="1dp"
android:paddingBottom="1dp"
android:paddingStart="4dp"
android:paddingEnd="4dp"
android:fontFamily="sans-serif-medium" android:fontFamily="sans-serif-medium"
android:paddingStart="4dp"
android:paddingTop="1dp"
android:paddingEnd="4dp"
android:paddingBottom="1dp"
android:singleLine="true"
android:textAllCaps="true"
android:textColor="?android:attr/colorBackground" android:textColor="?android:attr/colorBackground"
android:textSize="10sp" android:textSize="10sp"
android:textAllCaps="true"
android:singleLine="true"
tools:ignore="SmallSp" /> tools:ignore="SmallSp" />
</LinearLayout> </LinearLayout>
@ -64,9 +63,9 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="16dp" android:layout_marginStart="16dp"
android:textColor="?android:attr/textColorPrimary" android:singleLine="true"
android:textSize="14sp" android:textColor="?android:attr/textColor"
android:singleLine="true" /> android:textSize="14sp" />
</LinearLayout> </LinearLayout>
@ -80,18 +79,18 @@
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
android:singleLine="true"
android:textColor="?android:attr/textColorSecondary" android:textColor="?android:attr/textColorSecondary"
android:textSize="14sp" android:textSize="14sp" />
android:singleLine="true" />
<TextView <TextView
android:id="@+id/size" android:id="@+id/size"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="16dp" android:layout_marginStart="16dp"
android:singleLine="true"
android:textColor="?android:attr/textColorSecondary" android:textColor="?android:attr/textColorSecondary"
android:textSize="14sp" android:textSize="14sp" />
android:singleLine="true" />
</LinearLayout> </LinearLayout>
@ -99,16 +98,16 @@
android:id="@+id/signature" android:id="@+id/signature"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:maxLines="1"
android:textColor="?android:attr/textColorSecondary" android:textColor="?android:attr/textColorSecondary"
android:textSize="14sp" android:textSize="14sp" />
android:maxLines="1" />
<TextView <TextView
android:id="@+id/compatibility" android:id="@+id/compatibility"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:singleLine="true"
android:textColor="?android:attr/textColorSecondary" android:textColor="?android:attr/textColorSecondary"
android:textSize="14sp" android:textSize="14sp" />
android:singleLine="true" />
</LinearLayout> </LinearLayout>

View File

@ -1,21 +1,20 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="54dp" android:layout_height="54dp"
android:orientation="horizontal" android:background="?android:attr/selectableItemBackground"
android:gravity="center_vertical" android:gravity="center_vertical"
android:background="?android:attr/selectableItemBackground"> android:orientation="horizontal">
<TextView <TextView
android:id="@+id/name" android:id="@+id/name"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_marginStart="16dp" android:layout_marginStart="16dp"
android:layout_weight="1"
android:singleLine="true"
android:textColor="?android:attr/textColor" android:textColor="?android:attr/textColor"
android:textSize="16sp" android:textSize="16sp" />
android:singleLine="true" />
<Switch <Switch
android:id="@+id/enabled" android:id="@+id/enabled"

View File

@ -1,12 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<LinearLayout <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:orientation="horizontal"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:padding="16dp" android:background="?android:attr/selectableItemBackground"
android:background="?android:attr/selectableItemBackground"> android:orientation="horizontal"
android:padding="16dp">
<TextView <TextView
android:id="@+id/title" android:id="@+id/title"
@ -14,9 +13,9 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
android:fontFamily="sans-serif-medium" android:fontFamily="sans-serif-medium"
android:textColor="?android:attr/textColorPrimary" android:singleLine="true"
android:textSize="14sp" android:textColor="?android:attr/textColor"
android:singleLine="true" /> android:textSize="14sp" />
<ImageView <ImageView
android:id="@+id/icon" android:id="@+id/icon"
@ -24,7 +23,7 @@
android:layout_height="match_parent" android:layout_height="match_parent"
android:scaleType="center" android:scaleType="center"
android:src="@drawable/ic_arrow_down" android:src="@drawable/ic_arrow_down"
android:tint="?android:attr/textColorPrimary" android:tint="?android:attr/textColor"
android:tintMode="src_in" android:tintMode="src_in"
tools:ignore="ContentDescription" /> tools:ignore="ContentDescription" />

View File

@ -1,28 +1,27 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="48dp" android:layout_height="48dp"
android:orientation="horizontal" android:background="?android:attr/selectableItemBackground"
android:gravity="center_vertical" android:gravity="center_vertical"
android:background="?android:attr/selectableItemBackground"> android:orientation="horizontal">
<TextView <TextView
android:id="@+id/title" android:id="@+id/title"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_marginStart="16dp" android:layout_marginStart="16dp"
android:layout_weight="1"
android:singleLine="true"
android:textColor="?android:attr/textColor" android:textColor="?android:attr/textColor"
android:textSize="16sp" android:textSize="16sp" />
android:singleLine="true" />
<Switch <Switch
android:id="@+id/enabled" android:id="@+id/enabled"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="match_parent" android:layout_height="match_parent"
android:clickable="false"
android:paddingStart="12dp" android:paddingStart="12dp"
android:paddingEnd="12dp" android:paddingEnd="12dp" />
android:clickable="false" />
</LinearLayout> </LinearLayout>

View File

@ -1,19 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<LinearLayout <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="vertical" android:background="@drawable/background_border"
android:layout_marginHorizontal="5dp" android:orientation="vertical">
android:background="@drawable/background_border">
<LinearLayout <LinearLayout
android:id="@+id/tabs" android:id="@+id/tabs"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="48dp" android:layout_height="48dp"
android:orientation="horizontal" android:orientation="horizontal" />
android:theme="@style/Theme.Main.Light"/>
<FrameLayout <FrameLayout
android:id="@+id/section_layout" android:id="@+id/section_layout"
@ -24,12 +21,11 @@
android:id="@+id/section_change" android:id="@+id/section_change"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="48dp" android:layout_height="48dp"
android:orientation="horizontal" android:background="?android:attr/selectableItemBackground"
android:gravity="center_vertical" android:gravity="center_vertical"
android:orientation="horizontal"
android:paddingStart="12dp" android:paddingStart="12dp"
android:paddingEnd="12dp" android:paddingEnd="12dp"
android:background="?android:attr/selectableItemBackground"
android:theme="@style/Theme.Main.Light"
tools:ignore="UselessParent"> tools:ignore="UselessParent">
<TextView <TextView
@ -41,7 +37,7 @@
android:gravity="center_vertical" android:gravity="center_vertical"
android:paddingStart="10dp" android:paddingStart="10dp"
android:paddingEnd="10dp" android:paddingEnd="10dp"
android:textColor="?android:attr/textColorPrimary" android:textColor="?android:attr/textColor"
android:textSize="16sp" /> android:textSize="16sp" />
<ImageView <ImageView

View File

@ -1,13 +1,10 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="vertical" android:orientation="vertical"
android:paddingTop="8dp" android:paddingVertical="8dp"
android:paddingBottom="8dp" android:paddingHorizontal="16dp">
android:paddingStart="16dp"
android:paddingEnd="16dp">
<TextView <TextView
android:id="@+id/title" android:id="@+id/title"