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

ladamengh
  • 133
  • 8

2 Answers2

1

yes use something like this.

if(BuildConfig.DEBUG){
   button.visibility = View.GONE
}
vikas kumar
  • 7,846
  • 1
  • 33
  • 39
1

Please write button visiblity method like below code

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