Skip to content

Instantly share code, notes, and snippets.

@jedsada-gh
Last active January 17, 2021 06:00
Show Gist options
  • Save jedsada-gh/d53919f35534b4b45a915c8d2f85e71b to your computer and use it in GitHub Desktop.
Save jedsada-gh/d53919f35534b4b45a915c8d2f85e71b to your computer and use it in GitHub Desktop.
webview-layout
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<androidx.cardview.widget.CardView
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:orientation="vertical"
app:cardCornerRadius="0dp"
app:cardElevation="3dp">
<androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar"
style="@style/IDolsToolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/colorPrimary"
app:contentInsetStartWithNavigation="0dp"
app:navigationIcon="@drawable/ic_arrow_back"
app:titleTextColor="@android:color/black"
tools:title="Title" />
</androidx.cardview.widget.CardView>
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<WebView
android:id="@+id/webView"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<include layout="@layout/full_loading" />
</FrameLayout>
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment