setRefreshContent

public RefreshLayout setRefreshContent(View content)

Set the content of RefreshLayout(Suitable for non-XML pages, not suitable for replacing empty layouts)。 设置指定的 Content(适用于非XML页面,不适合用替换空布局)

Return

RefreshLayout

Parameters

content

View 内容视图


public RefreshLayout setRefreshContent(View content, int width, int height)

Set the content of RefreshLayout(Suitable for non-XML pages, not suitable for replacing empty layouts). 设置指定的 Content(适用于非XML页面,不适合用替换空布局)

Return

RefreshLayout

Parameters

content

View 内容视图

width

the width in px, can use MATCH_PARENT and WRAP_CONTENT. 宽度 可以使用 MATCH_PARENT, WRAP_CONTENT

height

the height in px, can use MATCH_PARENT and WRAP_CONTENT. 高度 可以使用 MATCH_PARENT, WRAP_CONTENT