您的位置: 首页 > 技术问答 > ImageButton的用途是什么 ImageButton的用途是什么 分类: 技术问答 • 2022-09-20 20:16:42 问题描述: 当在Button上设置背景时,ImageButton的用途是什么?ImageButton的用途是什么 +0 但我们不能在Button中设置android:src。 – 2012-03-08 12:21:21 +0 但即使这样也达到了相同的目的。 – prometheuspk 2012-03-08 12:24:25 +1 看看这个问题: http://stackoverflow.com/questions/9420431/difference-between-button-with-image-imagebutton-and-clickable-imageview – 2012-03-08 12:29:05 答 随着ImageButton(就像使用Image)有可能控制由android:src定义方式的图像显示在按钮:您可以设置scaleType - 这是你不能做背景。
但我们不能在Button中设置android:src。 – 2012-03-08 12:21:21
但即使这样也达到了相同的目的。 – prometheuspk 2012-03-08 12:24:25
看看这个问题: http://stackoverflow.com/questions/9420431/difference-between-button-with-image-imagebutton-and-clickable-imageview – 2012-03-08 12:29:05