Could someone give me some solution or guide me with this:
I am implementing a RecyclerView (with a LinearLayoutManager) that shows a list with two, three or four EditText, in each row, according to the DataSet that it loads (it can only be one of the three options in each load).
All EditText are disabled (they do not allow entering text) from the ViewHolder.
But I can not get, through ToggleButton's (outside the RecyclerView), to enable / disable the EditText's of the columns of the RecyclerView. It's a button
EditText are created in an array of EditText's in the ViewHolder to later access their setEnable according to an array index (as if they were columns).
The closest I got to it was using a static Adapter method to enable / disable the EditText. The method called it from an Activity using also the notifyItemRangeChanged () of the Adapter, but that method can only be used once if an Object payload is not given as parameter. And until then I arrived, I did not investigate anymore because it has taken me a long time.
Does anyone know the correct way to achieve this? (manage to modify, from outside the RecyclerView, the properties of the View that it loads). Or guide me on what to try.