android 对gridview 外层linearlayout 设置点击事件,怎么还点到gridview(gridview没点击事件)?
<LinearLayoutandroid:layout_width="fill_parent"android:layout_height="fill_parent"and...
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/selector">
<GridView
android:id="@+id/gridview"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_margin="8dip"
android:numColumns="8"
android:cacheColorHint="#00000000"
android:listSelector="#00000000"
android:stretchMode="spacingWidthUniform"
android:gravity="center"/>
</LinearLayout> 展开
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/selector">
<GridView
android:id="@+id/gridview"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_margin="8dip"
android:numColumns="8"
android:cacheColorHint="#00000000"
android:listSelector="#00000000"
android:stretchMode="spacingWidthUniform"
android:gravity="center"/>
</LinearLayout> 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询