0

我想让底部的按钮像谷歌地图一样透明。我的问题是当我将按钮覆盖在地图上时,地图的某些部分由于按钮而变得不可见,所以我需要一个与谷歌地图应用程序相同的半透明按钮。另外,我如何移动默认存在的地图中的默认缩放控件和“Google”文本,以便在放置按钮时不会覆盖它们..

4

1 回答 1

0

View.setAlpha(float) / android:alpha:- Sets the opacity of the view. This is a value from 0 to 1, where 0 means the view is completely transparent and 1 means the view is completely opaque.

TO make completely transparent: android:background="@android:color/transparent"

Edit: Incase you need transparency with color, then you need to set background to button, in the form of "#argb" or "#aarrggbb". where a stands for proportion of alpha.

于 2013-08-26T17:45:46.367 回答