ActionBarSherlock: how to access home button view?

后端 未结 1 1168
名媛妹妹
名媛妹妹 2020-12-30 14:56

I am using ActionBarSherlock and want a similiar functionality of the home button as it is known by Google Maps.

相关标签:
1条回答
  • 2020-12-30 15:25

    You cannot access the home view because it exists above the content view and in the window decoration.

    Google uses a custom action bar on pre-Honeycomb devices which exists inside the content view. This is what allows them to make this custom dropdown. On Honeycomb and newer they use a highly customized version of list navigation in the system action bar.

    Since you are using ActionBarSherlock you have two options:

    1. Go for the newer style navigation and customize the built-in list navigation.
    2. Supply a custom navigation view which mimics the home view (e.g., has your app icon in it). With this custom view you will be able to provide an anchor on which the custom popup menu can be attached.
    0 讨论(0)
提交回复
热议问题