私はアンドロイドが新しく、アプリケーションではナビゲーション引き出しアクティビティ(Materail Design)を使用しており、フラグメント内にウェブビューを持っています。ナビゲーションはwebviewを問題なくロードします。しかし、私は垂直にwebviewをスクロールすることはできません、私は水平に行うことができます。私はhorzontalスクロール上の垂直スクロールバーを見ることができますが、機能しません。ここで アンドロイドナビゲーション引き出し素材デザインウェブビューなしスクロール垂直
は断片XMLコード<FrameLayout 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:background="@color/colorDefaultGray"
tools:context="com.cell.cell.fragments.MainWebViewFragmant">
<WebView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/webViewMainWebview"
/>
<ProgressBar
style="?android:attr/progressBarStyleLarge"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/progressBar"
android:layout_gravity="center" />
</FrameLayout>
app_bar_main.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:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
tools:context="com.cell.cell.MainActivity">
<android.support.design.widget.AppBarLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
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/colorPrimary"
app:popupTheme="@style/AppTheme.PopupOverlay" />
<FrameLayout
android:id="@+id/fragment_container"
android:layout_width="match_parent"
android:layout_height="match_parent"></FrameLayout>
</android.support.design.widget.AppBarLayout>
<!--<include layout="@layout/content_main" />-->
</android.support.design.widget.CoordinatorLayout>
私は、このようなNestedWebViewとして、別の解決策を試してみましたNestedScrollview内のWebViewタグを入れてみましたが、運です。 、事前
は、その後キットカットのデバイスで、ステータスバーには、それはステータスが、それはロリポップのデバイス上で動作する方法をバー着色何が、これはデフォルトの動作ではありませんキットカットでAppBarLayoutタグ – user3421325
内で追加のYは非表示になります。 –
試しましたが、アプリケーションステータスバーが画面いっぱいになりました...フラグメントを表示できません – user3421325