N
N
nohchiadam2019-06-12 19:59:30
Java
nohchiadam, 2019-06-12 19:59:30

How to hide element (TextView) in RecyleView?

I need to hide TextView from RecylerView with visibility.
The question is how to organize it in RecylerView.
item'ov in which it is necessary to hide this TextView - 4 .

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Zagaevsky, 2019-06-12
@nohchiadam

you take in onBindViewHolder and in those elements where you need to hide, set visibility GONE, and in those where you don't need - VISIBLE.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question