recyclerview scramble after scrolling

Solutions on MaxInterview for recyclerview scramble after scrolling by the best coders in the world

showing results for - "recyclerview scramble after scrolling"
Andrea
04 Oct 2017
1void setValue(Object value, TextView textView, TableRow row, View seperator) {
2    if (value != null) {
3        if (!isEmpty(value.toString())) {
4            textView.setText(String.valueOf(value));
5            showViews(row, seperator);
6        }
7    } else
8        hideViews(row, seperator);
9}
10
11private void showViews(TableRow row, View seperator) {
12    row.setVisibility(View.VISIBLE);
13    seperator.setVisibility(View.VISIBLE);
14}
15
16private void hideViews(TableRow row, View seperator) {
17    row.setVisibility(View.INVISIBLE); // if there is a empty space change it with View.GONE
18    seperator.setVisibility(View.INVISIBLE);
19}
20
similar questions
queries leading to this page
recyclerview scramble after scrolling