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:
menghanli
2021-05-27 08:48:22 +08:00
committed by Menghan Li
parent 2bc0aa5537
commit ccc8a93c6c
2 changed files with 75 additions and 66 deletions

View File

@@ -15,8 +15,12 @@
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:layout_width="match_parent"
android:layout_height="wrap_content"
android:clipChildren="true">
<ScrollView
android:id="@+id/container_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
@@ -38,5 +42,5 @@
layout="@layout/accessibility_edit_shortcut_component" />
</LinearLayout>
</ScrollView>
</ScrollView>
</FrameLayout>

View File

@@ -15,7 +15,12 @@
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:layout_width="match_parent"
android:layout_height="wrap_content"
android:clipChildren="true">
<ScrollView
android:id="@+id/container_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
@@ -74,5 +79,5 @@
android:visibility="gone" />
</LinearLayout>
</ScrollView>
</ScrollView>
</FrameLayout>