Android 11.0 修复Settings→WIFI→添加网络→扫码时相机界面成像压缩

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

diff --git a/res/layout/wifi_dpp_qrcode_scanner_fragment.xml b/res/layout/wifi_dpp_qrcode_scanner_fragment.xml
index 01b9e34..f69a019 100644
--- a/res/layout/wifi_dpp_qrcode_scanner_fragment.xml
+++ b/res/layout/wifi_dpp_qrcode_scanner_fragment.xml
@@ -44,17 +44,17 @@
                 style="?android:attr/progressBarStyleHorizontal"/>
 
             <FrameLayout
-                android:layout_width="wrap_content"
-                android:layout_height="wrap_content"
+                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="@dimen/qrcode_preview_size"/>
+                    android:layout_height="1200dp"/>
                 <com.android.settings.wifi.qrcode.QrDecorateView
                     android:id="@+id/decorate_view"
                     android:layout_width="match_parent"
-                    android:layout_height="@dimen/qrcode_preview_size"/>
+                    android:layout_height="1100dp"/>
             </FrameLayout>

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

猜你喜欢

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