0

I need to add a button to menu navigation at the sidebar of my app, but I don't really understand how to make it right. It should be visible only when app is in a DEBUG mode/apk

memeprincess
  • 149
  • 9

2 Answers2

1

yes use something like this.

if(BuildConfig.DEBUG){
   button.visibility = View.GONE
}
vikas kumar
  • 9,263
  • 2
  • 42
  • 47
1

Please write button visiblity method like below code

if(BuildConfig.DEBUG){
        write you button visiblity code.
 }
Vishal Sojitra
  • 456
  • 3
  • 9