Brightness Screen Filter

后端 未结 4 1623
暖寄归人
暖寄归人 2020-12-07 15:54

Does anyone have an idea how to implement an Brightness Screen Filter like the one here:

http://www.appbrain.com/app/screen-filter/com.haxor

I need a startin

4条回答
  •  情话喂你
    2020-12-07 16:44

    You ca try this also:

    protected void onCreate(Bundle savedInstanceState) {
    
            super.onCreate(savedInstanceState);
    
            setContentView(R.layout.max_bright);
    
    
    
            WindowManager.LayoutParams lp = getWindow().getAttributes();
    
            lp.screenBrightness = 100 / 100.0f;
    
            getWindow().setAttributes(lp);
    
        }
    

提交回复
热议问题