Skip to content

Instantly share code, notes, and snippets.

@LuizGadao
Created October 27, 2015 13:52
Show Gist options
  • Save LuizGadao/85f89c9b7c01587b0ad3 to your computer and use it in GitHub Desktop.
Save LuizGadao/85f89c9b7c01587b0ad3 to your computer and use it in GitHub Desktop.
support layout for embend webview in Fragment
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:showIn="@layout/activity_main"
tools:context=".MainActivityFragment">
<WebView
android:layout_width="match_parent"
android:layout_height="188dp"
android:id="@+id/webView"
android:layout_gravity="center"
/>
<FrameLayout
android:id="@+id/customViewContainer"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="gone"
/>
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment