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
Asked
Active
Viewed 441 times
2 Answers
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