背景透明

View v = findViewById(R.id.content);//找到你要透明背景的layout的id

v.getBackground().setAlpha(100);//0~255透明度值