This repository was archived by the owner on Nov 4, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
SuperRecyclerView/src/main/java/com/malinskiy/superrecyclerview Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 1
1
package com .malinskiy .superrecyclerview ;
2
2
3
- import com .malinskiy .superrecyclerview .swipe .SwipeDismissRecyclerViewTouchListener ;
4
- import com .malinskiy .superrecyclerview .util .FloatUtil ;
5
-
6
3
import android .content .Context ;
7
4
import android .content .res .TypedArray ;
8
5
import android .support .annotation .ColorRes ;
17
14
import android .view .ViewStub ;
18
15
import android .widget .FrameLayout ;
19
16
17
+ import com .malinskiy .superrecyclerview .swipe .SwipeDismissRecyclerViewTouchListener ;
18
+ import com .malinskiy .superrecyclerview .util .FloatUtil ;
19
+
20
20
public class SuperRecyclerView extends FrameLayout {
21
21
22
22
protected int ITEM_LEFT_TO_LOAD_MORE = 10 ;
@@ -375,6 +375,11 @@ public void showProgress() {
375
375
*/
376
376
public void showRecycler () {
377
377
hideProgress ();
378
+ if (mRecycler .getAdapter ().getItemCount () == 0 && mEmptyId != 0 ) {
379
+ mEmpty .setVisibility (View .VISIBLE );
380
+ } else if (mEmptyId != 0 ) {
381
+ mEmpty .setVisibility (View .GONE );
382
+ }
378
383
mRecycler .setVisibility (View .VISIBLE );
379
384
}
380
385
You can’t perform that action at this time.
0 commit comments