Class AccessibleSpinner

  • java.lang.Object
    • Spinner
      • uk.ac.qmul.eecs.ccmi.accessibility.AccessibleSpinner


  • public class AccessibleSpinner
    extends Spinner
    The accessible spinner is designed to be accessible without looking at the display. A click on the spinner will not open a selection menu but will just switch the selected item, giving proper audio feedback of the performed action.
    • Constructor Detail

      • AccessibleSpinner

        public AccessibleSpinner(Context context)
      • AccessibleSpinner

        public AccessibleSpinner(Context context,
                                 AttributeSet attrs)
      • AccessibleSpinner

        public AccessibleSpinner(Context context,
                                 AttributeSet attrs,
                                 int defStyle)
    • Method Detail

      • dispatchTouchEvent

        public boolean dispatchTouchEvent(MotionEvent evt)
        Touching the spinner doesn't open a selection menu but just switches to the next item. The name of the next item is also uttered by the Android text-to-speech synthesizer.
        Parameters:
        evt - The motion event to be dispatched.