Home > Software engineering >  How to hide a TextView from Specific listview item
How to hide a TextView from Specific listview item

Time:12-02

i´m new to android and im tryin to hide or show a Textview in my items from a listview from JSON.

The idea is to show and to custom a textview with a custom background and style if the date exists.

if date doesn't exist, then hide the textview in that item.

i know tha my be a realy stypid question, but i can't seem to find the right answer anyware.

enter image description here

PS.I advise you to use instead of ListView -> RecyclerView, and also instead of HashMap<> it is better to use some model with fields and convert the data from the server to this model using GSON.

  • Related