Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在视图上更改焦点时执行操作?特别是当焦点位于某个按钮上时,我会更改 LinearLayout 视图的某些属性。
我认为 onFocusChangeListener 可以帮助你:
onFocusChanged(boolean, int, android.graphics.Rect)