ScrollableTabHost-for-Android icon indicating copy to clipboard operation
ScrollableTabHost-for-Android copied to clipboard

key events are not working for child activities

Open eyck opened this issue 14 years ago • 1 comments

Reacting on key events does not work for child activities, the events are always handled by the ScrollableTabHost. This can be fixed by changing the startGroupAcitivity() function and adding the following before leaving the function: view.setVisibility(View.VISIBLE); view.setFocusableInTouchMode(true); ((ViewGroup)view).setDescendantFocusability(ViewGroup.FOCUS_AFTER_DESCENDANTS);

Cheers

eyck avatar Mar 15 '11 16:03 eyck

thanks

honcheng avatar Mar 26 '11 08:03 honcheng