2014年1月5日星期日

[Android] listview nested gridview, how to determine the point of the picture is still blank gridview part

My listview nested gridview, gridview is only one long picture , I click on the picture is enlarged , but I actually click on a blank part of the side or click on the picture , I did not write girdview of OnTouch event , only the onclickitem click event , how to listen , when you click a blank part of the item rather than responding to gridview listview 's item event . .
------ Solution ---------------------------------------- ----
hair code layout sent to ah
------ Solution --------------------------- -----------------
onclickitem item click event is set . Where can itemAdapter fuss , such as adding pictures directly on the listener .
------ eference --------------------------------------- < br> .... Finally, I made ​​a deal with myself , I put gridview distribution width, height, according to the screen. The perfect solution to this problem. Thank you.

没有评论:

发表评论