Since the Android getFragmentManager() API is deprecated, is there any alternative?

前端 未结 12 1542
梦毁少年i
梦毁少年i 2020-12-05 06:47

FragmentManager is deprecated. Is there an alternative or what can I do now?

 PlaceAutocompleteFragment autocompleteFragment = (PlaceAutocomplet         


        
12条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-05 07:24

    Use Support Library overcome this issue.

    As per documentation Fragment class has been deprecated:

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

提交回复
热议问题