我有2个视图。 1)MyMenuRestaurent.axml 2)ImageAndSubTitle.axml滚动视图中的Listview不可点击
为MyMenuRestaurent.axml
<LinearLayout>
<ListView>
</ListView>
</LinearLayout>
代码用于图像和副标题码
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@color/lightgray">
<ScrollView
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<TableLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:stretchColumns="1"
android:backgroundTint="#ff81d4fa">
<LinearLayout
android:orientation="vertical"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="10dip">
</LinearLayout>
<TextView
android:id="@+id/Text1"
android:text="Demo Item Name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/blue"
android:textSize="20dip" />
<TextView
android:id="@+id/Text2"
android:text="Demo Price"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="14dip"
android:textColor="@color/blue" />
</TableLayout>
</ScrollView>
</LinearLayout>
我有列表视图点击。当点击一个项目时,单个项目的细节被打开。但如果我添加滚动视图(单击)不起作用。因为滚动视图块单击元素。我想使滚动视图一起点击项目。
你有没有解决问题了吗? –
unfortunatley不! – DevKriya
那么,有什么问题?你能否详细说明一下,以便我可以帮你解决这个问题? –