VancedManager/app/src/main/res/layout/view_preference_switch.xml

43 lines
1.9 KiB
XML
Raw Normal View History

2020-10-31 19:45:39 +00:00
<?xml version="1.0" encoding="utf-8"?>
2020-10-31 21:16:58 +00:00
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
2020-10-31 19:45:39 +00:00
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:layout_marginBottom="4dp"
android:paddingHorizontal="12dp">
<TextView
android:id="@+id/preference_switch_title"
style="@style/SettingsItemTitle"
app:layout_constrainedWidth="true"
app:layout_constraintBottom_toTopOf="@id/preference_switch_summary"
app:layout_constraintEnd_toStartOf="@id/preference_switch"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:text="Vanced Notifications" />
<TextView
android:id="@+id/preference_switch_summary"
style="@style/SettingsItemSummary"
android:layout_marginEnd="8dp"
app:layout_constrainedWidth="true"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@id/preference_switch"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/preference_switch_title"
tools:text="Receive push notifications when an update for vanced is released" />
<com.google.android.material.switchmaterial.SwitchMaterial
android:id="@+id/preference_switch"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:clickable="false"
android:theme="@style/PreferenceSwitch"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
2020-10-31 21:16:58 +00:00
app:layout_constraintTop_toTopOf="parent"
tools:checked="true" />
2020-10-31 19:45:39 +00:00
</androidx.constraintlayout.widget.ConstraintLayout>