<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" style="@style/Theme_CustomProgressDialog" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/background" > <FrameLayout android:layout_width="match_parent" android:layout_height="0dp" android:layout_weight="1" android:orientation="vertical" > <WebView android:id="@+id/chatWebview" android:layout_width="match_parent" android:layout_height="match_parent" /> </FrameLayout> </LinearLayout>