How to dim a screen on click of a button in android?
问题 How do i darken/dim the current screen on click of a button. PLease help me. 回答1: Here's one solution, though it may not be the best: create styles.xml under res/values. Add the following code: <style name="Theme.Translucent" parent="android:Theme"> <item name="android:windowIsTranslucent">true</item> <item name="android:windowBackground">@color/cache_color</item> <item name="android:windowContentOverlay">@null</item> <item name="android:windowNoTitle">true</item> <item name="android