私は非常に単純な作業に取り組んできましたが、頭から髪の毛一本一本を引き抜くほどイライラしました (ことわざ - 私はすでに禿げています)。
私は単純な LISTVIEW を持っています。行のテンプレートで . 私は 1 つの WebView しか持っていません。
リンクなどを含むいくつかのhtmlをレンダリングするため、webviewが必要です。また、リストビューの行数は最大で5を超えません。
マイ アクティビティ コード
<RelativeLayout 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"
tools:context=".AboutMofa" >
<ListView
android:id="@+id/aboutContentList"
android:layout_width="match_parent"
android:layout_height="wrap_content" >
</ListView>
リストビューの私のテンプレート
<?xml version="1.0" encoding="utf-8"?>
<WebView
android:id="@+id/webviewContent"
android:layout_width="wrap_content"
android:layout_height="@dimen/aboutContentBox" />
そして私のアダプターgetView
LayoutInflater inflater = (LayoutInflater) context
.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
View rowView = inflater.inflate(R.layout.web_view_row, parent, false);
WebView w = (WebView) rowView.findViewById(R.id.webviewContent);
w.loadUrl("www.yahoo.com");
return rowView;
私が理解している限り、それはリストビューがタッチを吸収し、ウェブビューにそれらを受信させないことに関係しているため、スクロールできません。
私を助けてください。