Code example for AdapterView.OnItemSelectedListener

Methods: onNothingSelected

0
 
        @Override 
        public void onNothingSelected(AdapterView<?> adapterView) {
            OnItemSelectedListener l = mManaged.getOnItemSelectedListener();
            if (l != null) {
                l.onNothingSelected(adapterView);
            } 
        } 
    } 
 
    private static class ItemsListHandler extends Handler {
        @Override 
        public void handleMessage(Message msg) {
            switch (msg.what) {
                case MESSAGE_UPDATE_ITEMS:
                    ItemManager smoothie = (ItemManager) msg.obj;
                    smoothie.updateItems();
                    break; 
            } 
        } 
    }