I want to have a download icon displayed on top of where the RecyclerView will be, and disappear when the data download is complete.
It will look like this:

Can anyone help me out?
I have a code that shows a TextView over a RecyclerView that says βLoading ...β and disappears after loading the data, but the RecyclerView is still showing.
My XML:
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/loaderTV" android:text="Loading..." android:layout_above="@+id/eventListRV"/> <android.support.v7.widget.RecyclerView android:scrollbars="vertical" android:id="@+id/eventListRV" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_below="@+id/spinner"> </android.support.v7.widget.RecyclerView>
And then in my code
client.listCreators(request, new Callback<ServiceResponse<Event>>() { @Override public void success(ServiceResponse<Event> eventServiceResponse, Response response) { eventList.addAll(eventServiceResponse.data.results); Log.i("tag", String.valueOf(eventServiceResponse.data.total)); if (eventList.size() > 60) { adapter.notifyDataSetChanged(); loadingText.setVisibility(View.GONE); } }
But I want the RecyclerView to be invisible during data loading, and I want the progress bar to be on, where the RecyclerView is, and I don't want it to be a textview
source share