0
即时消息使用图像为我的布局背景是否有任何方式来在xml中不透明? 我使用android:alpha="2"
但没有任何事情发生!如何在Android中为布局背景设置不透明度(Alpha)?
即时消息使用图像为我的布局背景是否有任何方式来在xml中不透明? 我使用android:alpha="2"
但没有任何事情发生!如何在Android中为布局背景设置不透明度(Alpha)?
试试这个:
View backgroundImage = findViewById(R.id.background_image);
Drawable background = backgroundImage.getBackground();
background.setAlpha(80);
它是一个布局的背景不是一个ImageView的 – farshid83