Tools - Screen Brightness

Anmol dwivedi
0

WindowManager.LayoutParams layout = getWindow().getAttributes();
layout.screenBrightness = 0.5F ; getWindow().setAttributes(layout);

// 0.5 is %50
// 1 is %100

Post a Comment

0 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.
Post a Comment (0)
Our website uses cookies to enhance your experience. Learn More
Accept !