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

View File

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

View File

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

View File

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

View File

@ -1,10 +1,9 @@
<?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"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:background="?android:attr/selectableItemBackground">
android:background="?android:attr/selectableItemBackground"
android:orientation="horizontal">
<LinearLayout
android:layout_width="0dp"
@ -17,9 +16,9 @@
android:id="@+id/title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:singleLine="true"
android:textColor="?android:attr/textColor"
android:textSize="16sp"
android:singleLine="true" />
android:textSize="16sp" />
<TextView
android:id="@+id/summary"
@ -35,9 +34,8 @@
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_marginStart="-16dp"
android:paddingStart="12dp"
android:paddingEnd="12dp"
android:clickable="false"
android:paddingHorizontal="12dp"
android:visibility="gone" />
</LinearLayout>

View File

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

View File

@ -1,20 +1,18 @@
<?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:tools="http://schemas.android.com/tools"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="72dp"
android:paddingStart="14dp"
android:paddingEnd="16dp"
android:background="?android:attr/selectableItemBackground"
android:gravity="center_vertical"
android:background="?android:attr/selectableItemBackground">
android:orientation="horizontal"
android:paddingStart="14dp"
android:paddingEnd="16dp">
<ImageView
android:id="@+id/icon"
android:layout_width="44dp"
android:layout_height="44dp"
android:scaleType="centerInside"
tools:ignore="ContentDescription" />
<LinearLayout
@ -35,16 +33,16 @@
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:singleLine="true"
android:textColor="?android:attr/textColor"
android:textSize="16sp"
android:singleLine="true" />
android:textSize="16sp" />
<TextView
android:id="@+id/status"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:maxWidth="70dp"
android:singleLine="true"/>
android:singleLine="true" />
</LinearLayout>
@ -52,9 +50,9 @@
android:id="@+id/summary"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:singleLine="true"
android:textColor="?android:attr/textColor"
android:textSize="14sp"
android:singleLine="true" />
android:textSize="14sp" />
</LinearLayout>

View File

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

View File

@ -1,21 +1,20 @@
<?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"
android:layout_width="match_parent"
android:layout_height="54dp"
android:orientation="horizontal"
android:background="?android:attr/selectableItemBackground"
android:gravity="center_vertical"
android:background="?android:attr/selectableItemBackground">
android:orientation="horizontal">
<TextView
android:id="@+id/name"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_marginStart="16dp"
android:layout_weight="1"
android:singleLine="true"
android:textColor="?android:attr/textColor"
android:textSize="16sp"
android:singleLine="true" />
android:textSize="16sp" />
<Switch
android:id="@+id/enabled"

View File

@ -1,12 +1,11 @@
<?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:tools="http://schemas.android.com/tools"
android:orientation="horizontal"
android:layout_width="match_parent"
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
android:id="@+id/title"
@ -14,9 +13,9 @@
android:layout_height="wrap_content"
android:layout_weight="1"
android:fontFamily="sans-serif-medium"
android:textColor="?android:attr/textColorPrimary"
android:textSize="14sp"
android:singleLine="true" />
android:singleLine="true"
android:textColor="?android:attr/textColor"
android:textSize="14sp" />
<ImageView
android:id="@+id/icon"
@ -24,7 +23,7 @@
android:layout_height="match_parent"
android:scaleType="center"
android:src="@drawable/ic_arrow_down"
android:tint="?android:attr/textColorPrimary"
android:tint="?android:attr/textColor"
android:tintMode="src_in"
tools:ignore="ContentDescription" />

View File

@ -1,28 +1,27 @@
<?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"
android:layout_width="match_parent"
android:layout_height="48dp"
android:orientation="horizontal"
android:background="?android:attr/selectableItemBackground"
android:gravity="center_vertical"
android:background="?android:attr/selectableItemBackground">
android:orientation="horizontal">
<TextView
android:id="@+id/title"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_marginStart="16dp"
android:layout_weight="1"
android:singleLine="true"
android:textColor="?android:attr/textColor"
android:textSize="16sp"
android:singleLine="true" />
android:textSize="16sp" />
<Switch
android:id="@+id/enabled"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:clickable="false"
android:paddingStart="12dp"
android:paddingEnd="12dp"
android:clickable="false" />
android:paddingEnd="12dp" />
</LinearLayout>

View File

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

View File

@ -1,13 +1,10 @@
<?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"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingTop="8dp"
android:paddingBottom="8dp"
android:paddingStart="16dp"
android:paddingEnd="16dp">
android:paddingVertical="8dp"
android:paddingHorizontal="16dp">
<TextView
android:id="@+id/title"