【问题标题】:Difference between image button and button图片按钮和按钮的区别
【发布时间】:2012-07-04 13:16:41
【问题描述】:

ButtonImageButton 有什么区别,如果我们在按钮的背景中使用任何图像,它也可以像图像按钮一样工作。那么我们为什么要使用图片按钮呢?

提前致谢:)

【问题讨论】:

    标签: android button imagebutton


    【解决方案1】:

    Button 扩展了 TextView,允许您创建带有背景图像的可点击文本。 http://developer.android.com/reference/android/widget/TextView.html

    ImageButton 扩展了 Image 视图,它有更多与图像操作相关的方法。 http://developer.android.com/reference/android/widget/ImageView.html

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2013-12-08
    • 2013-09-29
    • 2011-10-12
    • 1970-01-01
    • 2017-08-06
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多