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 100 times
2 Answers
1
yes use something like this.
if(BuildConfig.DEBUG){
button.visibility = View.GONE
}
![](../../users/profiles/4517450.webp)
vikas kumar
- 7,846
- 1
- 33
- 39
1
Please write button visiblity method like below code
if(BuildConfig.DEBUG){
write you button visiblity code.
}
![](../../users/profiles/7486233.webp)
Vishal Sojitra
- 429
- 3
- 9