当前位置:网站首页>Implementing fillet in custom dialog

Implementing fillet in custom dialog

2022-06-13 02:40:00 And white

style Create in file

   <style name="my_dialog_style"> <!--  Actually, it's useful in this field , Others are optional  --> <item name="android:windowBackground">@android:color/transparent</item> <item name="android:windowNoTitle">true</item> <item name="android:windowIsFloating">true</item> <item name="android:windowFrame">@null</item> <item name="android:windowContentOverlay">@null</item> <item name="android:windowAnimationStyle">@android:style/Animation.Dialog</item> <item name="android:windowIsTranslucent">true</item> <item name="android:backgroundDimEnabled">true</item> </style>

Use

  1. It's on its own dialog Is used in the second parameter of the construct R.style.my_dialog_style
  2. Self defined diallo The root layout of the layout directly uses shape Fillet is OK
原网站

版权声明
本文为[And white]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202280539043825.html