OSDN Git Service

Adjust landscape layout of QR code scanner/generator
authorJohnson Lu <johnsonlu@google.com>
Thu, 3 Jan 2019 03:41:26 +0000 (11:41 +0800)
committerJohnson Lu <johnsonlu@google.com>
Thu, 3 Jan 2019 03:41:26 +0000 (11:41 +0800)
Bug: 118794858
Test: RunSettingsRoboTests
Change-Id: Ifaef7c5fe02abbb377efeb0ab345976ab439aeb0

res/layout-land/wifi_dpp_qrcode_scanner_fragment.xml
res/layout/wifi_dpp_activity.xml
res/values/dimens.xml

index 4217867..21df686 100644 (file)
@@ -25,8 +25,8 @@
     <include layout="@layout/wifi_dpp_fragment_header"/>
 
     <com.android.settings.wifi.qrcode.QrPreviewLayout
-        android:layout_width="match_parent"
-        android:layout_height="match_parent"
+        android:layout_width="@dimen/qrcode_preview_size"
+        android:layout_height="@dimen/qrcode_preview_size"
         android:layout_gravity="center">
         <TextureView
             android:id="@+id/preview_view"
index cb82f66..48f2b65 100644 (file)
@@ -15,7 +15,7 @@
      limitations under the License.
 -->
 
-<LinearLayout
+<ScrollView
     xmlns:android="http://schemas.android.com/apk/res/android"
     android:id="@+id/root"
     android:layout_width="match_parent"
@@ -27,4 +27,4 @@
         android:layout_width="match_parent"
         android:layout_height="match_parent"/>
 
-</LinearLayout>
+</ScrollView>
index 0859d2c..383f564 100755 (executable)
 
     <!-- QR code picture size -->
     <dimen name="qrcode_size">264dp</dimen>
+    <dimen name="qrcode_preview_size">360dp</dimen>
 
 </resources>