为什么 ImageButton.onSetAlpha() return 总是错误的?

Why does ImageButton.onSetAlpha() return false always?

我正在看这个 post 以找出可点击图像视图和图像按钮之间的区别。

在接受的答案中@Michael 说:

EDIT: Also, ImageButton.onSetAlpha() method always returns false, scaleType is set to center and it's always inflated as focusable.

我的问题是:为什么 ImageButton.onSetAlpha() 总是 return false? 我已经检查了 docs,它说默认实现是错误的,但从未明确表示 onSetAlpha 将始终 return false.

谢谢!

他在谈论图像按钮的作用,正如您刚才引用的那样,文档明确指出默认实现(始终)returns false。