setRefreshContent

public RefreshLayout setRefreshContent(View content)

Set the content of RefreshLayout(Suitable for non-XML pages, not suitable for replacing empty layouts).

Return

RefreshLayout

Parameters

content

View 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).

Return

RefreshLayout

Parameters

content

View content view

width

the width in px, can use MATCH_PARENT and WRAP_CONTENT. Width in px, can use MATCH_PARENT, WRAP_CONTENT

height

the height in px, can use MATCH_PARENT and WRAP_CONTENT. Height in px, can use MATCH_PARENT, WRAP_CONTENT