I don’t want to programmatically display visibility, and I do it in xml files, but when I set the visibility property to GONE view hides from the preview screen. Sometimes I need to correct some fields in the views I have viewed, and I have to change the visibility to VISIBILITY, make changes and change the visibility. This is annoying.
How to make a view with GONE visibility visible ONLY in Android Studio preview.
source
share