大佬教程收集整理的这篇文章主要介绍了Android对话框 – 自定义背景而不是变暗或模糊,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
<item name="android:windowIsFloaTing">false</item> <item name="android:windowIsTranslucent">true</item> <item name="android:windowBACkground">@android:color/transparent</item>
>全屏,因为windowIsFloaTing设置为false
>周围区域是完全透明的,因为windowBACkground设置为@android:color / transparent
现在我应该用一个扮演周围区域角色的包装器来包装我的对话框xml布局内容,在这种情况下我选择了FrameLayout:
<FrameLayout xmlns:android="http://scheR_619_11845@as.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:BACkground="@drawable/dialog_BACk"> <!-- this is surrounding area drawable --> <!-- dialog contents goes here --> </FrameLayout>
这是我最后一个对话框的截图:
以上是大佬教程为你收集整理的Android对话框 – 自定义背景而不是变暗或模糊全部内容,希望文章能够帮你解决Android对话框 – 自定义背景而不是变暗或模糊所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。