【问题标题】:How yo add glowing effect on button with background?如何在带有背景的按钮上添加发光效果?
【发布时间】:2014-04-13 06:12:20
【问题描述】:

我在我的 xml 中设置了一个按钮,现在单击该按钮设置其背景 img1,我希望该按钮边缘周围有白光。我已经审阅了这个链接http://developer.android.com/guide/topics/ui/controls/button.htmlAndroid ImageButton with a selected state?Standard Android Button with a different color

【问题讨论】:

    标签: android


    【解决方案1】:

    您可以为按钮添加白色边框。请输入此问题以查看如何添加边框:Android - border for button

    将xml存储在

    res/drawable/filename.xml

    然后你可以像这样访问它:

    In Java: R.drawable.filename
    In XML: @[package:]drawable/filename
    

    【讨论】:

    • Hey Omar.... 该 xml 文件的存储位置以及如何访问它,请尽快回复..
    • 等待您的回复
    最近更新 更多