本文整理匯總了Java中com.handmark.pulltorefresh.library.internal.RotateLoadingLayout類的典型用法代碼示例。如果您正苦於以下問題:Java RotateLoadingLayout類的具體用法?Java RotateLoadingLayout怎麽用?Java RotateLoadingLayout使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
RotateLoadingLayout類屬於com.handmark.pulltorefresh.library.internal包,在下文中一共展示了RotateLoadingLayout類的11個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: createLoadingLayout
import com.handmark.pulltorefresh.library.internal.RotateLoadingLayout; //導入依賴的package包/類
LoadingLayout createLoadingLayout(Context context, Mode mode,
Orientation scrollDirection, TypedArray attrs) {
switch (this) {
case ROTATE:
default:
return new RotateLoadingLayout(context, mode, scrollDirection,
attrs);
case FLIP:
if (mode == Mode.PULL_FROM_START) {
return new FlipLoadingLayout(context, mode,
scrollDirection, attrs);
} else {
return new FlipLoadingLayout_foot(context, mode,
scrollDirection, attrs);
}
}
}
示例2: createLoadingLayout
import com.handmark.pulltorefresh.library.internal.RotateLoadingLayout; //導入依賴的package包/類
LoadingLayout createLoadingLayout(Context context, Mode mode, Orientation scrollDirection, TypedArray attrs) {
switch (this) {
case ROTATE:
default:
return new RotateLoadingLayout(context, mode, scrollDirection, attrs);
case FLIP:
return new FlipLoadingLayout(context, mode, scrollDirection, attrs);
}
}
示例3: createLoadingLayout
import com.handmark.pulltorefresh.library.internal.RotateLoadingLayout; //導入依賴的package包/類
/**
* @param clazz Class token is being ignored.
* @param context
* @param mode
* @return {@code RotateLoadingLayout} instance
*/
public static LoadingLayout createLoadingLayout(
Class<? extends LoadingLayout> clazz, Context context,
Mode mode, Orientation orientation, TypedArray attrs) {
return new RotateLoadingLayout(context, mode, orientation, attrs);
}
示例4: createLoadingLayout
import com.handmark.pulltorefresh.library.internal.RotateLoadingLayout; //導入依賴的package包/類
LoadingLayout createLoadingLayout(Context context, Mode mode, Orientation
scrollDirection, TypedArray attrs) {
switch (this) {
case FLIP:
return new FlipLoadingLayout(context, mode, scrollDirection, attrs);
default:
return new RotateLoadingLayout(context, mode, scrollDirection, attrs);
}
}
示例5: createLoadingLayout
import com.handmark.pulltorefresh.library.internal.RotateLoadingLayout; //導入依賴的package包/類
LoadingLayout createLoadingLayout(Context context, Mode mode, Orientation scrollDirection, TypedArray attrs) {
switch (this) {
case ROTATE:
default:
return new RotateLoadingLayout(context, mode, scrollDirection, attrs);
case FLIP:
return new FlipLoadingLayout(context, mode, scrollDirection, attrs);
}
}
示例6: createLoadingLayout
import com.handmark.pulltorefresh.library.internal.RotateLoadingLayout; //導入依賴的package包/類
LoadingLayout createLoadingLayout(Context context, Mode mode,
Orientation scrollDirection, TypedArray attrs) {
switch (this) {
case ROTATE:
default:
return new RotateLoadingLayout(context, mode, scrollDirection,
attrs);
case FLIP:
return new FlipLoadingLayout(context, mode, scrollDirection,
attrs);
}
}
示例7: createLoadingLayout
import com.handmark.pulltorefresh.library.internal.RotateLoadingLayout; //導入依賴的package包/類
LoadingLayout createLoadingLayout(Context context, Mode mode, Orientation scrollDirection, TypedArray attrs) {
switch (this) {
case ROTATE:
default:
return new RotateLoadingLayout(context, mode, scrollDirection, attrs);
/*case FLIP:
return new FlipLoadingLayout(context, mode, scrollDirection, attrs);*/
}
}
示例8: createLoadingLayout
import com.handmark.pulltorefresh.library.internal.RotateLoadingLayout; //導入依賴的package包/類
LoadingLayout createLoadingLayout(Context context, Mode mode, Orientation scrollDirection, TypedArray attrs) {
switch (this) {
case ROTATE:
default:
return new RotateLoadingLayout(context, mode, scrollDirection, attrs);
case FLIP:
return new FlipLoadingLayout(context, mode, scrollDirection, attrs);
case GIF:
return new GifLoadingLayout(context, mode, scrollDirection, attrs);
}
}
示例9: createLoadingLayout
import com.handmark.pulltorefresh.library.internal.RotateLoadingLayout; //導入依賴的package包/類
LoadingLayout createLoadingLayout(Context context, Mode mode, Orientation scrollDirection, TypedArray attrs) {
switch (this) {
case ROTATE:
return new RotateLoadingLayout(context, mode, scrollDirection, attrs);
case FLIP:
return new FlipLoadingLayout(context, mode, scrollDirection, attrs);
default:
return new RotateLoadingLayout(context, mode, scrollDirection, attrs);
}
}
示例10: createLoadingLayout
import com.handmark.pulltorefresh.library.internal.RotateLoadingLayout; //導入依賴的package包/類
LoadingLayout createLoadingLayout(Context context, Mode mode,
Orientation scrollDirection, TypedArray attrs) {
switch (this) {
case ROTATE:
default:
return new RotateLoadingLayout(context, mode, scrollDirection,
attrs);
case FLIP:
return new FlipLoadingLayout(context, mode, scrollDirection,
attrs);
}
}
示例11: createLoadingLayout
import com.handmark.pulltorefresh.library.internal.RotateLoadingLayout; //導入依賴的package包/類
LoadingLayout createLoadingLayout(Context context, Mode mode, Orientation scrollDirection, TypedArray attrs) {
switch (this) {
case ROTATE:
default:
return new RotateLoadingLayout(context, mode, scrollDirection, attrs);
case FLIP:
return new FlipLoadingLayout(context, mode, scrollDirection, attrs);
case SCALE_ROTATE:
return new ScaleRotateLoadingLayout(context, mode, scrollDirection, attrs);
}
}