2020-04-05 13:15:03 +08:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout
|
|
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
|
android:id="@+id/background"
|
|
|
|
|
android:backgroundTint="@color/black"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.appbar.AppBarLayout
|
|
|
|
|
android:fitsSystemWindows="true"
|
|
|
|
|
android:id="@+id/appbar"
|
|
|
|
|
android:background="@color/transparent"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:stateListAnimator="@animator/appbar_elevation">
|
|
|
|
|
|
2020-08-15 22:05:07 +08:00
|
|
|
<com.huanchengfly.tieba.post.widgets.theme.TintToolbar
|
2020-04-05 13:15:03 +08:00
|
|
|
app:popupTheme="?attr/actionOverflowMenuStyle"
|
|
|
|
|
app:titleTextAppearance="@style/Toolbar.Title"
|
|
|
|
|
app:subtitleTextAppearance="@style/Toolbar.Subtitle"
|
|
|
|
|
android:id="@+id/toolbar"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="?attr/actionBarSize"
|
|
|
|
|
app:toolbarBackgroundTint="@color/transparent"
|
2020-08-20 15:50:42 +08:00
|
|
|
app:itemTint="@color/theme_color_toolbar_item_translucent_light"
|
|
|
|
|
app:secondaryItemTint="@color/theme_color_toolbar_item_secondary_translucent_light"
|
|
|
|
|
app:activeItemTint="@color/theme_color_toolbar_item_active_translucent_light"
|
2020-04-05 13:15:03 +08:00
|
|
|
app:title="@string/title_dialog_translucent_theme" />
|
|
|
|
|
|
|
|
|
|
</com.google.android.material.appbar.AppBarLayout>
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
app:layout_behavior="@string/appbar_scrolling_view_behavior"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:padding="16dp">
|
2020-08-15 22:05:07 +08:00
|
|
|
<com.huanchengfly.tieba.post.widgets.theme.TintMaterialButton
|
2020-04-05 13:15:03 +08:00
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
|
android:id="@+id/select_pic"
|
|
|
|
|
android:text="@string/title_select_pic"
|
2020-08-20 15:50:42 +08:00
|
|
|
app:buttonTextColor="@color/color_text_translucent_light"
|
2020-10-05 20:12:28 +08:00
|
|
|
style="@style/Widget.Button"
|
2020-04-05 13:15:03 +08:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content" />
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:visibility="gone"
|
|
|
|
|
android:id="@+id/select_color"
|
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
<TextView
|
2020-08-20 15:50:42 +08:00
|
|
|
android:textColor="@color/color_text_translucent_light"
|
2020-04-05 13:15:03 +08:00
|
|
|
android:text="@string/title_select_color"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content" />
|
|
|
|
|
|
2020-08-15 22:05:07 +08:00
|
|
|
<com.huanchengfly.tieba.post.widgets.theme.TintMaterialButton
|
2020-04-05 13:15:03 +08:00
|
|
|
android:id="@+id/custom_color"
|
|
|
|
|
android:text="@string/title_custom_color"
|
2020-08-20 15:50:42 +08:00
|
|
|
app:buttonTextColor="@color/color_text_translucent_light"
|
2020-10-05 20:12:28 +08:00
|
|
|
style="@style/Widget.Button"
|
2020-04-05 13:15:03 +08:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content" />
|
|
|
|
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
|
android:layout_marginTop="4dp"
|
|
|
|
|
android:id="@+id/select_color_recycler_view"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
|
android:textSize="14sp"
|
|
|
|
|
android:text="@string/title_translucent_theme_alpha"
|
2020-08-20 15:50:42 +08:00
|
|
|
android:textColor="@color/color_text_translucent_light"
|
2020-04-05 13:15:03 +08:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content" />
|
2020-08-15 22:05:07 +08:00
|
|
|
<com.huanchengfly.tieba.post.widgets.theme.TintSeekBar
|
2020-04-05 13:15:03 +08:00
|
|
|
android:id="@+id/alpha"
|
|
|
|
|
android:layout_marginTop="4dp"
|
|
|
|
|
android:progress="255"
|
|
|
|
|
android:max="255"
|
|
|
|
|
android:progressDrawable="@drawable/bg_seekbar_round"
|
|
|
|
|
app:progressTint="@color/default_color_primary"
|
|
|
|
|
app:progressBackgroundTint="@color/default_color_divider"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content" />
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
|
android:textSize="14sp"
|
|
|
|
|
android:text="@string/title_translucent_theme_blur"
|
2020-08-20 15:50:42 +08:00
|
|
|
android:textColor="@color/color_text_translucent_light"
|
2020-04-05 13:15:03 +08:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content" />
|
2020-08-15 22:05:07 +08:00
|
|
|
<com.huanchengfly.tieba.post.widgets.theme.TintSeekBar
|
2020-04-05 13:15:03 +08:00
|
|
|
android:id="@+id/blur"
|
|
|
|
|
android:layout_marginTop="4dp"
|
|
|
|
|
android:progress="0"
|
|
|
|
|
android:max="100"
|
|
|
|
|
android:progressDrawable="@drawable/bg_seekbar_round"
|
|
|
|
|
app:progressTint="@color/default_color_primary"
|
|
|
|
|
app:progressBackgroundTint="@color/default_color_divider"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_marginTop="12dp"
|
2020-08-20 15:50:42 +08:00
|
|
|
android:textColor="@color/color_text_translucent_light"
|
2020-04-05 13:15:03 +08:00
|
|
|
android:id="@+id/tip"
|
|
|
|
|
android:textSize="14sp"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<FrameLayout
|
|
|
|
|
android:id="@+id/progress"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent">
|
2020-08-15 22:05:07 +08:00
|
|
|
<com.huanchengfly.tieba.post.widgets.theme.TintProgressBar
|
2020-04-05 13:15:03 +08:00
|
|
|
android:indeterminate="true"
|
|
|
|
|
android:layout_gravity="center"
|
|
|
|
|
style="@style/Widget.AppCompat.ProgressBar"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content" />
|
|
|
|
|
</FrameLayout>
|
|
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|