New feature “Text and reading options” for SetupWizard, Wallpaper, and Settings (5/n).
- Create the app grid preview layout xml.
1) To avoid being large patch size, the preview component will be separated into sub patches, this patch would be one layout of all previews.
2) The layout will be integrated with the TextReadingPreviewPreference and TextReadingPreferenceFragment in the next patches.
Bug: 211503117
Test: make
Change-Id: I5e9048ce4d6f07ac8c1a1bc77d19e6ceb536da49
diff --git a/res/layout/accessibility_text_reading_preview_app_grid.xml b/res/layout/accessibility_text_reading_preview_app_grid.xml
new file mode 100644
index 0000000..2b4a1f2
--- /dev/null
+++ b/res/layout/accessibility_text_reading_preview_app_grid.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2022 The Android Open Source 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.
+-->
+
+<com.android.settings.display.AppGridView
+ 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"
+ android:numColumns="4"
+ android:gravity="center"
+ android:nestedScrollingEnabled="true"
+ android:importantForAccessibility="noHideDescendants"
+ app:appCount="8"/>