Fix Magnification shortcut option content overlap with top and bottom dialog container
Problem: After SuW theme applied, the scrollview viewport seems can draw outside of bounds. Solution: Define whether a child is limited to draw inside of its bounds or not. Test: Run initBCTestEnv_S.sh and apply different color Bug: 187007290 Change-Id: Ie3a27616d7f30804c30e5101d2488216df516578
This commit is contained in:
@@ -15,28 +15,32 @@
|
|||||||
limitations under the License
|
limitations under the License
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<ScrollView
|
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
android:id="@+id/container_layout"
|
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="wrap_content"
|
||||||
android:scrollbarStyle="outsideOverlay">
|
android:clipChildren="true">
|
||||||
|
|
||||||
<LinearLayout
|
<ScrollView
|
||||||
|
android:id="@+id/container_layout"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="match_parent"
|
||||||
android:orientation="vertical"
|
android:scrollbarStyle="outsideOverlay">
|
||||||
android:padding="24dp">
|
|
||||||
|
|
||||||
<include android:id="@+id/software_shortcut"
|
<LinearLayout
|
||||||
layout="@layout/accessibility_edit_shortcut_component"
|
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginBottom="32dp" />
|
android:orientation="vertical"
|
||||||
|
android:padding="24dp">
|
||||||
|
|
||||||
<include android:id="@+id/hardware_shortcut"
|
<include android:id="@+id/software_shortcut"
|
||||||
layout="@layout/accessibility_edit_shortcut_component" />
|
layout="@layout/accessibility_edit_shortcut_component"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginBottom="32dp" />
|
||||||
|
|
||||||
</LinearLayout>
|
<include android:id="@+id/hardware_shortcut"
|
||||||
|
layout="@layout/accessibility_edit_shortcut_component" />
|
||||||
|
|
||||||
</ScrollView>
|
</LinearLayout>
|
||||||
|
</ScrollView>
|
||||||
|
</FrameLayout>
|
@@ -15,64 +15,69 @@
|
|||||||
limitations under the License
|
limitations under the License
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:id="@+id/container_layout"
|
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="wrap_content"
|
||||||
android:scrollbarStyle="outsideOverlay">
|
android:clipChildren="true">
|
||||||
|
|
||||||
<LinearLayout
|
<ScrollView
|
||||||
|
android:id="@+id/container_layout"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="match_parent"
|
||||||
android:orientation="vertical"
|
android:scrollbarStyle="outsideOverlay">
|
||||||
android:padding="24dp">
|
|
||||||
|
|
||||||
<include
|
|
||||||
android:id="@+id/software_shortcut"
|
|
||||||
layout="@layout/accessibility_edit_shortcut_component"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginBottom="32dp" />
|
|
||||||
|
|
||||||
<include
|
|
||||||
android:id="@+id/hardware_shortcut"
|
|
||||||
layout="@layout/accessibility_edit_shortcut_component"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginBottom="32dp" />
|
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/advanced_shortcut"
|
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:minHeight="?android:attr/listPreferredItemHeightSmall"
|
android:orientation="vertical"
|
||||||
android:orientation="horizontal">
|
android:padding="24dp">
|
||||||
|
|
||||||
<ImageView
|
<include
|
||||||
android:layout_width="wrap_content"
|
android:id="@+id/software_shortcut"
|
||||||
android:layout_height="wrap_content"
|
layout="@layout/accessibility_edit_shortcut_component"
|
||||||
android:layout_gravity="center"
|
|
||||||
android:contentDescription="@null"
|
|
||||||
android:scaleType="centerCrop"
|
|
||||||
android:src="@drawable/ic_keyboard_arrow_down" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="wrap_content"
|
||||||
android:gravity="center_vertical"
|
android:layout_marginBottom="32dp" />
|
||||||
android:paddingStart="12dp"
|
|
||||||
android:text="@string/accessibility_shortcut_edit_dialog_title_advance"
|
<include
|
||||||
android:textAppearance="?android:attr/textAppearanceListItem"
|
android:id="@+id/hardware_shortcut"
|
||||||
android:textColor="?android:attr/colorAccent"
|
layout="@layout/accessibility_edit_shortcut_component"
|
||||||
android:textSize="16sp" />
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginBottom="32dp" />
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:id="@+id/advanced_shortcut"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:minHeight="?android:attr/listPreferredItemHeightSmall"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="center"
|
||||||
|
android:contentDescription="@null"
|
||||||
|
android:scaleType="centerCrop"
|
||||||
|
android:src="@drawable/ic_keyboard_arrow_down" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
android:paddingStart="12dp"
|
||||||
|
android:text="@string/accessibility_shortcut_edit_dialog_title_advance"
|
||||||
|
android:textAppearance="?android:attr/textAppearanceListItem"
|
||||||
|
android:textColor="?android:attr/colorAccent"
|
||||||
|
android:textSize="16sp" />
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<include
|
||||||
|
android:id="@+id/triple_tap_shortcut"
|
||||||
|
layout="@layout/accessibility_edit_shortcut_component"
|
||||||
|
android:visibility="gone" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
</ScrollView>
|
||||||
<include
|
</FrameLayout>
|
||||||
android:id="@+id/triple_tap_shortcut"
|
|
||||||
layout="@layout/accessibility_edit_shortcut_component"
|
|
||||||
android:visibility="gone" />
|
|
||||||
|
|
||||||
</LinearLayout>
|
|
||||||
|
|
||||||
</ScrollView>
|
|
Reference in New Issue
Block a user