Last night updated the next Android SDK Manager, found that extras under the Android Support Library has been updated to 19.1, on the Internet to check the original is sdk\extras\android\support\ New content has been added to the ANDROID-SUPPORT-V7 directory in V7. According to the official introduction, ANDROID-SUPPORT-V7 has added a drop-down refresh (swiperefreshlayout) control and is compatible with Actionbar under the lower version. Swiperefreshlayout controls are easy to use, but unlike the Android-pulltorefresh I used before, the top of Android-pulltorefresh is loaded with a circular progress bar or arrow. It is used as a view, the limitations are larger, while support for pull-up loads more, while swiperefreshlayout is actually used as a viewgroup, that is, he must nest a ListView or ScrollView, extensibility is strong, The swiperefreshlayout display is displayed in a horizontal linear gradient to show the load. As for our use of that good, because of the project and demand, and Google and GitHub have detailed instructions and examples, I will not elaborate.
The main want to say is to use ANDROID-SUPPORT-V7 in the lower version of compatible Actionbar. Most Android-aware, Android 3.0 has added fragments (fragment) and Actionbar two heavyweight components for a better display on large-screen Android systems such as tablets. Fragments's flexibility is needless to say (many people have now developed a activity+n fragment). Actionbar's strength and aesthetics have also won the popularity of many developers. However, only Android 3.0 or more can be used, but also a lot of developers to discourage. So abroad there are people imitation of the official actionbar to achieve a compatible low version of the Actionbarsherlock (official website: http://actionbarsherlock.com/), Of course there is another version of the Actionbar is also good (Https://github.com/johannilsson/android-actionbar). These two versions are the best choice for developers who previously wanted to use Actionbar but wanted to be compatible with the lower version. Now, since the official website out of a compatible version of the Actionbar package, or with the official better. Of course, the API of the official Compatibility Pack is also very simple and easy to use. Here are the sample addresses I have written in accordance with the official ANDROID-SUPPORT-V7 Compatibility Pack:
Https://github.com/alishaoxiong/android-support-v7_ActionBarActivityExample
There are currently two main questions:
1, at the same time with preferences and actionbar how to achieve?
2, not through inheritance, through the code can be how to achieve actionbar?
above two issues when I use Actionbarsherlock is achievable, but using the official Compatibility Pack does not find a specific solution, if there are friends who know, can tell me under, thank you.