android.support.v4.app.FragmentManager OR android.app.FragmentManager?

前端 未结 4 1264
走了就别回头了
走了就别回头了 2021-02-08 23:20

I\'m learning Android development. I get stuck at something that should be very easy.

Im creating an App with one Activity, 2 fragments and 1 interface.

         


        
4条回答
  •  梦谈多话
    2021-02-08 23:36

    First of all: your activity should extend FragmentActivity.

    About support libraries. They were introduced to add some functionalities to older Androids. For example Fragments were introduced in Android 3.0 (SDK nr: 11). In fact (according to documentation) in Androids 3.0 < support libary uses system implementation of Fragments.

提交回复
热议问题