Update: Move to androidx.material/appcompat

Auto Format of code
This commit is contained in:
LooKeR
2021-10-27 00:41:20 +05:30
parent 486d531158
commit 95183dde6b
50 changed files with 305 additions and 384 deletions

View File

@ -11,7 +11,7 @@
android:layout_height="match_parent"
android:fillViewport="true">
<LinearLayout
<androidx.appcompat.widget.LinearLayoutCompat
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
@ -19,7 +19,7 @@
android:paddingTop="4dp"
android:paddingBottom="12dp">
<FrameLayout
<com.google.android.material.circularreveal.CircularRevealFrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
@ -48,7 +48,7 @@
android:visibility="gone"
tools:ignore="ContentDescription" />
</FrameLayout>
</com.google.android.material.circularreveal.CircularRevealFrameLayout>
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
@ -86,11 +86,11 @@
android:layout_height="match_parent" />
</com.google.android.material.textfield.TextInputLayout>
</LinearLayout>
</androidx.appcompat.widget.LinearLayoutCompat>
</androidx.core.widget.NestedScrollView>
<LinearLayout
<androidx.appcompat.widget.LinearLayoutCompat
android:id="@+id/overlay"
android:layout_width="match_parent"
android:layout_height="match_parent"
@ -100,12 +100,12 @@
android:orientation="vertical"
tools:ignore="KeyboardInaccessibleWidget">
<ProgressBar
style="?android:attr/progressBarStyleHorizontal"
<com.google.android.material.progressindicator.LinearProgressIndicator
style="@style/Theme.Progress"
android:layout_width="200dp"
android:layout_height="wrap_content" />
<TextView
<com.google.android.material.textview.MaterialTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
@ -114,7 +114,7 @@
android:textColor="?android:attr/textColorPrimary"
android:textSize="20sp" />
<Button
<com.google.android.material.textview.MaterialTextView
android:id="@+id/skip"
style="@android:style/Widget.Material.Button.Borderless.Colored"
android:layout_width="wrap_content"
@ -122,6 +122,6 @@
android:layout_marginTop="4dp"
android:text="@string/skip" />
</LinearLayout>
</androidx.appcompat.widget.LinearLayoutCompat>
</FrameLayout>

View File

@ -27,13 +27,13 @@
android:layout_height="?actionBarSize" />
</com.google.android.material.appbar.CollapsingToolbarLayout>
<FrameLayout
<com.google.android.material.circularreveal.CircularRevealFrameLayout
android:id="@+id/toolbar_extra"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</com.google.android.material.appbar.AppBarLayout>
<FrameLayout
<com.google.android.material.circularreveal.CircularRevealFrameLayout
android:id="@+id/fragment_content"
android:layout_width="match_parent"
android:layout_height="match_parent"

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
<androidx.appcompat.widget.LinearLayoutCompat 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"
@ -18,14 +18,14 @@
android:tintMode="src_in"
tools:ignore="ContentDescription" />
<LinearLayout
<androidx.appcompat.widget.LinearLayoutCompat
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical"
android:padding="16dp">
<TextView
<com.google.android.material.textview.MaterialTextView
android:id="@+id/text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
@ -33,7 +33,7 @@
android:textColor="?android:attr/textColor"
android:textSize="16sp" />
<TextView
<com.google.android.material.textview.MaterialTextView
android:id="@+id/link"
android:layout_width="match_parent"
android:layout_height="wrap_content"
@ -41,6 +41,6 @@
android:textColor="?android:attr/textColor"
android:textSize="14sp" />
</LinearLayout>
</androidx.appcompat.widget.LinearLayoutCompat>
</LinearLayout>
</androidx.appcompat.widget.LinearLayoutCompat>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
<androidx.appcompat.widget.LinearLayoutCompat 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"
@ -18,7 +18,7 @@
android:tintMode="src_in"
tools:ignore="ContentDescription" />
<TextView
<com.google.android.material.textview.MaterialTextView
android:id="@+id/text"
android:layout_width="0dp"
android:layout_height="wrap_content"
@ -29,4 +29,4 @@
android:textColor="?android:attr/textColor"
android:textSize="16sp" />
</LinearLayout>
</androidx.appcompat.widget.LinearLayoutCompat>

View File

@ -1,18 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
<androidx.appcompat.widget.LinearLayoutCompat xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?android:attr/selectableItemBackground"
android:orientation="horizontal">
<LinearLayout
<androidx.appcompat.widget.LinearLayoutCompat
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical"
android:padding="16dp">
<TextView
<com.google.android.material.textview.MaterialTextView
android:id="@+id/title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
@ -20,14 +20,14 @@
android:textColor="?android:attr/textColor"
android:textSize="16sp" />
<TextView
<com.google.android.material.textview.MaterialTextView
android:id="@+id/summary"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColor="?android:attr/textColor"
android:textSize="14sp" />
</LinearLayout>
</androidx.appcompat.widget.LinearLayoutCompat>
<com.google.android.material.switchmaterial.SwitchMaterial
android:id="@+id/check"
@ -38,4 +38,4 @@
android:paddingHorizontal="12dp"
android:visibility="gone" />
</LinearLayout>
</androidx.appcompat.widget.LinearLayoutCompat>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
<androidx.appcompat.widget.LinearLayoutCompat xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
@ -8,7 +8,7 @@
android:paddingTop="12dp"
android:paddingBottom="4dp">
<LinearLayout
<androidx.appcompat.widget.LinearLayoutCompat
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
@ -23,14 +23,14 @@
app:shapeAppearanceOverlay="@style/Shape.Medium"
tools:ignore="ContentDescription" />
<LinearLayout
<androidx.appcompat.widget.LinearLayoutCompat
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/text_margin"
android:layout_weight="1"
android:orientation="vertical">
<TextView
<com.google.android.material.textview.MaterialTextView
android:id="@+id/name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
@ -39,18 +39,18 @@
android:textColor="?android:attr/textColor"
android:textSize="17sp" />
<TextView
<com.google.android.material.textview.MaterialTextView
android:id="@+id/package_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:singleLine="true"
android:textColor="?android:attr/textColor"
android:textSize="14sp" />
</LinearLayout>
</androidx.appcompat.widget.LinearLayoutCompat>
</LinearLayout>
</androidx.appcompat.widget.LinearLayoutCompat>
<LinearLayout
<androidx.appcompat.widget.LinearLayoutCompat
android:id="@+id/status_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
@ -58,7 +58,7 @@
android:paddingHorizontal="12dp"
android:paddingBottom="4dp">
<TextView
<com.google.android.material.textview.MaterialTextView
android:id="@+id/status"
android:layout_width="match_parent"
android:layout_height="wrap_content"
@ -74,7 +74,7 @@
android:layout_height="wrap_content"
android:layout_gravity="center_vertical" />
</LinearLayout>
</androidx.appcompat.widget.LinearLayoutCompat>
<com.google.android.material.button.MaterialButton
android:id="@+id/action"
@ -84,4 +84,4 @@
app:iconGravity="textStart"
app:shapeAppearanceOverlay="@style/PillShapeAppearance" />
</LinearLayout>
</androidx.appcompat.widget.LinearLayoutCompat>

View File

@ -9,7 +9,7 @@
app:cardElevation="0dp"
app:strokeWidth="0dp">
<LinearLayout
<androidx.appcompat.widget.LinearLayoutCompat
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center_vertical"
@ -23,20 +23,20 @@
app:shapeAppearanceOverlay="@style/Shape.Small"
tools:ignore="ContentDescription" />
<LinearLayout
<androidx.appcompat.widget.LinearLayoutCompat
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginStart="14dp"
android:orientation="vertical">
<LinearLayout
<androidx.appcompat.widget.LinearLayoutCompat
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:orientation="horizontal">
<TextView
<com.google.android.material.textview.MaterialTextView
android:id="@+id/name"
android:layout_width="0dp"
android:layout_height="wrap_content"
@ -45,16 +45,16 @@
android:textColor="?android:attr/textColor"
android:textSize="16sp" />
<TextView
<com.google.android.material.textview.MaterialTextView
android:id="@+id/status"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:maxWidth="70dp"
android:singleLine="true" />
</LinearLayout>
</androidx.appcompat.widget.LinearLayoutCompat>
<TextView
<com.google.android.material.textview.MaterialTextView
android:id="@+id/summary"
android:layout_width="match_parent"
android:layout_height="wrap_content"
@ -62,8 +62,8 @@
android:textColor="?android:attr/textColor"
android:textSize="14sp" />
</LinearLayout>
</androidx.appcompat.widget.LinearLayoutCompat>
</LinearLayout>
</androidx.appcompat.widget.LinearLayoutCompat>
</com.google.android.material.card.MaterialCardView>

View File

@ -10,7 +10,7 @@
android:gravity="center"
android:orientation="horizontal">
<LinearLayout
<androidx.appcompat.widget.LinearLayoutCompat
android:id="@+id/sdk_block"
android:layout_width="0dp"
android:layout_height="wrap_content"
@ -34,7 +34,7 @@
android:singleLine="true"
android:textColor="?android:textColor"
android:textSize="16sp" />
</LinearLayout>
</androidx.appcompat.widget.LinearLayoutCompat>
<com.google.android.material.divider.MaterialDivider
android:id="@+id/divider1"
@ -42,7 +42,7 @@
android:layout_height="match_parent"
android:layout_marginVertical="12dp" />
<LinearLayout
<androidx.appcompat.widget.LinearLayoutCompat
android:id="@+id/version_block"
android:layout_width="0dp"
android:layout_height="wrap_content"
@ -66,7 +66,7 @@
android:singleLine="true"
android:textColor="?android:attr/textColor"
android:textSize="16sp" />
</LinearLayout>
</androidx.appcompat.widget.LinearLayoutCompat>
<com.google.android.material.divider.MaterialDivider
android:id="@+id/divider2"
@ -74,7 +74,7 @@
android:layout_height="match_parent"
android:layout_marginVertical="12dp" />
<LinearLayout
<androidx.appcompat.widget.LinearLayoutCompat
android:id="@+id/size_block"
android:layout_width="0dp"
android:layout_height="wrap_content"
@ -98,7 +98,7 @@
android:singleLine="true"
android:textColor="?android:textColor"
android:textSize="16sp" />
</LinearLayout>
</androidx.appcompat.widget.LinearLayoutCompat>
<com.google.android.material.divider.MaterialDivider
android:id="@+id/divider3"
@ -117,7 +117,7 @@
app:cardElevation="0dp"
app:strokeWidth="0dp">
<LinearLayout
<androidx.appcompat.widget.LinearLayoutCompat
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
@ -142,6 +142,6 @@
android:singleLine="true"
android:textColor="?android:textColor"
android:textSize="12sp" />
</LinearLayout>
</androidx.appcompat.widget.LinearLayoutCompat>
</com.google.android.material.card.MaterialCardView>
</androidx.appcompat.widget.LinearLayoutCompat>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
<androidx.appcompat.widget.LinearLayoutCompat 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"
@ -9,25 +9,25 @@
android:orientation="vertical"
android:padding="16dp">
<LinearLayout
<androidx.appcompat.widget.LinearLayoutCompat
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="bottom"
android:orientation="horizontal">
<FrameLayout
<com.google.android.material.circularreveal.CircularRevealFrameLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1">
<LinearLayout
<androidx.appcompat.widget.LinearLayoutCompat
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:orientation="horizontal"
tools:ignore="UselessParent">
<TextView
<com.google.android.material.textview.MaterialTextView
android:id="@+id/version"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
@ -37,7 +37,7 @@
android:textSize="16sp"
tools:ignore="InefficientWeight" />
<TextView
<com.google.android.material.textview.MaterialTextView
android:id="@+id/status"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
@ -54,11 +54,11 @@
android:textSize="10sp"
tools:ignore="SmallSp" />
</LinearLayout>
</androidx.appcompat.widget.LinearLayoutCompat>
</FrameLayout>
</com.google.android.material.circularreveal.CircularRevealFrameLayout>
<TextView
<com.google.android.material.textview.MaterialTextView
android:id="@+id/added"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
@ -67,14 +67,14 @@
android:textColor="?android:attr/textColor"
android:textSize="14sp" />
</LinearLayout>
</androidx.appcompat.widget.LinearLayoutCompat>
<LinearLayout
<androidx.appcompat.widget.LinearLayoutCompat
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
<com.google.android.material.textview.MaterialTextView
android:id="@+id/source"
android:layout_width="0dp"
android:layout_height="wrap_content"
@ -83,7 +83,7 @@
android:textColor="?android:attr/textColorSecondary"
android:textSize="14sp" />
<TextView
<com.google.android.material.textview.MaterialTextView
android:id="@+id/size"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
@ -92,9 +92,9 @@
android:textColor="?android:attr/textColorSecondary"
android:textSize="14sp" />
</LinearLayout>
</androidx.appcompat.widget.LinearLayoutCompat>
<TextView
<com.google.android.material.textview.MaterialTextView
android:id="@+id/signature"
android:layout_width="match_parent"
android:layout_height="wrap_content"
@ -102,7 +102,7 @@
android:textColor="?android:attr/textColorSecondary"
android:textSize="14sp" />
<TextView
<com.google.android.material.textview.MaterialTextView
android:id="@+id/compatibility"
android:layout_width="match_parent"
android:layout_height="wrap_content"
@ -110,4 +110,4 @@
android:textColor="?android:attr/textColorSecondary"
android:textSize="14sp" />
</LinearLayout>
</androidx.appcompat.widget.LinearLayoutCompat>

View File

@ -1,12 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
<androidx.appcompat.widget.LinearLayoutCompat xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="54dp"
android:background="?android:attr/selectableItemBackground"
android:gravity="center_vertical"
android:orientation="horizontal">
<TextView
<com.google.android.material.textview.MaterialTextView
android:id="@+id/name"
android:layout_width="0dp"
android:layout_height="wrap_content"
@ -23,4 +23,4 @@
android:paddingStart="12dp"
android:paddingEnd="12dp" />
</LinearLayout>
</androidx.appcompat.widget.LinearLayoutCompat>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
<androidx.appcompat.widget.LinearLayoutCompat 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"
@ -7,7 +7,7 @@
android:orientation="horizontal"
android:padding="16dp">
<TextView
<com.google.android.material.textview.MaterialTextView
android:id="@+id/title"
android:layout_width="0dp"
android:layout_height="wrap_content"
@ -27,4 +27,4 @@
android:tintMode="src_in"
tools:ignore="ContentDescription" />
</LinearLayout>
</androidx.appcompat.widget.LinearLayoutCompat>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
<com.google.android.material.circularreveal.CircularRevealFrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content">
@ -11,4 +11,4 @@
android:clickable="false"
android:singleLine="true"
android:textSize="15sp" />
</FrameLayout>
</com.google.android.material.circularreveal.CircularRevealFrameLayout>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
<androidx.appcompat.widget.LinearLayoutCompat 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"
@ -11,12 +11,12 @@
android:layout_height="48dp"
android:background="@drawable/bg_item_rounded_ripple" />
<FrameLayout
<com.google.android.material.circularreveal.CircularRevealFrameLayout
android:id="@+id/section_layout"
android:layout_width="match_parent"
android:layout_height="0dp">
<LinearLayout
<androidx.appcompat.widget.LinearLayoutCompat
android:id="@+id/section_change"
android:layout_width="match_parent"
android:layout_height="48dp"
@ -27,13 +27,13 @@
android:paddingEnd="12dp"
tools:ignore="UselessParent">
<TextView
<com.google.android.material.textview.MaterialTextView
android:id="@+id/section_name"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/text_margin"
android:layout_weight="1"
android:gravity="center_vertical"
android:layout_marginStart="@dimen/text_margin"
android:textColor="?android:attr/textColor"
android:textSize="16sp" />
@ -45,8 +45,8 @@
android:src="@drawable/ic_arrow_down"
tools:ignore="ContentDescription" />
</LinearLayout>
</androidx.appcompat.widget.LinearLayoutCompat>
</FrameLayout>
</com.google.android.material.circularreveal.CircularRevealFrameLayout>
</LinearLayout>
</androidx.appcompat.widget.LinearLayoutCompat>

View File

@ -1,19 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
<androidx.appcompat.widget.LinearLayoutCompat xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingHorizontal="16dp"
android:paddingVertical="8dp">
<TextView
<com.google.android.material.textview.MaterialTextView
android:id="@+id/title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColor="?android:attr/textColor"
android:textSize="12sp" />
<TextView
<com.google.android.material.textview.MaterialTextView
android:id="@+id/text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
@ -21,4 +21,4 @@
android:textColor="?android:attr/textColor"
android:textSize="16sp" />
</LinearLayout>
</androidx.appcompat.widget.LinearLayoutCompat>