7
データが読み込まれた後、scrollviewがwebviewにスクロールしないようにするにはどうすればよいですか?
だから私は興味深い問題を抱えています。ビューを手動またはプログラムでスクロールしていませんが、内部のデータが読み込まれた後、WebViewが自動的にスクロールされます。 ビューページャーにフラグメントがあります。最初にページャーをロードすると、期待どおりに動作し、すべてが表示されます。しかし、「ページをめくる」と、データが読み込まれ、WebViewがページの最上部にポップアップし、その上のビューが非表示になるため、望ましくありません。 これが起こらないようにする方法を誰かが知っていますか? 私のレイアウトはそのように見えます: <?xml version="1.0" encoding="utf-8"?> <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@color/background" > <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" > <TextView android:id="@+id/article_title" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginRight="10dp" android:layout_marginLeft="10dp" android:layout_marginTop="10dp" android:layout_marginBottom="2dp" android:text="Some Title" android:textAppearance="?android:attr/textAppearanceLarge" android:textColor="@color/article_title" android:textStyle="bold" /> <LinearLayout android:id="@+id/LL_Seperator" android:layout_width="fill_parent" android:layout_height="1dp" android:layout_marginLeft="10dp" android:layout_marginRight="10dp" android:layout_marginTop="5dp" android:layout_marginBottom="5dp" android:background="@color/text" android:orientation="horizontal" > </LinearLayout> <WebView android:id="@+id/article_content" android:layout_width="match_parent" android:layout_marginRight="10dp" android:layout_marginLeft="10dp" android:layout_height="wrap_content" …