change visibility of Recyclerview.ViewHolder items

60
January 12, 2019, at 9:20 PM

I have a custom recyclerview adapter. Based on some conditions I want to change the visibility of ViewHolder items. when I searched about it I found two solutions. one of them is having multiple view types and the other one is using SparseBooleanArray to keep items position. which one is more efficient?

Any help would be appreciated.

READ ALSO
Mutable array get overridden when get asserted to another variable

Mutable array get overridden when get asserted to another variable

I have A simple case where I Have "List A" with 5 values and another "List B" acts As TempList holding "List A" values now when I call "list_Aclear()" "list_B" also get Cleared why?

23
Why does my ForegroundService end when few hours pass?

Why does my ForegroundService end when few hours pass?

I have a ForegroundService which it is sending locations and it is running well but when it is pass more or less 12 hours the service stopsI have the same issue when I put battery saving

60
Can't run expo using LAN

Can't run expo using LAN

It works using tunnel, but when I run it on LAN it throws a weird error

50
Web interface to control android layout [on hold]

Web interface to control android layout [on hold]

I wanted to make a web interface (could be a flash one) that will have some widgets inside and a canvas of selected resolution, I could drag and drop windows onto the canvas and move the object to specific x y coordinatesAfter you finish the layout you save and the Android...

60