ShareActionProvider not clickable and not rendering properly on first render

前端 未结 4 758
無奈伤痛
無奈伤痛 2021-02-08 10:10

I have a ShareActionProvider together with some other options in my ActionBar. It seems however that the ShareActionProvider has problems rendering properly when first rendered

4条回答
  •  别那么骄傲
    2021-02-08 10:27

    So it seems that calling "getActivity().invalidateOptionsMenu()" in onCreateView in the Fragment makes the menu re-render as it should. It should render properly in the first run though, invalidating the menu without making changes to it doesn't feel like a proper solution.

提交回复
热议问题