Code example for View

Methods: setTag

0
        private static boolean isTwoLine(View view) {
            return view.getTag() == Boolean.TRUE;
        } 
 
        private static void setTwoLine(View view, boolean twoLine) {
            view.setTag(Boolean.valueOf(twoLine));
        } 
    } 
 
    private static final class KeyboardLayoutLoader extends AsyncTaskLoader<Keyboards> {
        private final String mInputDeviceDescriptor;
 
        public KeyboardLayoutLoader(Context context, String inputDeviceDescriptor) {
            super(context);
            mInputDeviceDescriptor = inputDeviceDescriptor;
        } 
 
        @Override 
        public Keyboards loadInBackground() { 
            Keyboards keyboards = new Keyboards();
            InputManager im = (InputManager)getContext().getSystemService(Context.INPUT_SERVICE);