Commit da792c5 1 parent 59077c9 commit da792c5 Copy full SHA for da792c5
File tree 3 files changed +12
-1
lines changed
java/com/haotran/documentscanner/fragments
3 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -156,12 +156,15 @@ void showFiles() {
156
156
switch (position ) {
157
157
case 0 :
158
158
setAdapterByDay ();
159
+ if (mMovieList .size () == 0 ) getView ().findViewById (R .id .empty ).setVisibility (View .VISIBLE );
159
160
break ;
160
161
case 1 :
161
162
setAdapterByDayStorage ();
163
+ if (mMovieListStorage .size () == 0 ) getView ().findViewById (R .id .empty ).setVisibility (View .VISIBLE );
162
164
break ;
163
165
case 2 :
164
166
setAdapterByDayUploaded ();
167
+ if (mMovieListUploaded .size () == 0 ) getView ().findViewById (R .id .empty ).setVisibility (View .VISIBLE );
165
168
break ;
166
169
// case 3:
167
170
// setAdapterWithGridLayout();
Original file line number Diff line number Diff line change 48
48
android : id =" @+id/tabLayout"
49
49
android : layout_width =" match_parent"
50
50
android : layout_height =" wrap_content"
51
-
51
+ app : tabIndicatorColor = " @color/white "
52
52
app : layout_constraintTop_toBottomOf =" @+id/toolbar"
53
53
app : layout_constraintEnd_toEndOf =" parent"
54
54
app : layout_constraintBottom_toTopOf =" @+id/grid"
Original file line number Diff line number Diff line change 10
10
android : id =" @+id/recyclerView"
11
11
android : scrollbars =" vertical" />
12
12
13
+ <TextView
14
+ android : id =" @+id/empty"
15
+ android : visibility =" gone"
16
+ android : layout_width =" wrap_content"
17
+ android : layout_height =" wrap_content"
18
+ android : layout_gravity =" center"
19
+ android : text =" Currently empty" />
20
+
13
21
</FrameLayout >
You can’t perform that action at this time.
0 commit comments