-
Notifications
You must be signed in to change notification settings - Fork 421
CAPullToRefreshView
pull-to-refresh view that provides pull-to-refresh operation for scrollView and its derived classes.
CAView
Access modifier |
Attribute name |
Description |
protected |
PullToRefreshText |
tooltip when pulling to refresh |
protected |
ReleaseToRefreshText |
tooltip when releasing pull operation |
protected |
RefreshingText |
tooltip when refreshing |
protected |
LabelColor |
tooltip color |
private |
PullToImage |
tooltip image when pulling |
protected |
LoadingView |
loading animation |
protected |
PullToRefreshType |
pull-to-refresh type |
Access modifier |
Method name |
Description |
public |
create |
create pull-to-refresh view |
PullToRefreshText
Type: string
Descripiton: tooltip when pulling down, public get/set{}.
ReleaseToRefreshText
Type: string
Descripiton: tooltip when releasing pull operation, public get/set{}.
RefreshingText
Type: string
Descripiton: tooltip when refreshing, public get/set{}.
LabelColor
Type: CAColor4B
Descripiton: all tooltip’s color, public get/set{}.
PullToImage
Type: CAImage*
Descripiton: tooltip image when pulling, public get/set{}.
LoadingView
Type: CAActivityIndicatorView*
Descripiton: loading animation, public get/set{}.
PullToRefreshType
Type: CAPullToRefreshType
Descripiton: pull-to-refresh type, here the ‘type’ actually means the location of refresh view, public get/set{}.
static CAPullToRefreshView create(const CAPullToRefreshType& type)*
Return value: void
Parameter:
Type |
Parameter name |
Description |
const CAPullToRefreshType& |
type |
pull-to-refresh type |
typedef enum
{
CAPullToRefreshTypeHeader = 0,
CAPullToRefreshTypeFooter,
CAPullToRefreshTypeLeftHeader,
CAPullToRefreshTypeRightFooter,
CAPullToRefreshTypeCustom
}CAPullToRefreshType;