I have a question for you!
I have 50 items in my counter, can I disable, for example, the sixth item in my list?
You can get an element from an array in your ListAdapter based on its position and call setEnabled(false) in the public getView() method.
setEnabled(false)
getView()
Like this:
if (position==10) { convertView.setEnabled(false); } else{ convertView.setEnabled(true); }
You may have to override some other methods. Check out these posts:Android ListView child View setEnabled () and setClickable () do nothingAndroid: how to disable list items when creating a list
Source: https://habr.com/ru/post/892002/More articles:Can you use jQuery to transform XML into XML through XSLT - javascriptUsing AppDomain in C # to dynamically load and unload dlls - c #how to encrypt python source code? - pythongetting the list of languages ββsupported by the Android keyboard - androidReplace with newline python - pythonWhat is a good grouping strategy for similar words? - pythonVS2010 Load test: cannot connect to the test controller - visual-studio-2010Conditional compilation in Scala - scalaHow do interpreted languages ββ(like Ruby) work? - compiler-constructionDjango - no module named PIL - pythonAll Articles