AndroidSlinger
AndroidSlinger

Reputation: 75

How to use SwipeRefreshLayout in app targeting API level 14?

Google recently added the SwipeRefreshLayout to the support library.

What's the most straightforward and proper way to be able to use this in an app that is targeting API level 14 that has previously been using the regular APIs for things like fragments?

Upvotes: 1

Views: 1554

Answers (1)

Kai
Kai

Reputation: 15476

Since it's in the support library, you can simply include the library and use it. If you are referring to whether or not it can work with native Fragment instead of Fragment provided by the support library, it can.

It basically is just a decorator over a ListView or a ScrollView, you can follow the tutorial here: http://antonioleiva.com/swiperefreshlayout/

Upvotes: 2

Related Questions