inflating fragments with compatibility package android

后端 未结 1 1659
南笙
南笙 2020-12-08 10:32

I am trying to inflate a layout containing a Fragment using the backwards compatibility package. I took the jar file and placed it in the libs folder of my proj

相关标签:
1条回答
  • 2020-12-08 11:09

    Make sure your activity is inheriting from FragmentActivity, otherwise <fragment> does not work. Here is a sample project demonstrating this.

    0 讨论(0)
提交回复
热议问题