Code example for View

Methods: invalidate, setVisibility

0
                    final String shortcut = c.getString(INDEX_SHORTCUT); 
                    if (TextUtils.isEmpty(shortcut)) { 
                        v.setVisibility(View.GONE); 
                    } else { 
                        ((TextView)v).setText(shortcut); 
                        v.setVisibility(View.VISIBLE); 
                    } 
                    v.invalidate(); 
                    return true; 
                } 
 
                return false; 
            } 
        }; 
 
        public MyAdapter(Context context, int layout, Cursor c, String[] from, int[] to,
                UserDictionarySettings settings) {
            super(context, layout, c, from, to);
 
            if (null != c) {
                final String alphabet = context.getString(