【问题标题】:How to blur or Fade screen when pop up show in activtity in android [duplicate]如何在android中的活动中显示弹出窗口时模糊或淡化屏幕[重复]
【发布时间】:2012-10-18 05:55:54
【问题描述】:

可能重复:
Blur or dim background when Android PopupWindow active

当我的自定义弹出窗口显示在我的活动中时,我想模糊或淡化屏幕。 我使用弹出窗口类制作了自定义弹出窗口。但是当弹出显示 那么我的活动布局不会模糊或变暗或褪色,所以请帮助我实现这一点。 提前致谢

LayoutInflater inflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);
View layoutInflate = inflater.inflate(R.layout.custom_dialog_layout, relativeLayout);     
PopupWindow tagPopupWindow tagPopupWindow = new PopupWindow(layoutInflate, width, LayoutParams.WRAP_CONTENT);

【问题讨论】:

    标签: android android-intent


    【解决方案1】:

    似乎与Blur or dim background when Android PopupWindow active 重复。

    我还建议您改用 Dialog。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-11-26
      • 1970-01-01
      • 1970-01-01
      • 2014-09-19
      • 1970-01-01
      • 1970-01-01
      • 2010-09-15
      相关资源
      最近更新 更多