View v = findViewById(R.id.content);//找到你要设透明背景的layout 的id v.getBackground().setAlpha(100);//0~255透明度值 ,0为完全透明,255为不透明View v = findViewById(R.id.content);//找到你要设透
View v = findViewById(R.id.content);//找到你要设透明背景的layout 的id v.getBackground().setAlpha(100);//0~255透明度值 ,0为完全透明,255为不透明View v = findViewById(R.id.content);//找到你要设透