nokiax

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

北城余情 提交于 2019-12-01 04:08:26
问题 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 still works, but need a future proof solution), and FragmentTabHost appears to be requiring the v4 fragment to be used (it crashes if the fragment is derived from other one) , then when I try having the com.here.android.mapping.MapFragment used in a layout of one of the tab fragments, then I can not retrieve it for the required