Code example for Keyboard

Methods: setShifted

0
     * @return true if the shift key state changed, false if there was no change 
     * @see KeyboardView#isShifted() 
     */ 
    public boolean setShifted(boolean shifted) {
        if (mKeyboard != null) {
            if (mKeyboard.setShifted(shifted)) {
                // The whole keyboard probably needs to be redrawn 
                invalidateAllKeys(); 
                return true; 
            } 
        } 
        return false; 
    } 
 
    /** 
     * Returns the state of the shift key of the keyboard, if any. 
     * @return true if the shift is in a pressed state, false otherwise. If there is 
     * no shift key on the keyboard or there is no keyboard attached, it returns false. 
     * @see KeyboardView#setShifted(boolean) 
     */ 
Connect your IDE to all the code out there  Get Codota for Java