function EditText(theme) {
        theme = theme || Theme.DEFAULT;
        let thiz = this,
            shapeDrawable = new ShapeDrawable_(),
            paint = shapeDrawable.getPaint();
        paint.setColor(-1);
        paint.setStyle(Paint_.Style.STROKE);
        paint.setColor(theme.getEditText(Theme.BACKGROUND_COLOR));
        paint.setStrokeWidth(DP * 3);
        thiz._theme = theme;
        thiz._params = new LinearLayout_.LayoutParams(-1, DP * 40);
        thiz._view = new EditText_(CONTEXT);
        thiz._params.setMargins(DP * 8, DP * 4, DP * 8, DP * 4);
        thiz._view.setBackgroundDrawable(shapeDrawable);
        thiz._view.setHint("EditText");
        thiz._view.setHintTextColor(theme.getEditText(Theme.HINT_TEXT_COLOR));
        thiz._view.setImeOptions(6);
        thiz._view.setLayoutParams(thiz._params);
        thiz._view.setPadding(DP * 8, DP * 8, DP * 8, DP * 8);
        thiz._view.setTextColor(theme.getEditText(Theme.TEXT_COLOR));
        thiz._view.setTextSize(1, 16);
    }
/**
     * Class representing a edit text.
     * @since 2016-05-27
     * @class
     * @extends me.astro.widget.TextView
     * @memberOf me.astro.widget
     * @param {me.astro.design.Theme} [theme=me.astro.design.Theme.DEFAULT] Theme of edit text
     */
Class representing a edit text.
Class representing a edit text .
function EditText(theme) {
        theme = theme || Theme.DEFAULT;
        let thiz = this,
            shapeDrawable = new ShapeDrawable_(),
            paint = shapeDrawable.getPaint();
        paint.setColor(-1);
        paint.setStyle(Paint_.Style.STROKE);
        paint.setColor(theme.getEditText(Theme.BACKGROUND_COLOR));
        paint.setStrokeWidth(DP * 3);
        thiz._theme = theme;
        thiz._params = new LinearLayout_.LayoutParams(-1, DP * 40);
        thiz._view = new EditText_(CONTEXT);
        thiz._params.setMargins(DP * 8, DP * 4, DP * 8, DP * 4);
        thiz._view.setBackgroundDrawable(shapeDrawable);
        thiz._view.setHint("EditText");
        thiz._view.setHintTextColor(theme.getEditText(Theme.HINT_TEXT_COLOR));
        thiz._view.setImeOptions(6);
        thiz._view.setLayoutParams(thiz._params);
        thiz._view.setPadding(DP * 8, DP * 8, DP * 8, DP * 8);
        thiz._view.setTextColor(theme.getEditText(Theme.TEXT_COLOR));
        thiz._view.setTextSize(1, 16);
    }
function EditText ( theme ) { theme = theme || Theme . DEFAULT ; let thiz = this , shapeDrawable = new ShapeDrawable_ ( ) , paint = shapeDrawable . getPaint ( ) ; paint . setColor ( - 1 ) ; paint . setStyle ( Paint_ . Style . STROKE ) ; paint . setColor ( theme . getEditText ( Theme . BACKGROUND_COLOR ) ) ; paint . setStrokeWidth ( DP * 3 ) ; thiz . _theme = theme ; thiz . _params = new LinearLayout_ . LayoutParams ( - 1 , DP * 40 ) ; thiz . _view = new EditText_ ( CONTEXT ) ; thiz . _params . setMargins ( DP * 8 , DP * 4 , DP * 8 , DP * 4 ) ; thiz . _view . setBackgroundDrawable ( shapeDrawable ) ; thiz . _view . setHint ( "EditText" ) ; thiz . _view . setHintTextColor ( theme . getEditText ( Theme . HINT_TEXT_COLOR ) ) ; thiz . _view . setImeOptions ( 6 ) ; thiz . _view . setLayoutParams ( thiz . _params ) ; thiz . _view . setPadding ( DP * 8 , DP * 8 , DP * 8 , DP * 8 ) ; thiz . _view . setTextColor ( theme . getEditText ( Theme . TEXT_COLOR ) ) ; thiz . _view . setTextSize ( 1 , 16 ) ; }
Class representing a edit text.
Class representing a edit text .