//改变屏幕透明度
public void startAlphAnimotion() {
WindowManager.LayoutParams ll = getWindow().getAttributes();
ll.alpha = 0.7f;
getWindow().setAttributes(ll);
}
//恢复屏幕透明度
public void endAlphAnimotion() {
WindowManager.LayoutParams ll = getWindow().getAttributes();
ll.alpha = 1;
getWindow().setAttributes(ll);
}
public void startAlphAnimotion() {
WindowManager.LayoutParams ll = getWindow().getAttributes();
ll.alpha = 0.7f;
getWindow().setAttributes(ll);
}
//恢复屏幕透明度
public void endAlphAnimotion() {
WindowManager.LayoutParams ll = getWindow().getAttributes();
ll.alpha = 1;
getWindow().setAttributes(ll);
}