How to mix android.support.v4.app.Fragment and android.app.Fragment

后端 未结 1 1602
囚心锁ツ
囚心锁ツ 2021-01-13 05:34

I\'m having a problem with com.here.android.mapping.MapFragment when trying to use it with tabs.

The issue comes that since the TabActivity is deprecated(I know it

相关标签:
1条回答
  • 2021-01-13 06:24

    The android.support.v4.app.Fragment and the android.app.Fragment classes can't be used interchangeably.

    Nokia have created com.here.android.mapping.MapCompatibilityFragment which extends android.support.v4.app.Fragment - use that instead if your app uses support fragments.

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