android - disable gridview item onClick and enable only on child view -
hi have gridview imageview , textview in each gridview item. want disable onclick of grid view item , enable imageview. there way can achieved. have have lot of space between each grid view item , if have onclick enabled each gridview item ontimeclick listener called if click on empty spaces avoid planing have onclick imageview.... pls suggest how can done...
you can give android:clickable="false"
gridview in xml.
and, can write onclick imageview inside custom adapter have populated gridview.
also try,
android:focusable="false" android:focusableintouchmode="false"
for gridview in xml.
Comments
Post a Comment