开发者

How to catch a soft keyboard 'enter/done' press?

开发者 https://www.devze.com 2023-02-17 11:19 出处:网络
I would开发者_开发知识库 like to know when the user presses the \'enter/done/next\' key on the soft keyboard without the activity knowing which edittext box the user is in. I have seen some code, but

I would开发者_开发知识库 like to know when the user presses the 'enter/done/next' key on the soft keyboard without the activity knowing which edittext box the user is in. I have seen some code, but it always uses the name of the edittext box that is being edited.

The app has numerous edittext boxes, and calculations are re-run anytime any one of the values in a edittext box is changed.


Then attach the OnEditorActionListener to all of them.

0

精彩评论

暂无评论...
验证码 换一张
取 消