156 lines
7.1 KiB
XML
156 lines
7.1 KiB
XML
<!--
|
|
Copyright (C) 2023 the risingOS Android Project
|
|
Copyright (C) 2025 the RisingOS Revived Android Project
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<androidx.core.widget.NestedScrollView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:fillViewport="false"
|
|
android:clipToPadding="false">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:paddingBottom="120dp">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="64dp"
|
|
android:layout_marginHorizontal="24dp"
|
|
android:background="@drawable/custom_preference_background"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:id="@+id/font_preview_text"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/font_preview_text"
|
|
android:textSize="20sp"
|
|
android:padding="24dp" />
|
|
|
|
<View
|
|
android:id="@+id/custom_font_divider"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:layout_marginHorizontal="16dp"
|
|
android:background="?android:attr/dividerHorizontal"
|
|
android:visibility="gone" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/custom_font_info_card"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:padding="16dp"
|
|
android:orientation="vertical"
|
|
android:visibility="gone">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:gravity="center_vertical">
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/custom_font"
|
|
android:textStyle="bold"
|
|
android:textSize="14sp" />
|
|
|
|
<TextView
|
|
android:id="@+id/custom_font_name_text"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="4dp"
|
|
android:textSize="12sp"
|
|
android:alpha="0.7" />
|
|
|
|
</LinearLayout>
|
|
|
|
<Button
|
|
android:id="@+id/reset_custom_font_button"
|
|
android:layout_width="48dp"
|
|
android:layout_height="48dp"
|
|
android:drawableStart="@drawable/ic_delete"
|
|
android:background="?android:attr/selectableItemBackgroundBorderless"
|
|
android:contentDescription="@string/reset_custom_font_content_desc"
|
|
style="@style/Widget.Material3.Button.IconButton" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/font_selector"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="24dp"
|
|
android:layout_marginHorizontal="24dp"
|
|
android:paddingVertical="6dp"
|
|
android:paddingHorizontal="12dp"
|
|
android:background="@drawable/custom_background"
|
|
android:text="@string/font_picker_select_font"
|
|
android:textSize="16sp"
|
|
android:drawableEnd="@drawable/ic_dropdown"
|
|
android:drawablePadding="8dp" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:layout_marginTop="32dp"
|
|
android:layout_marginHorizontal="24dp">
|
|
|
|
<View
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1" />
|
|
|
|
<com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton
|
|
android:id="@+id/apply_extended_fab"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/apply_button_text"
|
|
android:textAllCaps="false"
|
|
android:textColor="@color/settingslib_btn_colored_text_material"
|
|
android:theme="@style/Theme.CollapsingToolbar.Settings"
|
|
style="@style/op_control_text_style_h6"
|
|
app:backgroundTint="@color/settingslib_btn_colored_background_material"
|
|
app:iconTint="@color/settingslib_btn_colored_text_material"
|
|
app:fabSize="normal"
|
|
app:icon="@drawable/ic_check_24dp" />
|
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</androidx.core.widget.NestedScrollView>
|
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|