Dialog themed activity with action bar

前端 未结 1 575
孤城傲影
孤城傲影 2020-12-14 23:34

In a v3 android application, is it possible for an activity that has a dialog theme (e.g.: Theme.Holo.Dialog) to have an action bar? I tried adjusting the windowIsFloating A

相关标签:
1条回答
  • 2020-12-14 23:42

    The Dialog Theme wasn't designed to display an ActionBar. Read this for more information.

    When using a Dialog you want the user to choose between different options and make some decisions. I don't know what your Use-Case is but you better change your UI-Design so that you can manage your use-case with another solution. A solution Android was designed for.

    If you really want to use a Dialog with a ActionBar, you can create your own by using a Custom Dialog with a custom layout and build a ActionBar clone-layout.

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