【问题标题】:CustomView in ActionBar is being removed when DialogFragment shows in Android当 DialogFragment 在 Android 中显示时,ActionBar 中的 CustomView 被删除
【发布时间】:2014-07-09 05:44:44
【问题描述】:

我在平板电脑上的 ActionBar 中遇到自定义视图问题。

I have two fragments added side by side. Left fragment contains a listview and adding the custom view in the ActionBar.

Right fragment shows some details. Now when I invoke a DialogFragment, it removes the custom view in the ActionBar.

谁能建议我解决这个问题?

【问题讨论】:

    标签: android android-activity android-fragments android-actionbar android-dialogfragment


    【解决方案1】:

    没关系。导致此问题的 DialogFragment 中有一些错误。我在 DialogFragment 中设置了 setDisplayShowCustomEnabled(false)。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多