java - CheckBox in GridView still clickable while clickable=false -


i have made gridview (in fragment) adapter , layout items. layout exists of imageview display picture, checkbox , imageview display indicator indicates if picture picture or if thumbnail video. here layout:

<?xml version="1.0" encoding="utf-8"?> <relativelayout xmlns:android="http://schemas.android.com/apk/res/android"     android:layout_width="wrap_content" android:layout_height="wrap_content">      <imageview         android:id="@+id/ivgridmedia"         android:layout_width="match_parent"         android:layout_height="match_parent"         android:adjustviewbounds="true"         android:contentdescription="@string/imgobjectmediadesc"/>      <checkbox         android:id="@+id/checkbox"         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:layout_alignright="@+id/ivgridmedia"         android:layout_alignend="@+id/ivgridmedia"         android:clickable="false"         android:focusable="false"         android:focusableintouchmode="false" />      <imageview         android:id="@+id/vidindicator"         android:layout_width="50dp"         android:layout_height="50dp"         android:layout_centerinparent="true"         android:focusable="false"         android:focusableintouchmode="false"         android:contentdescription="@string/imgplaydesc"         android:visibility="gone"         android:src="@drawable/icon_play"/>  </relativelayout> 

i'm trying make gridview work gallery app, (in future) checkbox invisible in start on long click on item, visible , user able choose of pictures with.

i don't want checkbox focusable or clickable (i want able click item check checkbox), though i've set checkbox not focusable or clickable can still click it, know how can fix this?

you set android:enabled="false" disable checkbox.


Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -