Android設置任何控件透明度

兩種方式實現Android設置控件透明度。html 一、java代碼實現:java View v = findViewById(R.id.content);//找到你要設透明背景的layout的id v.getBackground().setAlpha(100);//0~255透明度值   二、xml文件中實現:android <Button android:background="#e00000
相關文章
相關標籤/搜索