Remove Unused Dependency

Reduce usage of appcompat
This commit is contained in:
LooKeR 2022-03-01 15:17:09 +05:30
parent e6d204eea4
commit 5dfd04e8dc
21 changed files with 112 additions and 113 deletions

View File

@ -132,7 +132,6 @@ dependencies {
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.6.10' implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.6.10'
implementation 'androidx.core:core-ktx:1.7.0' implementation 'androidx.core:core-ktx:1.7.0'
implementation 'androidx.appcompat:appcompat:1.4.1' implementation 'androidx.appcompat:appcompat:1.4.1'
implementation 'androidx.appcompat:appcompat-resources:1.4.1'
implementation 'androidx.fragment:fragment-ktx:1.4.1' implementation 'androidx.fragment:fragment-ktx:1.4.1'
implementation 'androidx.activity:activity-ktx:1.4.0' implementation 'androidx.activity:activity-ktx:1.4.0'
implementation "androidx.preference:preference-ktx:1.2.0" implementation "androidx.preference:preference-ktx:1.2.0"

View File

@ -22,9 +22,9 @@ import android.view.Gravity
import android.view.MotionEvent import android.view.MotionEvent
import android.view.View import android.view.View
import android.view.ViewGroup import android.view.ViewGroup
import android.widget.LinearLayout
import androidx.annotation.DrawableRes import androidx.annotation.DrawableRes
import androidx.annotation.StringRes import androidx.annotation.StringRes
import androidx.appcompat.widget.LinearLayoutCompat
import androidx.core.content.res.ResourcesCompat import androidx.core.content.res.ResourcesCompat
import androidx.core.net.toUri import androidx.core.net.toUri
import androidx.core.text.HtmlCompat import androidx.core.text.HtmlCompat
@ -349,7 +349,7 @@ class AppDetailAdapter(private val callbacks: Callbacks) :
this.defaultIcon = Utils.getDefaultApplicationIcon(icon.context) this.defaultIcon = Utils.getDefaultApplicationIcon(icon.context)
} }
val targetBlock = itemView.findViewById<LinearLayoutCompat>(R.id.sdk_block)!! val targetBlock = itemView.findViewById<LinearLayout>(R.id.sdk_block)!!
val divider1 = itemView.findViewById<MaterialDivider>(R.id.divider1)!! val divider1 = itemView.findViewById<MaterialDivider>(R.id.divider1)!!
val targetSdk = itemView.findViewById<MaterialTextView>(R.id.sdk)!! val targetSdk = itemView.findViewById<MaterialTextView>(R.id.sdk)!!
val version = itemView.findViewById<MaterialTextView>(R.id.version)!! val version = itemView.findViewById<MaterialTextView>(R.id.version)!!
@ -507,12 +507,12 @@ class AppDetailAdapter(private val callbacks: Callbacks) :
} }
private class EmptyViewHolder(context: Context) : private class EmptyViewHolder(context: Context) :
RecyclerView.ViewHolder(LinearLayoutCompat(context)) { RecyclerView.ViewHolder(LinearLayout(context)) {
val packageName: MaterialTextView val packageName: MaterialTextView
init { init {
itemView as LinearLayoutCompat itemView as LinearLayout
itemView.orientation = LinearLayoutCompat.VERTICAL itemView.orientation = LinearLayout.VERTICAL
itemView.gravity = Gravity.CENTER itemView.gravity = Gravity.CENTER
itemView.resources.sizeScaled(20).let { itemView.setPadding(it, it, it, it) } itemView.resources.sizeScaled(20).let { itemView.setPadding(it, it, it, it) }
val title = MaterialTextView(itemView.context) val title = MaterialTextView(itemView.context)
@ -523,8 +523,8 @@ class AppDetailAdapter(private val callbacks: Callbacks) :
title.setText(R.string.application_not_found) title.setText(R.string.application_not_found)
itemView.addView( itemView.addView(
title, title,
LinearLayoutCompat.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.MATCH_PARENT,
LinearLayoutCompat.LayoutParams.WRAP_CONTENT LinearLayout.LayoutParams.WRAP_CONTENT
) )
val packageName = MaterialTextView(itemView.context) val packageName = MaterialTextView(itemView.context)
packageName.gravity = Gravity.CENTER packageName.gravity = Gravity.CENTER
@ -532,8 +532,8 @@ class AppDetailAdapter(private val callbacks: Callbacks) :
packageName.setTextSizeScaled(18) packageName.setTextSizeScaled(18)
itemView.addView( itemView.addView(
packageName, packageName,
LinearLayoutCompat.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.MATCH_PARENT,
LinearLayoutCompat.LayoutParams.WRAP_CONTENT LinearLayout.LayoutParams.WRAP_CONTENT
) )
itemView.layoutParams = RecyclerView.LayoutParams( itemView.layoutParams = RecyclerView.LayoutParams(
RecyclerView.LayoutParams.MATCH_PARENT, RecyclerView.LayoutParams.MATCH_PARENT,

View File

@ -11,8 +11,8 @@ import android.view.LayoutInflater
import android.view.View import android.view.View
import android.view.ViewGroup import android.view.ViewGroup
import android.view.WindowManager import android.view.WindowManager
import android.widget.LinearLayout
import androidx.appcompat.app.AlertDialog import androidx.appcompat.app.AlertDialog
import androidx.appcompat.widget.LinearLayoutCompat
import androidx.core.net.toUri import androidx.core.net.toUri
import androidx.core.widget.NestedScrollView import androidx.core.widget.NestedScrollView
import androidx.fragment.app.DialogFragment import androidx.fragment.app.DialogFragment
@ -119,7 +119,7 @@ abstract class PrefsNavFragmentX : Fragment() {
} }
} }
protected fun LinearLayoutCompat.addText(title: String, summary: String, url: String) { protected fun LinearLayout.addText(title: String, summary: String, url: String) {
val text = MaterialTextView(context) val text = MaterialTextView(context)
val subText = MaterialTextView(context) val subText = MaterialTextView(context)
text.text = title text.text = title
@ -132,21 +132,21 @@ abstract class PrefsNavFragmentX : Fragment() {
} }
addView( addView(
text, text,
LinearLayoutCompat.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.MATCH_PARENT,
LinearLayoutCompat.LayoutParams.WRAP_CONTENT LinearLayout.LayoutParams.WRAP_CONTENT
) )
addView( addView(
subText, subText,
LinearLayoutCompat.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.MATCH_PARENT,
LinearLayoutCompat.LayoutParams.WRAP_CONTENT LinearLayout.LayoutParams.WRAP_CONTENT
) )
text.setOnClickListener { openURI(url.toUri()) } text.setOnClickListener { openURI(url.toUri()) }
subText.setOnClickListener { openURI(url.toUri()) } subText.setOnClickListener { openURI(url.toUri()) }
} }
protected inline fun LinearLayoutCompat.addCategory( protected inline fun LinearLayout.addCategory(
title: String, title: String,
callback: LinearLayoutCompat.() -> Unit, callback: LinearLayout.() -> Unit,
) { ) {
val text = MaterialTextView(context) val text = MaterialTextView(context)
text.typeface = TypefaceExtra.medium text.typeface = TypefaceExtra.medium
@ -156,13 +156,13 @@ abstract class PrefsNavFragmentX : Fragment() {
resources.sizeScaled(16).let { text.setPadding(it, it, it, 0) } resources.sizeScaled(16).let { text.setPadding(it, it, it, 0) }
addView( addView(
text, text,
LinearLayoutCompat.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.MATCH_PARENT,
LinearLayoutCompat.LayoutParams.WRAP_CONTENT LinearLayout.LayoutParams.WRAP_CONTENT
) )
callback() callback()
} }
protected fun <T> LinearLayoutCompat.addPreference( protected fun <T> LinearLayout.addPreference(
key: Preferences.Key<T>, title: String, key: Preferences.Key<T>, title: String,
summaryProvider: () -> String, dialogProvider: ((Context) -> AlertDialog)?, summaryProvider: () -> String, dialogProvider: ((Context) -> AlertDialog)?,
): Preference<T> { ): Preference<T> {
@ -172,7 +172,7 @@ abstract class PrefsNavFragmentX : Fragment() {
return preference return preference
} }
protected fun LinearLayoutCompat.addSwitch( protected fun LinearLayout.addSwitch(
key: Preferences.Key<Boolean>, key: Preferences.Key<Boolean>,
title: String, title: String,
summary: String, summary: String,
@ -183,7 +183,7 @@ abstract class PrefsNavFragmentX : Fragment() {
preference.setCallback { preference.check.isChecked = Preferences[key] } preference.setCallback { preference.check.isChecked = Preferences[key] }
} }
protected fun <T> LinearLayoutCompat.addEdit( protected fun <T> LinearLayout.addEdit(
key: Preferences.Key<T>, title: String, valueToString: (T) -> String, key: Preferences.Key<T>, title: String, valueToString: (T) -> String,
stringToValue: (String) -> T?, configureEdit: (TextInputEditText) -> Unit, stringToValue: (String) -> T?, configureEdit: (TextInputEditText) -> Unit,
) { ) {
@ -219,11 +219,11 @@ abstract class PrefsNavFragmentX : Fragment() {
} }
} }
protected fun LinearLayoutCompat.addEditString(key: Preferences.Key<String>, title: String) { protected fun LinearLayout.addEditString(key: Preferences.Key<String>, title: String) {
addEdit(key, title, { it }, { it }, { }) addEdit(key, title, { it }, { it }, { })
} }
protected fun LinearLayoutCompat.addEditInt( protected fun LinearLayout.addEditInt(
key: Preferences.Key<Int>, key: Preferences.Key<Int>,
title: String, title: String,
range: IntRange?, range: IntRange?,
@ -239,7 +239,7 @@ abstract class PrefsNavFragmentX : Fragment() {
} }
} }
protected fun <T : Preferences.Enumeration<T>> LinearLayoutCompat.addEnumeration( protected fun <T : Preferences.Enumeration<T>> LinearLayout.addEnumeration(
key: Preferences.Key<T>, key: Preferences.Key<T>,
title: String, title: String,
valueToString: (T) -> String, valueToString: (T) -> String,
@ -260,7 +260,7 @@ abstract class PrefsNavFragmentX : Fragment() {
} }
} }
protected fun <T> LinearLayoutCompat.addList( protected fun <T> LinearLayout.addList(
key: Preferences.Key<T>, key: Preferences.Key<T>,
title: String, title: String,
values: List<T>, values: List<T>,

View File

@ -1,7 +1,7 @@
package com.looker.droidify.ui.fragments package com.looker.droidify.ui.fragments
import android.view.ViewGroup import android.view.ViewGroup
import androidx.appcompat.widget.LinearLayoutCompat import android.widget.LinearLayout
import com.google.android.material.circularreveal.CircularRevealFrameLayout import com.google.android.material.circularreveal.CircularRevealFrameLayout
import com.looker.droidify.BuildConfig import com.looker.droidify.BuildConfig
import com.looker.droidify.R import com.looker.droidify.R
@ -10,8 +10,8 @@ import com.looker.droidify.content.Preferences
class PrefsOtherFragment : PrefsNavFragmentX() { class PrefsOtherFragment : PrefsNavFragmentX() {
override fun setupPrefs(scrollLayout: CircularRevealFrameLayout) { override fun setupPrefs(scrollLayout: CircularRevealFrameLayout) {
val preferences = LinearLayoutCompat(scrollLayout.context) val preferences = LinearLayout(scrollLayout.context)
preferences.orientation = LinearLayoutCompat.VERTICAL preferences.orientation = LinearLayout.VERTICAL
scrollLayout.addView( scrollLayout.addView(
preferences, preferences,
ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT,

View File

@ -1,7 +1,7 @@
package com.looker.droidify.ui.fragments package com.looker.droidify.ui.fragments
import android.view.ViewGroup import android.view.ViewGroup
import androidx.appcompat.widget.LinearLayoutCompat import android.widget.LinearLayout
import com.google.android.material.circularreveal.CircularRevealFrameLayout import com.google.android.material.circularreveal.CircularRevealFrameLayout
import com.looker.droidify.R import com.looker.droidify.R
import com.looker.droidify.content.Preferences import com.looker.droidify.content.Preferences
@ -9,8 +9,8 @@ import com.looker.droidify.content.Preferences
class PrefsUpdatesFragment : PrefsNavFragmentX() { class PrefsUpdatesFragment : PrefsNavFragmentX() {
override fun setupPrefs(scrollLayout: CircularRevealFrameLayout) { override fun setupPrefs(scrollLayout: CircularRevealFrameLayout) {
val preferences = LinearLayoutCompat(scrollLayout.context) val preferences = LinearLayout(scrollLayout.context)
preferences.orientation = LinearLayoutCompat.VERTICAL preferences.orientation = LinearLayout.VERTICAL
scrollLayout.addView( scrollLayout.addView(
preferences, preferences,
ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT,

View File

@ -1,7 +1,7 @@
package com.looker.droidify.ui.fragments package com.looker.droidify.ui.fragments
import android.view.ViewGroup import android.view.ViewGroup
import androidx.appcompat.widget.LinearLayoutCompat import android.widget.LinearLayout
import com.google.android.material.circularreveal.CircularRevealFrameLayout import com.google.android.material.circularreveal.CircularRevealFrameLayout
import com.looker.droidify.R import com.looker.droidify.R
import com.looker.droidify.content.Preferences import com.looker.droidify.content.Preferences
@ -12,8 +12,8 @@ import com.looker.droidify.utility.Utils.translateLocale
class PrefsUserFragment : PrefsNavFragmentX() { class PrefsUserFragment : PrefsNavFragmentX() {
override fun setupPrefs(scrollLayout: CircularRevealFrameLayout) { override fun setupPrefs(scrollLayout: CircularRevealFrameLayout) {
val preferences = LinearLayoutCompat(scrollLayout.context) val preferences = LinearLayout(scrollLayout.context)
preferences.orientation = LinearLayoutCompat.VERTICAL preferences.orientation = LinearLayout.VERTICAL
scrollLayout.addView( scrollLayout.addView(
preferences, preferences,
ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT,

View File

@ -26,7 +26,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="match_parent">
<androidx.appcompat.widget.LinearLayoutCompat <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:nestedScrollingEnabled="true" android:nestedScrollingEnabled="true"
@ -52,7 +52,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="0dp" android:layout_height="0dp"
android:layout_weight="1" /> android:layout_weight="1" />
</androidx.appcompat.widget.LinearLayoutCompat> </LinearLayout>
</com.google.android.material.circularreveal.CircularRevealFrameLayout> </com.google.android.material.circularreveal.CircularRevealFrameLayout>
</layout> </layout>

View File

@ -22,7 +22,7 @@
</data> </data>
<androidx.appcompat.widget.LinearLayoutCompat <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="vertical"> android:orientation="vertical">
@ -37,7 +37,7 @@
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"> app:layout_constraintTop_toTopOf="parent">
<androidx.appcompat.widget.AppCompatButton <com.google.android.material.button.MaterialButton
android:id="@+id/buttonUpdated" android:id="@+id/buttonUpdated"
style="@style/Widget.Material3.Button.UnelevatedButton" style="@style/Widget.Material3.Button.UnelevatedButton"
android:layout_width="wrap_content" android:layout_width="wrap_content"
@ -114,6 +114,6 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="0dp" android:layout_height="0dp"
android:layout_weight="1" /> android:layout_weight="1" />
</androidx.appcompat.widget.LinearLayoutCompat> </LinearLayout>
</layout> </layout>

View File

@ -22,7 +22,7 @@
</data> </data>
<androidx.appcompat.widget.LinearLayoutCompat <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="vertical"> android:orientation="vertical">
@ -81,6 +81,6 @@
android:layout_weight="1" android:layout_weight="1"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintTop_toBottomOf="@id/modeBar" /> app:layout_constraintTop_toBottomOf="@id/modeBar" />
</androidx.appcompat.widget.LinearLayoutCompat> </LinearLayout>
</layout> </layout>

View File

@ -25,7 +25,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="match_parent">
<androidx.appcompat.widget.LinearLayoutCompat <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="vertical"> android:orientation="vertical">
@ -45,7 +45,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="0dp" android:layout_height="0dp"
android:layout_weight="1" /> android:layout_weight="1" />
</androidx.appcompat.widget.LinearLayoutCompat> </LinearLayout>
</com.google.android.material.circularreveal.CircularRevealFrameLayout> </com.google.android.material.circularreveal.CircularRevealFrameLayout>
</layout> </layout>

View File

@ -12,7 +12,7 @@
android:paddingTop="12dp" android:paddingTop="12dp"
android:paddingBottom="4dp"> android:paddingBottom="4dp">
<androidx.appcompat.widget.LinearLayoutCompat <LinearLayout
android:id="@+id/header_info" android:id="@+id/header_info"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
@ -24,7 +24,7 @@
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"> app:layout_constraintTop_toTopOf="parent">
<androidx.appcompat.widget.LinearLayoutCompat <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginBottom="8dp" android:layout_marginBottom="8dp"
@ -38,7 +38,7 @@
app:shapeAppearanceOverlay="@style/Shape.Medium" app:shapeAppearanceOverlay="@style/Shape.Medium"
tools:ignore="ContentDescription" /> tools:ignore="ContentDescription" />
<androidx.appcompat.widget.LinearLayoutCompat <LinearLayout
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="@dimen/text_margin" android:layout_marginStart="@dimen/text_margin"
@ -59,11 +59,11 @@
android:singleLine="true" android:singleLine="true"
android:textAppearance="?textAppearanceBody2" android:textAppearance="?textAppearanceBody2"
android:textColor="?android:attr/textColorSecondary" /> android:textColor="?android:attr/textColorSecondary" />
</androidx.appcompat.widget.LinearLayoutCompat> </LinearLayout>
</androidx.appcompat.widget.LinearLayoutCompat> </LinearLayout>
<androidx.appcompat.widget.LinearLayoutCompat <LinearLayout
android:id="@+id/release_info" android:id="@+id/release_info"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
@ -74,7 +74,7 @@
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/header_info"> app:layout_constraintTop_toBottomOf="@id/header_info">
<androidx.appcompat.widget.LinearLayoutCompat <LinearLayout
android:id="@+id/sdk_block" android:id="@+id/sdk_block"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
@ -97,7 +97,7 @@
android:ellipsize="marquee" android:ellipsize="marquee"
android:singleLine="true" android:singleLine="true"
android:textSize="16sp" /> android:textSize="16sp" />
</androidx.appcompat.widget.LinearLayoutCompat> </LinearLayout>
<com.google.android.material.divider.MaterialDivider <com.google.android.material.divider.MaterialDivider
android:id="@+id/divider1" android:id="@+id/divider1"
@ -105,7 +105,7 @@
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_marginVertical="12dp" /> android:layout_marginVertical="12dp" />
<androidx.appcompat.widget.LinearLayoutCompat <LinearLayout
android:id="@+id/version_block" android:id="@+id/version_block"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
@ -128,7 +128,7 @@
android:ellipsize="marquee" android:ellipsize="marquee"
android:singleLine="true" android:singleLine="true"
android:textSize="16sp" /> android:textSize="16sp" />
</androidx.appcompat.widget.LinearLayoutCompat> </LinearLayout>
<com.google.android.material.divider.MaterialDivider <com.google.android.material.divider.MaterialDivider
android:id="@+id/divider2" android:id="@+id/divider2"
@ -136,7 +136,7 @@
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_marginVertical="12dp" /> android:layout_marginVertical="12dp" />
<androidx.appcompat.widget.LinearLayoutCompat <LinearLayout
android:id="@+id/size_block" android:id="@+id/size_block"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
@ -159,7 +159,7 @@
android:ellipsize="marquee" android:ellipsize="marquee"
android:singleLine="true" android:singleLine="true"
android:textSize="16sp" /> android:textSize="16sp" />
</androidx.appcompat.widget.LinearLayoutCompat> </LinearLayout>
<com.google.android.material.divider.MaterialDivider <com.google.android.material.divider.MaterialDivider
android:id="@+id/divider3" android:id="@+id/divider3"
@ -175,7 +175,7 @@
android:layout_margin="4dp" android:layout_margin="4dp"
android:layout_weight="1"> android:layout_weight="1">
<androidx.appcompat.widget.LinearLayoutCompat <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:gravity="center" android:gravity="center"
@ -199,12 +199,12 @@
android:ellipsize="marquee" android:ellipsize="marquee"
android:singleLine="true" android:singleLine="true"
android:textSize="12sp" /> android:textSize="12sp" />
</androidx.appcompat.widget.LinearLayoutCompat> </LinearLayout>
</com.google.android.material.card.MaterialCardView> </com.google.android.material.card.MaterialCardView>
</androidx.appcompat.widget.LinearLayoutCompat> </LinearLayout>
</androidx.appcompat.widget.LinearLayoutCompat> </LinearLayout>
<androidx.appcompat.widget.LinearLayoutCompat <LinearLayout
android:id="@+id/status_layout" android:id="@+id/status_layout"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
@ -232,7 +232,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center_vertical" /> android:layout_gravity="center_vertical" />
</androidx.appcompat.widget.LinearLayoutCompat> </LinearLayout>
<com.google.android.material.button.MaterialButton <com.google.android.material.button.MaterialButton
android:id="@+id/action" android:id="@+id/action"

View File

@ -6,7 +6,7 @@
</data> </data>
<androidx.appcompat.widget.LinearLayoutCompat <LinearLayout
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:background="?android:attr/selectableItemBackground"
@ -23,7 +23,7 @@
android:tintMode="src_in" android:tintMode="src_in"
tools:ignore="ContentDescription" /> tools:ignore="ContentDescription" />
<androidx.appcompat.widget.LinearLayoutCompat <LinearLayout
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"
@ -44,7 +44,7 @@
android:singleLine="true" android:singleLine="true"
android:textSize="14sp" /> android:textSize="14sp" />
</androidx.appcompat.widget.LinearLayoutCompat> </LinearLayout>
</androidx.appcompat.widget.LinearLayoutCompat> </LinearLayout>
</layout> </layout>

View File

@ -6,7 +6,7 @@
</data> </data>
<androidx.appcompat.widget.LinearLayoutCompat <LinearLayout
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:background="?android:attr/selectableItemBackground"
@ -34,5 +34,5 @@
android:paddingBottom="16dp" android:paddingBottom="16dp"
android:textSize="16sp" /> android:textSize="16sp" />
</androidx.appcompat.widget.LinearLayoutCompat> </LinearLayout>
</layout> </layout>

View File

@ -5,13 +5,13 @@
</data> </data>
<androidx.appcompat.widget.LinearLayoutCompat <LinearLayout
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:background="?android:attr/selectableItemBackground"
android:orientation="horizontal"> android:orientation="horizontal">
<androidx.appcompat.widget.LinearLayoutCompat <LinearLayout
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"
@ -31,7 +31,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:textSize="14sp" /> android:textSize="14sp" />
</androidx.appcompat.widget.LinearLayoutCompat> </LinearLayout>
<com.google.android.material.switchmaterial.SwitchMaterial <com.google.android.material.switchmaterial.SwitchMaterial
android:id="@+id/check" android:id="@+id/check"
@ -41,5 +41,5 @@
android:clickable="false" android:clickable="false"
android:paddingHorizontal="12dp" android:paddingHorizontal="12dp"
android:visibility="gone" /> android:visibility="gone" />
</androidx.appcompat.widget.LinearLayoutCompat> </LinearLayout>
</layout> </layout>

View File

@ -11,7 +11,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="72dp"> android:layout_height="72dp">
<androidx.appcompat.widget.LinearLayoutCompat <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:gravity="center_vertical" android:gravity="center_vertical"
@ -25,14 +25,14 @@
app:shapeAppearanceOverlay="@style/Shape.Small" app:shapeAppearanceOverlay="@style/Shape.Small"
tools:ignore="ContentDescription" /> tools:ignore="ContentDescription" />
<androidx.appcompat.widget.LinearLayoutCompat <LinearLayout
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_marginStart="14dp" android:layout_marginStart="14dp"
android:orientation="vertical"> android:orientation="vertical">
<androidx.appcompat.widget.LinearLayoutCompat <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:gravity="center_vertical" android:gravity="center_vertical"
@ -54,7 +54,7 @@
android:singleLine="true" android:singleLine="true"
android:textAppearance="?textAppearanceLabelMedium" /> android:textAppearance="?textAppearanceLabelMedium" />
</androidx.appcompat.widget.LinearLayoutCompat> </LinearLayout>
<com.google.android.material.textview.MaterialTextView <com.google.android.material.textview.MaterialTextView
android:id="@+id/summary" android:id="@+id/summary"
@ -63,7 +63,7 @@
android:singleLine="true" android:singleLine="true"
android:textAppearance="?textAppearanceBody2" android:textAppearance="?textAppearanceBody2"
android:textColor="?android:attr/textColorSecondary" /> android:textColor="?android:attr/textColorSecondary" />
</androidx.appcompat.widget.LinearLayoutCompat> </LinearLayout>
</androidx.appcompat.widget.LinearLayoutCompat> </LinearLayout>
</com.google.android.material.card.MaterialCardView> </com.google.android.material.card.MaterialCardView>
</layout> </layout>

View File

@ -11,7 +11,7 @@
android:layout_marginVertical="@dimen/shape_margin_small" android:layout_marginVertical="@dimen/shape_margin_small"
android:layout_height="wrap_content"> android:layout_height="wrap_content">
<androidx.appcompat.widget.LinearLayoutCompat <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:baselineAligned="false" android:baselineAligned="false"
@ -19,13 +19,13 @@
android:orientation="vertical" android:orientation="vertical"
android:padding="16dp"> android:padding="16dp">
<androidx.appcompat.widget.LinearLayoutCompat <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:gravity="bottom" android:gravity="bottom"
android:orientation="horizontal"> android:orientation="horizontal">
<androidx.appcompat.widget.LinearLayoutCompat <LinearLayout
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"
@ -49,7 +49,7 @@
android:textAllCaps="true" android:textAllCaps="true"
android:textAppearance="?textAppearanceLabelMedium" /> android:textAppearance="?textAppearanceLabelMedium" />
</androidx.appcompat.widget.LinearLayoutCompat> </LinearLayout>
<com.google.android.material.textview.MaterialTextView <com.google.android.material.textview.MaterialTextView
android:id="@+id/added" android:id="@+id/added"
@ -59,9 +59,9 @@
android:singleLine="true" android:singleLine="true"
android:textSize="14sp" /> android:textSize="14sp" />
</androidx.appcompat.widget.LinearLayoutCompat> </LinearLayout>
<androidx.appcompat.widget.LinearLayoutCompat <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:orientation="horizontal">
@ -84,7 +84,7 @@
android:textColor="?android:attr/textColorSecondary" android:textColor="?android:attr/textColorSecondary"
android:textSize="14sp" /> android:textSize="14sp" />
</androidx.appcompat.widget.LinearLayoutCompat> </LinearLayout>
<com.google.android.material.textview.MaterialTextView <com.google.android.material.textview.MaterialTextView
android:id="@+id/signature" android:id="@+id/signature"
@ -102,7 +102,7 @@
android:textColor="?android:attr/textColorSecondary" android:textColor="?android:attr/textColorSecondary"
android:textSize="14sp" /> android:textSize="14sp" />
</androidx.appcompat.widget.LinearLayoutCompat> </LinearLayout>
</com.google.android.material.card.MaterialCardView> </com.google.android.material.card.MaterialCardView>
</layout> </layout>

View File

@ -6,7 +6,7 @@
</data> </data>
<androidx.appcompat.widget.LinearLayoutCompat <LinearLayout
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:background="?android:attr/selectableItemBackground"
@ -28,5 +28,5 @@
android:src="@drawable/ic_arrow_down" android:src="@drawable/ic_arrow_down"
tools:ignore="ContentDescription" /> tools:ignore="ContentDescription" />
</androidx.appcompat.widget.LinearLayoutCompat> </LinearLayout>
</layout> </layout>

View File

@ -17,7 +17,7 @@
android:layout_height="match_parent" android:layout_height="match_parent"
android:fillViewport="true"> android:fillViewport="true">
<androidx.appcompat.widget.LinearLayoutCompat <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:orientation="vertical"
@ -102,7 +102,7 @@
android:backgroundTint="?colorPrimary" android:backgroundTint="?colorPrimary"
android:text="@string/save" android:text="@string/save"
android:textColor="?colorSurface" /> android:textColor="?colorSurface" />
</androidx.appcompat.widget.LinearLayoutCompat> </LinearLayout>
</androidx.core.widget.NestedScrollView> </androidx.core.widget.NestedScrollView>
</FrameLayout> </FrameLayout>
</layout> </layout>

View File

@ -22,12 +22,12 @@
android:layout_height="match_parent" android:layout_height="match_parent"
android:padding="12dp"> android:padding="12dp">
<androidx.appcompat.widget.LinearLayoutCompat <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="vertical"> android:orientation="vertical">
<androidx.appcompat.widget.LinearLayoutCompat <LinearLayout
android:id="@+id/address_block" android:id="@+id/address_block"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
@ -48,9 +48,9 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="4dp" android:layout_marginTop="4dp"
android:textSize="16sp" /> android:textSize="16sp" />
</androidx.appcompat.widget.LinearLayoutCompat> </LinearLayout>
<androidx.appcompat.widget.LinearLayoutCompat <LinearLayout
android:id="@+id/name_block" android:id="@+id/name_block"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
@ -71,10 +71,10 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="4dp" android:layout_marginTop="4dp"
android:textSize="16sp" /> android:textSize="16sp" />
</androidx.appcompat.widget.LinearLayoutCompat> </LinearLayout>
<androidx.appcompat.widget.LinearLayoutCompat <LinearLayout
android:id="@+id/description_block" android:id="@+id/description_block"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
@ -95,9 +95,9 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="4dp" android:layout_marginTop="4dp"
android:textSize="16sp" /> android:textSize="16sp" />
</androidx.appcompat.widget.LinearLayoutCompat> </LinearLayout>
<androidx.appcompat.widget.LinearLayoutCompat <LinearLayout
android:id="@+id/updated_block" android:id="@+id/updated_block"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
@ -118,9 +118,9 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="4dp" android:layout_marginTop="4dp"
android:textSize="16sp" /> android:textSize="16sp" />
</androidx.appcompat.widget.LinearLayoutCompat> </LinearLayout>
<androidx.appcompat.widget.LinearLayoutCompat <LinearLayout
android:id="@+id/apps_block" android:id="@+id/apps_block"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
@ -141,10 +141,10 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="4dp" android:layout_marginTop="4dp"
android:textSize="16sp" /> android:textSize="16sp" />
</androidx.appcompat.widget.LinearLayoutCompat> </LinearLayout>
<androidx.appcompat.widget.LinearLayoutCompat <LinearLayout
android:id="@+id/fingerprint_block" android:id="@+id/fingerprint_block"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
@ -165,9 +165,9 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="4dp" android:layout_marginTop="4dp"
android:textSize="16sp" /> android:textSize="16sp" />
</androidx.appcompat.widget.LinearLayoutCompat> </LinearLayout>
<androidx.appcompat.widget.LinearLayoutCompat <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content"> android:layout_height="wrap_content">
@ -192,8 +192,8 @@
android:backgroundTint="?colorPrimary" android:backgroundTint="?colorPrimary"
android:text="@string/edit_repository" android:text="@string/edit_repository"
android:textColor="?colorSurface" /> android:textColor="?colorSurface" />
</androidx.appcompat.widget.LinearLayoutCompat> </LinearLayout>
</androidx.appcompat.widget.LinearLayoutCompat> </LinearLayout>
</com.google.android.material.circularreveal.CircularRevealFrameLayout> </com.google.android.material.circularreveal.CircularRevealFrameLayout>
</androidx.core.widget.NestedScrollView> </androidx.core.widget.NestedScrollView>
</FrameLayout> </FrameLayout>

View File

@ -6,7 +6,7 @@
</data> </data>
<androidx.appcompat.widget.LinearLayoutCompat <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:orientation="vertical">
@ -22,7 +22,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="0dp"> android:layout_height="0dp">
<androidx.appcompat.widget.LinearLayoutCompat <LinearLayout
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"
@ -50,9 +50,9 @@
android:src="@drawable/ic_arrow_down" android:src="@drawable/ic_arrow_down"
tools:ignore="ContentDescription" /> tools:ignore="ContentDescription" />
</androidx.appcompat.widget.LinearLayoutCompat> </LinearLayout>
</com.google.android.material.circularreveal.CircularRevealFrameLayout> </com.google.android.material.circularreveal.CircularRevealFrameLayout>
</androidx.appcompat.widget.LinearLayoutCompat> </LinearLayout>
</layout> </layout>

View File

@ -5,7 +5,7 @@
</data> </data>
<androidx.appcompat.widget.LinearLayoutCompat <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:orientation="vertical"
@ -25,5 +25,5 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="4dp" android:layout_marginTop="4dp"
android:textSize="16sp" /> android:textSize="16sp" />
</androidx.appcompat.widget.LinearLayoutCompat> </LinearLayout>
</layout> </layout>