Skip to content

支持四个参数的构造方法 #39

@idealgn

Description

@idealgn
 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引用这个)
要是能支持第四个参数,直接在继承类中加入就更方便了,烦请大佬指点!!!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions