0
0
Fork 0
mirror of https://github.com/YTVanced/VancedManager synced 2024-11-26 13:12:59 +00:00

clickable boundary adjustments

This commit is contained in:
X1nto 2021-02-13 17:31:09 +04:00
parent 4efaaed304
commit 238943af62
4 changed files with 20 additions and 8 deletions

View file

@ -36,7 +36,7 @@ class MusicPreferencesDialog : BindingBottomSheetDialogFragment<DialogMusicPrefe
val musicVersionsConv = musicVersions.value?.value?.convertToAppVersions()
musicInstallTitle.text = getString(R.string.app_installation_preferences, getString(R.string.music))
musicVersion.text = getString(R.string.chosen_version, prefs.musicVersion?.formatVersion(requireActivity()))
openVersionSelector.setOnClickListener {
openVersionSelectorLayout.setOnClickListener {
dismiss()
showDialog(
AppVersionSelectorDialog.newInstance(

View file

@ -47,11 +47,11 @@ class VancedPreferencesDialog : BindingBottomSheetDialogFragment<DialogVancedPre
vancedTheme.text = getString(R.string.chosen_theme, installPrefs.theme?.convertToAppTheme(requireActivity()))
vancedVersion.text = getString(R.string.chosen_version, defPrefs.vancedVersion?.formatVersion(requireActivity()))
vancedLang.text = getString(R.string.chosen_lang, showLang)
openThemeSelector.setOnClickListener {
openThemeSelectorLayout.setOnClickListener {
dismiss()
showDialog(VancedThemeSelectorDialog())
}
openVersionSelector.setOnClickListener {
openVersionSelectorLayout.setOnClickListener {
dismiss()
showDialog(
AppVersionSelectorDialog.newInstance(
@ -60,7 +60,7 @@ class VancedPreferencesDialog : BindingBottomSheetDialogFragment<DialogVancedPre
)
)
}
openLanguageSelector.setOnClickListener {
openLanguageSelectorLayout.setOnClickListener {
dismiss()
showDialog(VancedLanguageSelectionDialog())
}

View file

@ -12,6 +12,7 @@
style="@style/BottomDialogCardTitle" />
<RelativeLayout
android:id="@+id/open_version_selector_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="12dp">
@ -23,7 +24,7 @@
android:layout_toStartOf="@id/open_version_selector"
style="@style/BottomDialogCardTextItem" />
<ImageButton
<ImageView
android:id="@+id/open_version_selector"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
@ -32,11 +33,14 @@
android:maxWidth="24dp"
android:maxHeight="24dp"
android:src="@drawable/ic_baseline_navigate_next_36" />
</RelativeLayout>
<com.vanced.manager.ui.core.ThemedMaterialButton
android:id="@+id/music_install"
android:text="@string/install"
style="@style/BottomDialogButtonStyle" />
</LinearLayout>
</com.google.android.material.card.MaterialCardView>

View file

@ -14,6 +14,7 @@
style="@style/BottomDialogCardTitle" />
<RelativeLayout
android:id="@+id/open_theme_selector_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="12dp">
@ -25,7 +26,7 @@
android:layout_toStartOf="@id/open_theme_selector"
style="@style/BottomDialogCardTextItem" />
<ImageButton
<ImageView
android:id="@+id/open_theme_selector"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
@ -34,9 +35,11 @@
android:maxWidth="24dp"
android:maxHeight="24dp"
android:src="@drawable/ic_baseline_navigate_next_36" />
</RelativeLayout>
<RelativeLayout
android:id="@+id/open_version_selector_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="12dp">
@ -48,7 +51,7 @@
android:layout_centerVertical="true"
android:layout_toStartOf="@id/open_version_selector" />
<ImageButton
<ImageView
android:id="@+id/open_version_selector"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
@ -57,9 +60,11 @@
android:maxWidth="24dp"
android:maxHeight="24dp"
android:src="@drawable/ic_baseline_navigate_next_36" />
</RelativeLayout>
<RelativeLayout
android:id="@+id/open_language_selector_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp">
@ -71,7 +76,7 @@
android:layout_centerVertical="true"
android:layout_toStartOf="@+id/open_language_selector" />
<ImageButton
<ImageView
android:id="@+id/open_language_selector"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
@ -80,11 +85,14 @@
android:maxWidth="24dp"
android:maxHeight="24dp"
android:src="@drawable/ic_baseline_navigate_next_36" />
</RelativeLayout>
<com.vanced.manager.ui.core.ThemedMaterialButton
android:id="@+id/vanced_install"
android:text="@string/install"
style="@style/BottomDialogButtonStyle" />
</LinearLayout>
</com.google.android.material.card.MaterialCardView>