- Updates each preview page to include a unique title
- Updated preview padding to closer match UX mocks and to look more
consistent across the 3 default previews.
- Uses categories to group the sliders separate from the toggles.
Includes titles for the categories so that these categories are
understandable for screen reader users.
- Updates the Message preview icons to use a black icon color
(the old gray color had a very low contrast against the icon bg)
Fix: 399173131
Test: atest com.android.settings.accessibility
Test: see screenshots in bug
Test: interacted with the previews using TalkBack; observed that
TalkBack still reads each preview's content description
Flag: EXEMPT low risk visual changes
Change-Id: Ied418adc66931b6665de9f1454d7ac1bdb4b0e87
64 lines
3.0 KiB
XML
64 lines
3.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright (C) 2016 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.
|
|
-->
|
|
<LinearLayout 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:orientation="vertical"
|
|
android:contentDescription="@string/preview_pager_message_title"
|
|
android:clipChildren="true">
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/preview_pager_message_title"
|
|
android:importantForAccessibility="noHideDescendants"
|
|
style="@style/AccessibilityTextReadingPreviewPageTitle" />
|
|
<androidx.core.widget.NestedScrollView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:importantForAccessibility="noHideDescendants"
|
|
android:fillViewport="true">
|
|
|
|
<view class="com.android.settings.TouchBlockingFrameLayout"
|
|
android:id="@+id/frame"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:paddingTop="@dimen/settingslib_expressive_space_extrasmall3"
|
|
android:paddingStart="@dimen/conversation_message_list_padding"
|
|
android:paddingEnd="@dimen/conversation_message_list_padding"
|
|
android:orientation="vertical">
|
|
|
|
<com.android.settings.display.ConversationMessageView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:incoming="true"
|
|
app:messageText="@string/accessibility_text_reading_conversation_message_1"
|
|
app:iconBackgroundColor="@color/message_icon_background_incoming" />
|
|
|
|
<com.android.settings.display.ConversationMessageView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:incoming="false"
|
|
app:messageText="@string/accessibility_text_reading_conversation_message_2"
|
|
app:iconBackgroundColor="@color/message_icon_background_outgoing" />
|
|
</LinearLayout>
|
|
</view>
|
|
</androidx.core.widget.NestedScrollView>
|
|
</LinearLayout> |