瀏覽代碼

Adjust padding of web view sample dialog

Aidan Follestad 6 年之前
父節點
當前提交
450628dda7
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      sample/src/main/res/layout/custom_view_webview.xml

+ 2 - 2
sample/src/main/res/layout/custom_view_webview.xml

@@ -3,13 +3,13 @@
     xmlns:android="http://schemas.android.com/apk/res/android"
     android:layout_width="match_parent"
     android:layout_height="match_parent"
-    android:paddingLeft="16dp"
-    android:paddingRight="16dp"
+    android:padding="16dp"
     >
   <WebView
       android:id="@+id/web_view"
       android:layout_width="match_parent"
       android:layout_height="wrap_content"
+      android:clipToPadding="false"
       android:scrollbars="none"
       />
 </FrameLayout>