2019-10-17 18:57:00 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2020-01-30 16:57:21 +01:00
|
|
|
<layout xmlns:android="http://schemas.android.com/apk/res/android">
|
2019-10-17 18:57:00 +02:00
|
|
|
|
|
|
|
<data>
|
|
|
|
|
2020-01-13 00:43:09 +08:00
|
|
|
<import type="com.topjohnwu.magisk.ui.theme.Theme" />
|
2019-11-22 19:29:53 +01:00
|
|
|
|
2019-10-17 18:57:00 +02:00
|
|
|
<variable
|
|
|
|
name="viewModel"
|
2020-01-13 00:43:09 +08:00
|
|
|
type="com.topjohnwu.magisk.ui.theme.ThemeViewModel" />
|
2019-10-17 18:57:00 +02:00
|
|
|
|
|
|
|
</data>
|
|
|
|
|
|
|
|
<androidx.core.widget.NestedScrollView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2019-11-22 19:29:53 +01:00
|
|
|
android:clipToPadding="false"
|
|
|
|
android:fillViewport="true"
|
|
|
|
android:paddingStart="@dimen/l1"
|
|
|
|
android:paddingTop="@{viewModel.insets.top + (int) @dimen/internal_action_bar_size + (int) @dimen/l1}"
|
|
|
|
android:paddingEnd="@dimen/l1"
|
|
|
|
android:paddingBottom="@{viewModel.insets.bottom + (int) @dimen/l1}">
|
2019-10-17 18:57:00 +02:00
|
|
|
|
2020-01-30 16:57:21 +01:00
|
|
|
<LinearLayout
|
2019-10-17 18:57:00 +02:00
|
|
|
android:layout_width="match_parent"
|
2019-11-22 19:29:53 +01:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:columnCount="2"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:useDefaultMargins="true">
|
|
|
|
|
2019-12-02 18:51:22 +01:00
|
|
|
<include
|
2019-11-22 19:29:53 +01:00
|
|
|
android:id="@+id/theme_card_dark"
|
2020-01-30 16:57:21 +01:00
|
|
|
item="@{viewModel.themeHeadline}"
|
2019-12-02 18:51:22 +01:00
|
|
|
layout="@layout/item_tappable_headline"
|
|
|
|
listener="@{viewModel}" />
|
2019-11-22 19:29:53 +01:00
|
|
|
|
2020-01-30 16:57:21 +01:00
|
|
|
<LinearLayout style="@style/W.Theme.Container">
|
|
|
|
|
|
|
|
<FrameLayout
|
|
|
|
android:id="@+id/theme_default"
|
|
|
|
style="@style/W.Theme.Left"
|
|
|
|
android:theme="@style/ThemeFoundationMD2.Piplup">
|
|
|
|
|
|
|
|
<include
|
|
|
|
layout="@layout/item_theme"
|
|
|
|
theme="@{Theme.Piplup}"
|
|
|
|
viewModel="@{viewModel}" />
|
|
|
|
|
|
|
|
</FrameLayout>
|
|
|
|
|
|
|
|
<FrameLayout
|
|
|
|
android:id="@+id/theme_amoled"
|
|
|
|
style="@style/W.Theme.Right"
|
|
|
|
android:theme="@style/ThemeFoundationMD2.Amoled">
|
|
|
|
|
|
|
|
<include
|
|
|
|
layout="@layout/item_theme"
|
|
|
|
theme="@{Theme.PiplupAmoled}"
|
|
|
|
viewModel="@{viewModel}" />
|
|
|
|
|
|
|
|
</FrameLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout style="@style/W.Theme.Container">
|
|
|
|
|
|
|
|
<FrameLayout
|
|
|
|
android:id="@+id/theme_rayquaza"
|
|
|
|
style="@style/W.Theme.Left"
|
|
|
|
android:theme="@style/ThemeFoundationMD2.Rayquaza">
|
|
|
|
|
|
|
|
<include
|
|
|
|
layout="@layout/item_theme"
|
|
|
|
theme="@{Theme.Rayquaza}"
|
|
|
|
viewModel="@{viewModel}" />
|
|
|
|
|
|
|
|
</FrameLayout>
|
|
|
|
|
|
|
|
<FrameLayout
|
|
|
|
android:id="@+id/theme_zapdos"
|
|
|
|
style="@style/W.Theme.Right"
|
|
|
|
android:theme="@style/ThemeFoundationMD2.Zapdos">
|
|
|
|
|
|
|
|
<include
|
|
|
|
layout="@layout/item_theme"
|
|
|
|
theme="@{Theme.Zapdos}"
|
|
|
|
viewModel="@{viewModel}" />
|
|
|
|
|
|
|
|
</FrameLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout style="@style/W.Theme.Container">
|
|
|
|
|
|
|
|
<FrameLayout
|
|
|
|
android:id="@+id/theme_charmeleon"
|
|
|
|
style="@style/W.Theme.Left"
|
|
|
|
android:theme="@style/ThemeFoundationMD2.Charmeleon">
|
|
|
|
|
|
|
|
<include
|
|
|
|
layout="@layout/item_theme"
|
|
|
|
theme="@{Theme.Charmeleon}"
|
|
|
|
viewModel="@{viewModel}" />
|
|
|
|
|
|
|
|
</FrameLayout>
|
|
|
|
|
|
|
|
<FrameLayout
|
|
|
|
android:id="@+id/theme_mew"
|
|
|
|
style="@style/W.Theme.Right"
|
|
|
|
android:theme="@style/ThemeFoundationMD2.Mew">
|
|
|
|
|
|
|
|
<include
|
|
|
|
layout="@layout/item_theme"
|
|
|
|
theme="@{Theme.Mew}"
|
|
|
|
viewModel="@{viewModel}" />
|
|
|
|
|
|
|
|
</FrameLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout style="@style/W.Theme.Container">
|
|
|
|
|
|
|
|
<FrameLayout
|
|
|
|
android:id="@+id/theme_salamence"
|
|
|
|
style="@style/W.Theme.Left"
|
|
|
|
android:theme="@style/ThemeFoundationMD2.Salamence">
|
|
|
|
|
|
|
|
<include
|
|
|
|
layout="@layout/item_theme"
|
|
|
|
theme="@{Theme.Salamence}"
|
|
|
|
viewModel="@{viewModel}" />
|
|
|
|
|
|
|
|
</FrameLayout>
|
|
|
|
|
|
|
|
<FrameLayout
|
|
|
|
android:id="@+id/theme_fraxure"
|
|
|
|
style="@style/W.Theme.Right"
|
|
|
|
android:theme="@style/ThemeFoundationMD2.Fraxure">
|
|
|
|
|
|
|
|
<include
|
|
|
|
layout="@layout/item_theme"
|
|
|
|
theme="@{Theme.Fraxure}"
|
|
|
|
viewModel="@{viewModel}" />
|
|
|
|
|
|
|
|
</FrameLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|
2019-10-17 18:57:00 +02:00
|
|
|
|
|
|
|
</androidx.core.widget.NestedScrollView>
|
|
|
|
|
2020-01-13 00:43:09 +08:00
|
|
|
</layout>
|