简体   繁体   中英

android.support.v4.app.Fragment disadvantages

Before changing my entire app to v4 fragments, can someone tell me if there're important disadvantages I should take under consideration? What are the differences between the original fragment and the v4 one?

This library used to write apps that run on platforms prior to Android 3.0 , Also when running on Android 3.0 or above, this implementation is still used.
The main differences when using this support version instead of the framework fragment version are:

-Your activity must extend FragmentActivity
-You must call getSupportFragmentManager() to get the FragmentManager

There are no obvious disadvantages to use support library to develop android app. Conversely, there might be some problem if you don't use support library in your android app.

The official document suggest we should consider to use support library for best practices when develop our android app. We can improve the app performance, UI and backward compatibility when using the features provided in support library.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM