Getting values from RecyclerView EditText?

前端 未结 5 1622
清酒与你
清酒与你 2021-01-05 12:51

I am struck in recyclerView,

\"image\"

Here the name and balance fields are coming from two different a

5条回答
  •  梦谈多话
    2021-01-05 13:16

    You can get value at action done of keyboard. all you need is to set

    android:imeOptions="actionDone" in edit text. and then just use below code

     adepositEditText.setOnEditorActionListener(new TextView.OnEditorActionListener() {
                    @Override
                    public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {
                        if (actionId == EditorInfo.IME_ACTION_DONE) {
                            // Do whatever you want here
    
                            return true;
                        }
                        return false;
    
                    });
    

提交回复
热议问题