开发者

change the Click of a list item

in a listview, the click on every list item works only if i press the text in the list line...could it be possible to get action if i press wherever i like in the line and not only in the text of the line?thanks

 <ListView android:id="@+id/android:list"
          android:layout_width="wrap_content"
            android:layout开发者_StackOverflow中文版_height="wrap_content"
            android:cacheColorHint="#00000000" android:mode="oneLine"
            />


Maybe you should this to the layout XML of the TextView in your list row: android:focusable="false"

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜