GeezerVison is showing github.com — 更新文档 · tao2java/SmartRefreshLayout@bcce20d
File treeExpand file treeCollapse file tree Open diff view settings src/main/java/com/scwang/refreshlayout/fragment
src/main/java/com/scwang/smartrefresh/layout
Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: .gitignore +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 6 | 6 | /build | 7 | 7 | /gradlew | 8 | 8 | /gradlew.bat | | 9 | +/gradle.properties | 9 | 10 | /bintrayUpload-key.bat |
Collapse file Copy file name to clipboardExpand all lines: app/build.gradle +11-11Lines changed: 11 additions & 11 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -49,31 +49,31 @@ dependencies { | 49 | 49 | exclude group: 'com.android.support', module: 'support-annotations' | 50 | 50 | }) | 51 | 51 |
| 52 | | - debugCompile 'com.squareup.leakcanary:leakcanary-android:1.5.1' | 53 | | - releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.1' | 54 | | - testCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.1' | | 52 | + debugCompile 'com.squareup.leakcanary:leakcanary-android:1.5.4' | | 53 | + releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.4' | | 54 | + testCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.4' | 55 | 55 |
| 56 | 56 | compile project(':refresh-footer') | 57 | 57 | compile project(':refresh-header') | 58 | 58 | compile project(':refresh-layout') | 59 | 59 |
| 60 | | - compile 'com.android.support:design:27.0.0' | 61 | | - compile 'com.android.support:cardview-v7:27.0.0' | | 60 | + compile 'com.android.support:design:27.0.1' | | 61 | + compile 'com.android.support:cardview-v7:27.0.1' | 62 | 62 | compile 'com.android.support.constraint:constraint-layout:1.0.2' | 63 | 63 | compile 'com.flyco.roundview:FlycoRoundView_Lib:1.1.4@aar' | 64 | | - compile 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.22' | | 64 | + compile 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.31' | 65 | 65 | compile 'com.github.czy1121:loadinglayout:1.0.1' | 66 | 66 | compile 'com.github.mmin18:realtimeblurview:1.0.6' | 67 | | - compile 'com.google.code.gson:gson:2.7' | | 67 | + compile 'com.google.code.gson:gson:2.8.0' | 68 | 68 | compile 'com.wang.avi:library:2.1.3' | 69 | 69 | compile 'com.youth.banner:banner:1.4.9' //最新版本 | 70 | 70 | compile 'de.hdodenhof:circleimageview:2.1.0' | 71 | 71 | compile 'jp.wasabeef:recyclerview-animators:2.2.6' | 72 | 72 | compile 'pl.droidsonroids.gif:android-gif-drawable:1.2.3' | 73 | | -// compile 'com.scwang.smartrefresh:SmartRefreshLayout:1.0.4-alpha-9' | 74 | | -// compile 'com.scwang.smartrefresh:SmartRefreshHeader:1.0.4-alpha-9' | | 73 | +// compile 'com.scwang.smartrefresh:SmartRefreshLayout:1.0.4-alpha-12' | | 74 | +// compile 'com.scwang.smartrefresh:SmartRefreshHeader:1.0.4-alpha-12' | 75 | 75 | testCompile 'junit:junit:4.12' | 76 | 76 |
| 77 | | - compile 'com.github.bumptech.glide:glide:4.0.0-RC1' | 78 | | - annotationProcessor 'com.github.bumptech.glide:compiler:4.0.0-RC1' | | 77 | + compile 'com.github.bumptech.glide:glide:4.2.0' | | 78 | + annotationProcessor 'com.github.bumptech.glide:compiler:4.2.0' | 79 | 79 | } |
Collapse file Copy file name to clipboardExpand all lines: app/src/main/java/com/scwang/refreshlayout/fragment/index/RefreshPractiveFragment.java +3-2Lines changed: 3 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 3 | 3 |
| 4 | 4 | import android.content.Intent; | 5 | 5 | import android.os.Bundle; | | 6 | +import android.support.annotation.NonNull; | 6 | 7 | import android.support.annotation.Nullable; | 7 | 8 | import android.support.v4.app.Fragment; | 8 | 9 | import android.support.v7.widget.DefaultItemAnimator; | @@ -56,12 +57,12 @@ private enum Item { | 56 | 57 | } | 57 | 58 |
| 58 | 59 | @Override | 59 | | - public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { | | 60 | + public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { | 60 | 61 | return inflater.inflate(R.layout.fragment_refresh_practive, container, false); | 61 | 62 | } | 62 | 63 |
| 63 | 64 | @Override | 64 | | - public void onViewCreated(View root, @Nullable Bundle savedInstanceState) { | | 65 | + public void onViewCreated(@NonNull View root, @Nullable Bundle savedInstanceState) { | 65 | 66 | super.onViewCreated(root, savedInstanceState); | 66 | 67 | StatusBarUtil.setPaddingSmart(getContext(), root.findViewById(R.id.toolbar)); | 67 | 68 |
| |
Collapse file Copy file name to clipboardExpand all lines: app/src/main/java/com/scwang/refreshlayout/fragment/index/RefreshStylesFragment.java +3-2Lines changed: 3 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 3 | 3 |
| 4 | 4 | import android.content.Intent; | 5 | 5 | import android.os.Bundle; | | 6 | +import android.support.annotation.NonNull; | 6 | 7 | import android.support.annotation.Nullable; | 7 | 8 | import android.support.annotation.StringRes; | 8 | 9 | import android.support.v4.app.Fragment; | @@ -73,12 +74,12 @@ private enum Item { | 73 | 74 | } | 74 | 75 |
| 75 | 76 | @Override | 76 | | - public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { | | 77 | + public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { | 77 | 78 | return inflater.inflate(R.layout.fragment_refresh_styles, container, false); | 78 | 79 | } | 79 | 80 |
| 80 | 81 | @Override | 81 | | - public void onViewCreated(View root, @Nullable Bundle savedInstanceState) { | | 82 | + public void onViewCreated(@NonNull View root, @Nullable Bundle savedInstanceState) { | 82 | 83 | super.onViewCreated(root, savedInstanceState); | 83 | 84 | StatusBarUtil.setPaddingSmart(getContext(), root.findViewById(R.id.toolbar)); | 84 | 85 |
| |
Collapse file Copy file name to clipboardExpand all lines: app/src/main/java/com/scwang/refreshlayout/fragment/index/RefreshUsingFragment.java +3-2Lines changed: 3 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 4 | 4 | import android.app.Activity; | 5 | 5 | import android.content.Intent; | 6 | 6 | import android.os.Bundle; | | 7 | +import android.support.annotation.NonNull; | 7 | 8 | import android.support.annotation.Nullable; | 8 | 9 | import android.support.v4.app.Fragment; | 9 | 10 | import android.support.v7.widget.DefaultItemAnimator; | @@ -63,12 +64,12 @@ private enum Item { | 63 | 64 | } | 64 | 65 |
| 65 | 66 | @Override | 66 | | - public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { | | 67 | + public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { | 67 | 68 | return inflater.inflate(R.layout.fragment_refresh_using, container, false); | 68 | 69 | } | 69 | 70 |
| 70 | 71 | @Override | 71 | | - public void onViewCreated(View root, @Nullable Bundle savedInstanceState) { | | 72 | + public void onViewCreated(@NonNull View root, @Nullable Bundle savedInstanceState) { | 72 | 73 | super.onViewCreated(root, savedInstanceState); | 73 | 74 | StatusBarUtil.setPaddingSmart(getContext(), root.findViewById(R.id.toolbar)); | 74 | 75 |
| |
Collapse file Copy file name to clipboardExpand all lines: app/src/main/java/com/scwang/refreshlayout/fragment/using/EmptyLayoutUsingFragment.java +3-2Lines changed: 3 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 4 | 4 | import android.app.Activity; | 5 | 5 | import android.content.Intent; | 6 | 6 | import android.os.Bundle; | | 7 | +import android.support.annotation.NonNull; | 7 | 8 | import android.support.annotation.Nullable; | 8 | 9 | import android.support.v4.app.Fragment; | 9 | 10 | import android.support.v7.widget.DefaultItemAnimator; | @@ -59,12 +60,12 @@ public enum Item { | 59 | 60 | private static boolean mIsNeedDemo = true; | 60 | 61 |
| 61 | 62 | @Override | 62 | | - public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { | | 63 | + public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { | 63 | 64 | return inflater.inflate(R.layout.fragment_using_emptylayout, container, false); | 64 | 65 | } | 65 | 66 |
| 66 | 67 | @Override | 67 | | - public void onViewCreated(View root, @Nullable Bundle savedInstanceState) { | | 68 | + public void onViewCreated(@NonNull View root, @Nullable Bundle savedInstanceState) { | 68 | 69 | super.onViewCreated(root, savedInstanceState); | 69 | 70 |
| 70 | 71 | final Toolbar toolbar = (Toolbar)root.findViewById(R.id.toolbar); | |
Collapse file Copy file name to clipboardExpand all lines: app/src/main/java/com/scwang/refreshlayout/fragment/using/EmptyLayoutUsingFragmentInner.java +3-2Lines changed: 3 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 4 | 4 | import android.app.Activity; | 5 | 5 | import android.content.Intent; | 6 | 6 | import android.os.Bundle; | | 7 | +import android.support.annotation.NonNull; | 7 | 8 | import android.support.annotation.Nullable; | 8 | 9 | import android.support.v4.app.Fragment; | 9 | 10 | import android.support.v7.widget.DefaultItemAnimator; | @@ -47,12 +48,12 @@ public class EmptyLayoutUsingFragmentInner extends Fragment implements AdapterVi | 47 | 48 | private static boolean mIsNeedDemo = true; | 48 | 49 |
| 49 | 50 | @Override | 50 | | - public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { | | 51 | + public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { | 51 | 52 | return inflater.inflate(R.layout.fragment_using_emptylayout_inner, container, false); | 52 | 53 | } | 53 | 54 |
| 54 | 55 | @Override | 55 | | - public void onViewCreated(View root, @Nullable Bundle savedInstanceState) { | | 56 | + public void onViewCreated(@NonNull View root, @Nullable Bundle savedInstanceState) { | 56 | 57 | super.onViewCreated(root, savedInstanceState); | 57 | 58 |
| 58 | 59 | final Toolbar toolbar = (Toolbar)root.findViewById(R.id.toolbar); | |
Collapse file Copy file name to clipboardExpand all lines: app/src/main/java/com/scwang/refreshlayout/fragment/using/EmptyLayoutUsingFragmentOuter.java +3-2Lines changed: 3 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 4 | 4 | import android.app.Activity; | 5 | 5 | import android.content.Intent; | 6 | 6 | import android.os.Bundle; | | 7 | +import android.support.annotation.NonNull; | 7 | 8 | import android.support.annotation.Nullable; | 8 | 9 | import android.support.v4.app.Fragment; | 9 | 10 | import android.support.v7.widget.DefaultItemAnimator; | @@ -44,12 +45,12 @@ public class EmptyLayoutUsingFragmentOuter extends Fragment implements AdapterVi | 44 | 45 | private RefreshLayout mRefreshLayout; | 45 | 46 |
| 46 | 47 | @Override | 47 | | - public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { | | 48 | + public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { | 48 | 49 | return inflater.inflate(R.layout.fragment_using_emptylayout_outer, container, false); | 49 | 50 | } | 50 | 51 |
| 51 | 52 | @Override | 52 | | - public void onViewCreated(View root, @Nullable Bundle savedInstanceState) { | | 53 | + public void onViewCreated(@NonNull View root, @Nullable Bundle savedInstanceState) { | 53 | 54 | super.onViewCreated(root, savedInstanceState); | 54 | 55 |
| 55 | 56 | final Toolbar toolbar = (Toolbar)root.findViewById(R.id.toolbar); | |
Collapse file Copy file name to clipboardExpand all lines: app/src/main/java/com/scwang/refreshlayout/fragment/using/NestedScrollUsingFragment.java +3-2Lines changed: 3 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 4 | 4 | import android.app.Activity; | 5 | 5 | import android.content.Intent; | 6 | 6 | import android.os.Bundle; | | 7 | +import android.support.annotation.NonNull; | 7 | 8 | import android.support.annotation.Nullable; | 8 | 9 | import android.support.design.widget.AppBarLayout; | 9 | 10 | import android.support.v4.app.Fragment; | @@ -46,12 +47,12 @@ public enum Item { | 46 | 47 | } | 47 | 48 |
| 48 | 49 | @Override | 49 | | - public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { | | 50 | + public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { | 50 | 51 | return inflater.inflate(R.layout.fragment_using_nestedscroll, container, false); | 51 | 52 | } | 52 | 53 |
| 53 | 54 | @Override | 54 | | - public void onViewCreated(final View root, @Nullable Bundle savedInstanceState) { | | 55 | + public void onViewCreated(@NonNull final View root, @Nullable Bundle savedInstanceState) { | 55 | 56 | super.onViewCreated(root, savedInstanceState); | 56 | 57 |
| 57 | 58 | Toolbar toolbar = (Toolbar) root.findViewById(R.id.toolbar); | |
Collapse file Copy file name to clipboardExpand all lines: app/src/main/java/com/scwang/refreshlayout/fragment/using/NestedScrollUsingFragmentIntegral.java +3-2Lines changed: 3 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 3 | 3 |
| 4 | 4 | import android.content.Context; | 5 | 5 | import android.os.Bundle; | | 6 | +import android.support.annotation.NonNull; | 6 | 7 | import android.support.annotation.Nullable; | 7 | 8 | import android.support.v4.app.Fragment; | 8 | 9 | import android.support.v7.widget.DefaultItemAnimator; | @@ -44,12 +45,12 @@ public class NestedScrollUsingFragmentIntegral extends Fragment implements Adapt | 44 | 45 | private BaseRecyclerAdapter<Item> mAdapter; | 45 | 46 |
| 46 | 47 | @Override | 47 | | - public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { | | 48 | + public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { | 48 | 49 | return inflater.inflate(R.layout.fragment_using_nestedscroll_integral, container, false); | 49 | 50 | } | 50 | 51 |
| 51 | 52 | @Override | 52 | | - public void onViewCreated(final View root, @Nullable Bundle savedInstanceState) { | | 53 | + public void onViewCreated(@NonNull final View root, @Nullable Bundle savedInstanceState) { | 53 | 54 | super.onViewCreated(root, savedInstanceState); | 54 | 55 |
| 55 | 56 | Toolbar toolbar = (Toolbar) root.findViewById(R.id.toolbar); | |
|