WebViewのコンテンツと重なって私の問題は、アクションバーがここのような任意のWebViewのコンテンツをオーバーラップしていることである:がInAppブラウザ:アクションバーが
比較するには、それはInstagramのロゴと次のようになります。https://www.instagram.com/about/us/
をこれは、外部のWebViewコンテンツを開くために、私のInAppBrowser
の私activity_browser.xmlです:
<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout 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:id="@+id/main_content"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/white"
android:fitsSystemWindows="true"
tools:context=".InAppBrowser">
<android.support.design.widget.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@style/AppTheme.AppBarOverlay">
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="?attr/colorPrimaryDark"
app:popupTheme="@style/AppTheme.PopupOverlay" />
</android.support.design.widget.AppBarLayout>
<WebView
android:id="@+id/webView"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<ProgressBar
android:id="@+id/progressBar"
style="@style/Widget.AppCompat.ProgressBar.Horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="-7dp"
android:indeterminate="true"
android:visibility="gone"
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
</android.support.design.widget.CoordinatorLayout>
アクションバーがウェブビューと重なっているため、ウェブビューのコンテンツがアクションバーの開始位置から開始されているようです。
RelativeLayout
の中にAppBarLayout
,WebView
およびProgressBar
をラップしようとしましたが、これも機能しませんでした。
私は何か提案をいただきありがとうございます。