Android : background=' @ Android : color/transparent ' color name=' transparent ' # 00000000/color//透明颜色名称
样式中style name=' theme.lookboardmap ' parent=' theme.material components.day night.darkactionbar '表示style name=' '
Java代码实现button BTN=findviewbyid (r.id.button ); //设置透明背景的layout的id btn.getBackground ().setalpha ) 100 ); //0到255透明度值