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

Gunnar Bernstein
  • 6,074
  • 2
  • 45
  • 67
memeprincess
  • 318
  • 3
  • 16

2 Answers2

2

Please write button visiblity method like below code

if(BuildConfig.DEBUG){
        write you button visiblity code.
 }
Vishal Sojitra
  • 486
  • 3
  • 10
1

yes use something like this.

if(BuildConfig.DEBUG){
   button.visibility = View.GONE
}
vikas kumar
  • 10,447
  • 2
  • 46
  • 52