Merge pull request #4201 from koh6uawi/scroll_select_font_size
Make the font size selection dialog scrollable
This commit is contained in:
commit
37dbaadbcc
1
changelog.d/4201.bugfix
Normal file
1
changelog.d/4201.bugfix
Normal file
@ -0,0 +1 @@
|
|||||||
|
Make the font size selection dialog scrollable
|
@ -1,83 +1,87 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:id="@+id/text_selection_group_view"
|
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent">
|
||||||
android:orientation="vertical"
|
<LinearLayout
|
||||||
android:paddingStart="?dialogPreferredPadding"
|
android:id="@+id/text_selection_group_view"
|
||||||
android:paddingTop="12dp"
|
|
||||||
android:paddingEnd="?dialogPreferredPadding"
|
|
||||||
tools:ignore="SpUsage">
|
|
||||||
|
|
||||||
<!-- keep the sizes in dp -->
|
|
||||||
<CheckedTextView
|
|
||||||
android:id="@+id/text_selection_tiny_text_view"
|
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_margin="10dp"
|
android:orientation="vertical"
|
||||||
android:checkMark="?android:attr/listChoiceIndicatorSingle"
|
android:paddingStart="?dialogPreferredPadding"
|
||||||
android:gravity="center_vertical"
|
android:paddingTop="12dp"
|
||||||
android:text="@string/tiny"
|
android:paddingEnd="?dialogPreferredPadding"
|
||||||
android:textSize="10dp" />
|
tools:ignore="SpUsage">
|
||||||
|
|
||||||
<CheckedTextView
|
<!-- keep the sizes in dp -->
|
||||||
android:id="@+id/text_selection_small_text_view"
|
<CheckedTextView
|
||||||
android:layout_width="match_parent"
|
android:id="@+id/text_selection_tiny_text_view"
|
||||||
android:layout_height="wrap_content"
|
android:layout_width="match_parent"
|
||||||
android:layout_margin="10dp"
|
android:layout_height="wrap_content"
|
||||||
android:checkMark="?android:attr/listChoiceIndicatorSingle"
|
android:layout_margin="10dp"
|
||||||
android:gravity="center_vertical"
|
android:checkMark="?android:attr/listChoiceIndicatorSingle"
|
||||||
android:text="@string/small"
|
android:gravity="center_vertical"
|
||||||
android:textSize="12dp" />
|
android:text="@string/tiny"
|
||||||
|
android:textSize="10dp" />
|
||||||
|
|
||||||
<CheckedTextView
|
<CheckedTextView
|
||||||
android:id="@+id/text_selection_normal_text_view"
|
android:id="@+id/text_selection_small_text_view"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_margin="10dp"
|
android:layout_margin="10dp"
|
||||||
android:checkMark="?android:attr/listChoiceIndicatorSingle"
|
android:checkMark="?android:attr/listChoiceIndicatorSingle"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:text="@string/normal"
|
android:text="@string/small"
|
||||||
android:textSize="14dp" />
|
android:textSize="12dp" />
|
||||||
|
|
||||||
<CheckedTextView
|
<CheckedTextView
|
||||||
android:id="@+id/text_selection_large_text_view"
|
android:id="@+id/text_selection_normal_text_view"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_margin="10dp"
|
android:layout_margin="10dp"
|
||||||
android:checkMark="?android:attr/listChoiceIndicatorSingle"
|
android:checkMark="?android:attr/listChoiceIndicatorSingle"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:text="@string/large"
|
android:text="@string/normal"
|
||||||
android:textSize="16dp" />
|
android:textSize="14dp" />
|
||||||
|
|
||||||
<CheckedTextView
|
<CheckedTextView
|
||||||
android:id="@+id/text_selection_larger_text_view"
|
android:id="@+id/text_selection_large_text_view"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_margin="10dp"
|
android:layout_margin="10dp"
|
||||||
android:checkMark="?android:attr/listChoiceIndicatorSingle"
|
android:checkMark="?android:attr/listChoiceIndicatorSingle"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:text="@string/larger"
|
android:text="@string/large"
|
||||||
android:textSize="18dp" />
|
android:textSize="16dp" />
|
||||||
|
|
||||||
<CheckedTextView
|
<CheckedTextView
|
||||||
android:id="@+id/text_selection_largest_text_view"
|
android:id="@+id/text_selection_larger_text_view"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_margin="10dp"
|
android:layout_margin="10dp"
|
||||||
android:checkMark="?android:attr/listChoiceIndicatorSingle"
|
android:checkMark="?android:attr/listChoiceIndicatorSingle"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:text="@string/largest"
|
android:text="@string/larger"
|
||||||
android:textSize="20dp" />
|
android:textSize="18dp" />
|
||||||
|
|
||||||
<CheckedTextView
|
<CheckedTextView
|
||||||
android:id="@+id/text_selection_huge_text_view"
|
android:id="@+id/text_selection_largest_text_view"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_margin="10dp"
|
android:layout_margin="10dp"
|
||||||
android:checkMark="?android:attr/listChoiceIndicatorSingle"
|
android:checkMark="?android:attr/listChoiceIndicatorSingle"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:text="@string/huge"
|
android:text="@string/largest"
|
||||||
android:textSize="22dp" />
|
android:textSize="20dp" />
|
||||||
</LinearLayout>
|
|
||||||
|
<CheckedTextView
|
||||||
|
android:id="@+id/text_selection_huge_text_view"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_margin="10dp"
|
||||||
|
android:checkMark="?android:attr/listChoiceIndicatorSingle"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
android:text="@string/huge"
|
||||||
|
android:textSize="22dp" />
|
||||||
|
</LinearLayout>
|
||||||
|
</ScrollView>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user