|
29 | 29 |
|
30 | 30 | /** |
31 | 31 | * A subclass of RecyclerView.Adapter responsible for providing views that add header/footer/empty view |
32 | | - * <p/> |
| 32 | + * |
33 | 33 | * author: imilk |
34 | 34 | * https://github.com/Solartisan/TurboRecyclerViewHelper |
35 | 35 | */ |
@@ -81,8 +81,8 @@ public AbsTurboAdapter(Context context) { |
81 | 81 | abstract public int getItemCount(); |
82 | 82 |
|
83 | 83 | /** |
84 | | - * Whether there is data exists |
85 | | - * @return |
| 84 | + * |
| 85 | + * @return Whether there is data exists |
86 | 86 | */ |
87 | 87 | abstract protected boolean isEmpty(); |
88 | 88 |
|
@@ -119,34 +119,17 @@ public final BaseViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { |
119 | 119 |
|
120 | 120 | } |
121 | 121 |
|
122 | | - /** |
123 | | - * custom Loading Footer |
124 | | - * |
125 | | - * @param parent |
126 | | - * @return |
127 | | - */ |
| 122 | + |
128 | 123 | protected BaseViewHolder onCreateLoadingViewHolder(ViewGroup parent) { |
129 | 124 | return null; |
130 | 125 | } |
131 | 126 |
|
132 | | - /** |
133 | | - * create def view holder |
134 | | - * |
135 | | - * @param parent |
136 | | - * @param viewType |
137 | | - * @return |
138 | | - */ |
139 | 127 | abstract protected BaseViewHolder onCreateDefViewHolder(ViewGroup parent, int viewType); |
140 | 128 |
|
141 | 129 | private BaseViewHolder createBaseViewHolder(ViewGroup parent, int layoutResId) { |
142 | 130 | return new BaseViewHolder(inflateItemView(layoutResId, parent)); |
143 | 131 | } |
144 | 132 |
|
145 | | - /** |
146 | | - * @param layoutResId |
147 | | - * @param parent |
148 | | - * @return |
149 | | - */ |
150 | 133 | protected View inflateItemView(int layoutResId, ViewGroup parent) { |
151 | 134 | return mLayoutInflater.inflate(layoutResId, parent, false); |
152 | 135 | } |
@@ -226,7 +209,7 @@ public void removeFooterView(View footer) { |
226 | 209 | } |
227 | 210 |
|
228 | 211 | /** |
229 | | - * Sets the view to show if the adapter is empty |
| 212 | + * @param emptyView Sets the view to show if the adapter is empty |
230 | 213 | */ |
231 | 214 | public void setEmptyView(View emptyView) { |
232 | 215 | mEmptyView = emptyView; |
|
0 commit comments