如何使按钮高亮? [英] How to make Button highlight?

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

问题描述

我树立了形象,按钮化背景,但按钮没有亮点,当点击它。 请问有什么办法可以解决这个问题。

I set a image as Button backgroud,but Button has no highlight when click it. Is there any way to solve it.

推荐答案

为了让您在这里正确的资源是的<一个文档href="http://developer.android.com/guide/topics/resources/drawable-resource.html#StateList">StateList可绘制。您只需创建并在你的 RES /绘制子目录定义它并将其设置为您的按钮背景。

To get you to the correct resource here is the documentation of the StateList Drawable. You just create and define it in your res/drawable subdirectory and set it as your buttons background.

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

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