Getting values from RecyclerView EditText?

前端 未结 5 1625
清酒与你
清酒与你 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:15

    Use TextChangedListener on EditText and save input in new HashMap with key as a id of order/unique key for row.

       adeposit.addTextChangedListener(new TextWatcher() {
    
       public void afterTextChanged(Editable s) {}
    
      public void beforeTextChanged(CharSequence s, int start,
                                    int count, int after) {
      }
    
     public void onTextChanged(CharSequence s, int start,
                               int before, int count) {
      // Save value her in HashMap
      }
    });
    

    At the end get Values from HashMap.

提交回复
热议问题