[英]Updating a CircularButton in a custom Fragment created with FragmentGridPagerAdapter
[英]FragmentGridPagerAdapter together with support fragment
我開發了一個具有移動和可穿戴部件的Android應用。 我將一些常見的東西放在共享庫中,例如在移動設備上使用的片段以及可穿戴設備。 不幸的是,該片段是android.support.v4.app.Fragment
擴展,但android.support.wearable.view.FragmentGridPagerAdapter
無法通過getFragment
提供此類支持片段(僅支持android.app.Fragment
)。
是否有支持android.support.v4.app.Fragment
的FragmentGridPagerAdapter
?
我認為您不能使用支持片段。 自從我遇到這個問題以來已經有一段時間了,但最終我只是改變為使用片段。 至少它是直截了當的。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.