I have 2 buttons overlapping with each other. Is it possible that when pressing the top button, the bottom button also showing its pressed state?
Thanks!
I have 2 buttons overlapping with each other. Is it possible that when pressing the top button, the bottom button also showing its pressed state?
Thanks!
Copyright © 2021 Jogjafile Inc.
Buttonhas asetPressedmethod which you could use in one of the buttonsonClickListenerto set the other button to a pressed state. You could then set anOnTouchListeneron that button and listen for MotionEvent.ACTION_UP to set it back to a non pressed state.