0
Hello,
I have a gridView I built with an Adapter I inherited from Basedapter. I want my Activity, when you click on an item (I have 16 in total in mine), to make other items clickable and vice versa.
Someone knows a way to do that???
0
Hello,
I have a gridView I built with an Adapter I inherited from Basedapter. I want my Activity, when you click on an item (I have 16 in total in mine), to make other items clickable and vice versa.
Someone knows a way to do that???
0
The view used in Gridview is clickable if you set it, but these attributes can be controlled in its Adapter class that extends from Basedapter.
You can still define the events that will be used in your view.
Note the example:
http://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html
Remember to always check the documentation, there is a lot of useful information there. http://developer.android.com/reference/android/widget/GridView.html
I’m sorry, but I’m still a beginner.... I had already seen the two documents you sent me, but I haven’t solved my problem yet. Could you put an example of Adapter changing the view to non-clickable? How do I retrieve this view.
Note this post http://stackoverflow.com/questions/7894815/androidclickable-true-means-that-its-not-clickable
Browser other questions tagged android android-studio gridview grid
You are not signed in. Login or sign up in order to post.
Welcome to Stack Overflow @Fernandoschelb . Would you add the relevant code to your question? I do not mean posting the complete code of all 16 items, but what is necessary to be able to see and test this as for example at least 3
– Chun
Post the code of your Adapter
– ramaral