Android 11.0 修复Settings→wifi→添加网络→扫描二维码界面上下压缩

packages/apps/Settings / res/layout/wifi_dpp_qrcode_scanner_fragment.xml

<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/root"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <ScrollView
        android:layout_width="match_parent"
        android:layout_height="match_parent">

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

            <include layout="@layout/wifi_dpp_fragment_header"/>

            <ProgressBar
                android:id="@+id/indeterminate_bar"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:indeterminate="true"
                android:paddingStart="16dp"
                android:paddingEnd="16dp"
                android:layout_marginBottom="8dp"
                style="?android:attr/progressBarStyleHorizontal"/>

<!--            wangrui 更改扫码布局-->

            <FrameLayout
++                android:layout_width="match_parent"
++                android:layout_height="match_parent"
                android:clipChildren="true">
                <TextureView
                    android:id="@+id/preview_view"
                    android:layout_width="match_parent"
++                    android:layout_height="1200dp"/>
                <com.android.settings.wifi.qrcode.QrDecorateView
                    android:id="@+id/decorate_view"
                    android:layout_width="match_parent"
++                    android:layout_height="1100dp"/>
            </FrameLayout>

            <TextView
                android:id="@+id/error_message"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginTop="16dp"
                android:layout_marginStart="24dp"
                android:layout_marginEnd="24dp"
                android:textAlignment="center"
                android:textColor="?android:attr/colorError"
                android:visibility="invisible"/>

        </LinearLayout>

    </ScrollView>

</LinearLayout>

我是王睿丶,加入我的Q群:901440630,欢迎一起讨论安卓技术!

猜你喜欢

转载自blog.csdn.net/qq_27494201/article/details/124998268