To move the preference to the upper layer, we extract all logics to its controller. We move all tests to the test files and add server tests to verify the behaviour of edit shortcut dialog. Bug: 182992338 Test: atest MagnificationModePreferenceControllerTest Change-Id: I34c4361e2e116a22c3e34bd35c8ac8cac752ab96
63 lines
2.6 KiB
XML
63 lines
2.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?><!--
|
|
Copyright (C) 2020 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
|
|
-->
|
|
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:id="@+id/container_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:scrollbarStyle="outsideOverlay">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:padding="24dp">
|
|
|
|
<ImageView
|
|
android:id="@+id/image"
|
|
android:layout_width="@dimen/accessibility_imageview_size"
|
|
android:layout_height="@dimen/accessibility_imageview_size"
|
|
android:layout_gravity="center_horizontal"
|
|
android:layout_marginBottom="@dimen/accessibility_textview_layout_margin_bottom"
|
|
android:scaleType="fitCenter"/>
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/accessibility_magnification_switch_shortcut_message"
|
|
android:textAppearance="?android:attr/textAppearanceListItemSecondary"
|
|
android:textColor="?android:attr/textColorSecondary"
|
|
android:layout_marginBottom="@dimen/accessibility_textview_layout_margin_bottom"/>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<Button
|
|
android:id="@+id/custom_positive_button"
|
|
style="@style/AccessibilityDialogButton"
|
|
android:gravity="center|end"
|
|
android:text="@string/accessibility_magnification_switch_shortcut_positive_button"/>
|
|
|
|
<Button
|
|
android:id="@+id/custom_negative_button"
|
|
style="@style/AccessibilityDialogButton"
|
|
android:gravity="center|end"
|
|
android:text="@string/accessibility_magnification_switch_shortcut_negative_button"/>
|
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</ScrollView> |