9

I am using a Custom View. On the Custom View I am plotting some Graph. And also I am using TextView on my layout. When I am making this TextView VISIBLE and INVISIBLE on button click , it is clearing graph.Why it is clearing graph with both GONE and INVISIBLE?

Any Idea?

Tejas
  • 433
  • 1
  • 4
  • 17

1 Answers1

5

From Android official documentation,

View.GONE This view is invisible, and it doesn't take any space for layout purposes.

View.INVISIBLE This view is invisible, but it still takes up space for layout purposes.

Raptor
  • 53,206
  • 45
  • 230
  • 366