I have a linear vertical layout as below. I need in my application to switch the Button and the TextView. To hide button and show text then change etc. If I use setVisibilit
You should used setVisibility(View.GONE) instead of setVisibility(View.INVISIBLE).
setVisibility(View.GONE)
setVisibility(View.INVISIBLE)
For more information go to: http://developer.android.com/reference/android/view/View.html