Атрибут clipToPadding игнорируется android 5 (API 21) - PullRequest
1 голос
/ 22 января 2020

Атрибут clipToPadding работает на API 21? Как видно из приведенного ниже примера, это не так.

<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:clipToPadding="false"
    android:padding="24dp"
    android:scrollbarStyle="outsideOverlay">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical">

        <View
            android:id="@+id/content"
            android:layout_width="match_parent"
            android:layout_height="2000dp"
            android:background="#fee57f" />
    </LinearLayout>

</ScrollView>

enter image description here

...