I'm working on a kiosk app that will use a single activity and mostly fragments with composables, an...
c
I'm working on a kiosk app that will use a single activity and mostly fragments with composables, and I have a requirement to build in a "admin" alert dialog that shows up any time you click 5 times in a single spot of the app. I see two ways forward. 1: Try to write this on the activity level (I tried onTouchEvent but it seems like it doesn't get triggered because I have FragmentContainerView and that seems to get the events) 2. Write a composable theme that can intercept all touch events, but still let events pass through. Has anyone had experience with trying to have this kind of global x user tap listener? I know a lot of people have created debug menus, etc.
t
Why wouldn't you just create a clickable empty
Box
in the area that you want the admin users to click?
c
@Tony Kazanjian Ideally I'd want them to tap anywhere 5 times in x seconds. I'm going to play around with it more today, but yeah. I basically want this menu to be available from any screen.