|
@ -1,5 +1,6 @@ |
|
|
package gr.thmmy.mthmmy.activities.main.recent; |
|
|
package gr.thmmy.mthmmy.activities.main.recent; |
|
|
|
|
|
|
|
|
|
|
|
import android.graphics.Color; |
|
|
import android.os.AsyncTask; |
|
|
import android.os.AsyncTask; |
|
|
import android.os.Bundle; |
|
|
import android.os.Bundle; |
|
|
import android.support.v4.widget.SwipeRefreshLayout; |
|
|
import android.support.v4.widget.SwipeRefreshLayout; |
|
@ -107,6 +108,8 @@ public class RecentFragment extends BaseFragment { |
|
|
recyclerView.setAdapter(recentAdapter); |
|
|
recyclerView.setAdapter(recentAdapter); |
|
|
|
|
|
|
|
|
swipeRefreshLayout = rootView.findViewById(R.id.swiperefresh); |
|
|
swipeRefreshLayout = rootView.findViewById(R.id.swiperefresh); |
|
|
|
|
|
swipeRefreshLayout.setProgressBackgroundColorSchemeResource(R.color.primary); |
|
|
|
|
|
swipeRefreshLayout.setColorSchemeResources(R.color.accent); |
|
|
swipeRefreshLayout.setOnRefreshListener( |
|
|
swipeRefreshLayout.setOnRefreshListener( |
|
|
new SwipeRefreshLayout.OnRefreshListener() { |
|
|
new SwipeRefreshLayout.OnRefreshListener() { |
|
|
@Override |
|
|
@Override |
|
|