0
我如何在可扩展列表视图中添加webview? 我需要expandableListView如何在ExpandableListView中添加WebView?
任何教程下添加HTML文件(可以使用的WebView做)?我该怎么做?
有没有其他方法可以做同样的事情?
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="91dp"
android:descendantFocusability="blocksDescendants"
android:background="#ffffff">
<ImageView
android:layout_width="30dp"
android:layout_height="91dp"
android:id="@+id/sth_cell_img_correct"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:src="@drawable/icon_checked" /> <WebView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clickable="false"
android:id="@+id/sth_web_view" />
</RelativeLayout>
希望能有一个'单WebView'可扩展列表视图的孩子? – makata
@makata是的没错! –
如果您熟悉基本的BaseExpandableListAdapter和WebView,这应该不难。你有没有了解基本的ExpandableList,这样我可以给你一个片段? – makata