File tree Expand file tree Collapse file tree
library/src/main/java/com/ztiany/loadmore/adapter Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010/**
1111 * @author Ztiany
1212 */
13- public class DefaultLoadMoreView extends FrameLayout implements ILoadMoreView {
13+ public class DefaultLoadMoreView extends FrameLayout implements LoadMoreView {
1414
1515 private String mNoMoreMsg = "" ;
1616 private String mFailMsg = "" ;
Original file line number Diff line number Diff line change @@ -242,27 +242,27 @@ private void processAutoHiddenWhenNoMore() {
242242 private static class LoadMoreViewCaller {
243243
244244 static void callLoading (View view ) {
245- if (view instanceof ILoadMoreView ) {
246- ((ILoadMoreView ) view ).onLoading ();
245+ if (view instanceof LoadMoreView ) {
246+ ((LoadMoreView ) view ).onLoading ();
247247 }
248248 }
249249
250250 static void callCompleted (View view , boolean hasMore ) {
251251 Log .d ("MORE" , hasMore + "" );
252- if (view instanceof ILoadMoreView ) {
253- ((ILoadMoreView ) view ).onCompleted (hasMore );
252+ if (view instanceof LoadMoreView ) {
253+ ((LoadMoreView ) view ).onCompleted (hasMore );
254254 }
255255 }
256256
257257 static void callShowClickLoad (View view ) {
258- if (view instanceof ILoadMoreView ) {
259- ((ILoadMoreView ) view ).onClickLoad ();
258+ if (view instanceof LoadMoreView ) {
259+ ((LoadMoreView ) view ).onClickLoad ();
260260 }
261261 }
262262
263263 static void callFail (View view ) {
264- if (view instanceof ILoadMoreView ) {
265- ((ILoadMoreView ) view ).onFail ();
264+ if (view instanceof LoadMoreView ) {
265+ ((LoadMoreView ) view ).onFail ();
266266 }
267267 }
268268 }
Original file line number Diff line number Diff line change 11package com .ztiany .loadmore .adapter ;
22
33
4- public interface ILoadMoreView {
4+ public interface LoadMoreView {
55
66 void onLoading ();
77
You can’t perform that action at this time.
0 commit comments