mpcjanssen / simpletask-android

GNU General Public License v3.0
549 stars 128 forks source link

Swipe to refresh #557

Open smichel17 opened 8 years ago

smichel17 commented 8 years ago

swipe-reload Bad quality from webm -> gif conversion

smichel17 commented 8 years ago

This doesn't seem difficult. I'll look in to it.

smichel17 commented 8 years ago

It's really easy. See https://developer.android.com/training/swipe/index.html

Summary:

mySwipeRefreshLayout.setOnRefreshListener(
    new SwipeRefreshLayout.OnRefreshListener() {
        @Override
        public void onRefresh() {
            Log.i(LOG_TAG, "onRefresh called from SwipeRefreshLayout");

            // This method performs the actual data-refresh operation.
            // The method calls setRefreshing(false) when it's finished.
            myUpdateOperation();
        }
    }
);

I'm not going to implement it right now, but only because it's a dropbox-only feature, so I want to implement #590 first so we don't need to duplicate xml.