-
Notifications
You must be signed in to change notification settings - Fork 240
Open
Labels
Description
public RelativeLayout(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes)
这个构造方法能支持一下嘛?
我在继承MultipleStatusView时,定义一个style
<style name="BaseMultipleStatusView" parent="MultipleStatusView">
<item name="emptyView">@layout/empty_view</item>
<item name="errorView">@layout/error_view</item>
<item name="loadingView">@layout/layout_loading_view</item>
<item name="noNetworkView">@layout/layout_net_offline</item>
</style>
这样就可以放到第四个参数里。(当然也可以在xml中定义style引用这个)
要是能支持第四个参数,直接在继承类中加入就更方便了,烦请大佬指点!!!
Reactions are currently unavailable