View v = findViewById(R.id.content);//找到你要设透明背景的layout 的id v.getBackground().setAlpha(100);//0~255透明度值
本文标题:设置View背景透明度
本文链接:https://www.haomeiwen.com/subject/dcybgttx.html
网友评论