亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

正在回答

3 回答

private ?void changeVolume(float detlaY){
? ?int max = audioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC);//獲得最大音量
? ?int current = audioManager.getStreamVolume(AudioManager.STREAM_MUSIC);//獲取當前音量

? ?int index = (int) (detlaY/screen_height*max*3);
? ?int volume = Math.max(current+index,0);
? ?audioManager.setStreamVolume(AudioManager.STREAM_MUSIC,volume,0);
? ?volume_seek.setProgress(volume);
}
private void changeBrightness(float detlaY){
? ?WindowManager.LayoutParams attributes = getWindow().getAttributes();
? ?mBrightness = attributes.screenBrightness;//獲得當前屏幕的亮度
? ?float index = detlaY/screen_height/3;
? ?mBrightness += index;
? ?if(mBrightness > 1.0f){
? ? ? ?mBrightness = 1.0f;
? ?}
? ?if (mBrightness < 0.01f){
? ? ? ?mBrightness = 0.01f;
? ?}
? ?attributes.screenBrightness = mBrightness;
? ?getWindow().setAttributes(attributes);
}

0 回復 有任何疑惑可以回復我~

copy神器用不了啦。。。。

0 回復 有任何疑惑可以回復我~

我也在想這個問題

1 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

有源碼嗎???

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號