本文共 477 字,大约阅读时间需要 1 分钟。
public HeaderViewImpl(@NonNull Context context) { this(context, null); this.initView(); } public HeaderViewImpl(@NonNull Context context, @Nullable AttributeSet attrs) { this(context, attrs, 0); this.initView(); } public HeaderViewImpl(@NonNull Context context, @Nullable AttributeSet attrs, @AttrRes int defStyleAttr) { super(context, attrs, defStyleAttr); this.initView(); }
看得出来问题么。。。ctrl + a 查看答案
呵呵,initView调用了多次。。。
转载地址:http://hzgwn.baihongyu.com/