How to increase brightness in a particular region in android -


The Bwlow code is increasing the brightness of the entire screen but I am taking a special area in XML (like taking a 100 * linear layout * 100), and I do not want to increase the brightness of that particular (linear layout) area only on the whole screen I am
  getWindow () SetAttributes (l); WindowManager.LayoutParams l = getWindow (). GetAttributes (); Lll8.screenBrightness = 1.0f; . GetWindow () setAttributes (L);    

Use two layouts and set two different alpha values ​​for them so that different brightness Levels can be achieved by a single screen.

Another way is to use the gradient texture (shade with color in color, which you want less brightness), place it in a drawer folder and insert it in XML and align it on top mother-father.

Hope you have code to set the brightness.

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -