2014-03-12 36 views
0

如何以編程方式使圖像無色。就像用戶拖動圖像並查看預覽圖像而不是原始圖像一樣。感謝如何以編程方式在android中顯示無色圖像?

enter image description here enter image description here

+0

沒有的東西,當你在你的應用程序列表 –

+0

半透明點擊應用程序圖標什麼樣的? –

+0

我更新可能會提問惠特示例 –

回答

0

若要使ImageView的更透明,使用ImageView.getBackground()setAlpha(INT)。

2

如果你想讓imageview無色或透明使用這個。

imageview.getBackground().setAlpha(255); // start from 0 to 255. 

OR

imageview.setBackgroundResource(android.R.color.transparent); 
相關問題