imagebutton - Generic click event in Android -


recently able create tablet software cerebral palsy girl "talk" me, since can't speak.

well, friend of mine has amyothrophic lateral sclerosis (als). can move 1 finger , willing use daughter's software able "talk" again.

since can move finger, created version each item "blinks" (in yellow) time (just 1 second) , if presses mouse button, item focused (in yellow) activated.

see below:

communication software

it works if leave mouse on black portion of screen. if mouse on buttons, won't work, click button mouse over.

also, if uses keyboard , presses enter key, activate first button, then, if clicks left arrow , presses enter again, activate second button , on.

so, wish create generic event if press enter key, selected (in yellow) item activated.

any ideas?

well make 2 different modes. 1 there click listeners each picture,and click anywhere on screen recognized ( ex. find largest layout id , set listener). in second mode, use

http://developer.android.com/reference/android/view/keyevent.html

to detect keyevents such enter, , handle them depending on highlighted view.


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -