Skip to content

Commit da792c5

Browse files
committed
currently empty,tabIndicator color
1 parent 59077c9 commit da792c5

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

documentscanner/src/main/java/com/haotran/documentscanner/fragments/CaptureResultFragment.java

+3
Original file line numberDiff line numberDiff line change
@@ -156,12 +156,15 @@ void showFiles() {
156156
switch (position) {
157157
case 0:
158158
setAdapterByDay();
159+
if (mMovieList.size() == 0) getView().findViewById(R.id.empty).setVisibility(View.VISIBLE);
159160
break;
160161
case 1:
161162
setAdapterByDayStorage();
163+
if (mMovieListStorage.size() == 0) getView().findViewById(R.id.empty).setVisibility(View.VISIBLE);
162164
break;
163165
case 2:
164166
setAdapterByDayUploaded();
167+
if (mMovieListUploaded.size() == 0) getView().findViewById(R.id.empty).setVisibility(View.VISIBLE);
165168
break;
166169
// case 3:
167170
// setAdapterWithGridLayout();

documentscanner/src/main/res/layout/activity_capture.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
android:id="@+id/tabLayout"
4949
android:layout_width="match_parent"
5050
android:layout_height="wrap_content"
51-
51+
app:tabIndicatorColor="@color/white"
5252
app:layout_constraintTop_toBottomOf="@+id/toolbar"
5353
app:layout_constraintEnd_toEndOf="parent"
5454
app:layout_constraintBottom_toTopOf="@+id/grid"

documentscanner/src/main/res/layout/fragment_capture_t.xml

+8
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,12 @@
1010
android:id="@+id/recyclerView"
1111
android:scrollbars="vertical"/>
1212

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+
1321
</FrameLayout>

0 commit comments

Comments
 (0)