OForm.java 文件源码

java
阅读 36 收藏 0 点赞 0 评论 0

项目:trainee-om-shop 作者:
private void init(Context context, AttributeSet attrs, int defStyleAttr,
                  int defStyleRes) {
    mFirstModeChange = true;
    mContext = context;
    if (attrs != null) {
        TypedArray types = mContext.obtainStyledAttributes(attrs,
                R.styleable.OForm);
        mModel = types.getString(R.styleable.OForm_modelName);
        mEditable = types.getBoolean(R.styleable.OForm_editableMode,
                false);
        autoUIGenerate = types.getBoolean(R.styleable.OForm_autoUIGenerate, true);
        icon_tint_color = types.getColor(R.styleable.OForm_controlIconTint, -1);
        types.recycle();
    }
    initForm();
    LayoutTransition transition = new LayoutTransition();
    setLayoutTransition(transition);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号