Fragment or Support Fragment?

前端 未结 5 2141

I am developing an app that supports Android >= 4.0. It uses fragments from the android.app package. As I am facing problems with the older fragment implementat

5条回答
  •  天命终不由人
    2020-11-28 20:42

    It seems that it is better to use Support Library now because I saw the statement here https://developer.android.com/reference/android/app/Fragment.html

    This class was deprecated in API level P. Use the Support Library Fragment for consistent behavior across all devices and access to Lifecycle.

提交回复
热议问题