如何使按钮非透明? [英] How to make button non transparent?

查看:159
本文介绍了如何使按钮非透明?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我写的自定义视图绘制一个圆。然后,我把它放在相对布局。此外,我把标准按钮出现,让他们重叠。而我看​​到的那个按钮是透明的。如何使它非透明?

I wrote custom View which draws a circle. Then I put it on relative layout. Also I put standard button there, so that they overlap. And I see that button is transparent. How to make it non transparent?

推荐答案

标准霍洛主题的按钮是部分透明。您可以创建一个新的按钮9.png图像中的按钮,使用或使用可绘制创建一个新的按钮。

The standard Holo themed button is partially transparent. You can either create a new button 9.png image to use in the button or create a new button by using drawable.

下面是关于如何做后者的链接:

Here's a link on how to do the latter:

http://droidapp.co.uk/?p=309

这篇关于如何使按钮非透明?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆