Code example for TextView

Methods: setTextsetTextSize

0
        } 
    }; 
 
    public static final ViewFactory LABEL_FACTORY = new ViewFactory() {
        public View create(String name, int size) { 
            TextView result = new TextView(CONTEXT); 
            result.setText(name); 
            result.setTextSize(40); 
            return result; 
        } 
    }; 
 
    public static final ViewFactory TEXT_FIELD_FACTORY = new ViewFactory() {
        public View create(String name, int size) { 
            EditText result = new EditText(CONTEXT); 
            result.setText(name); 
            return result; 
        } 
    }; 
 
    public static final ViewFactory[] FACTORIES =