title: Update TextView in selected RecyclerView rows
body: <p>I have a <code>RecyclerView</code> inside a fragment where each line has an adapter which inflates a layout which looks as follows: <a href="https://i.stack.imgur.com/P5zoX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/P5zoX.png" alt="enter image description here"></a></p>
  
  <p><br>I want to access to the value of the <code>EditText</code> (in the following code <code>numberET</code>) of each row and pick the value if <code>EditText</code> is not empty.<br>
  <strong>How can I cycle on each element of the RecyclerView (I think inside the adapter) to have this behaviour? How can I access the EditText for each element to retrieve the value and use them inside the fragment?</strong>
  <br><br>Adapter: 
  `</p>
  
  <pre><code>public class UserFBEditTextAdapter &lt;T extends UserFBEditTextAdapter.ViewHolder&gt; extends UserFBAdapter&lt;UserFBEditTextAdapter.ViewHolder&gt;{
  public UserFBEditTextAdapter(List&lt;UserFB&gt; users,int layoutId, Context context) {
      super(users, layoutId, context);
  }
  
  @Override
  public UserFBEditTextAdapter.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
      View view = LayoutInflater.from(parent.getContext()).inflate(layoutId, parent, false);
      return new UserFBEditTextAdapter.ViewHolder(view);
  }
  
  @Override
  public void onBindViewHolder(UserFBAdapter.ViewHolder holder, int position) {
      holder.userFB = users.get(position);
      holder.usernameTV.setText(holder.userFB.getName());
  }
  
  public class ViewHolder extends UserFBAdapter.ViewHolder {
      protected EditText numberET;
  
      public ViewHolder(View itemView) {
          super(itemView);
          numberET = (EditText) itemView.findViewById(R.id.number_et);
      }
      }
  }`
  </code></pre>
  
  <p>Fragment:<br></p>
  
  <pre><code>public class ExpenseCustomFragment extends Fragment {
  
  private OnFragmentInteractionListener mListener;
  private UserFBAdapter adapter;
  private RecyclerView userCustomList;
  
  public ExpenseCustomFragment() {
      // Required empty public constructor
  }
  
  public static ExpenseCustomFragment newInstance() {
      ExpenseCustomFragment fragment = new ExpenseCustomFragment();
  
      return fragment;
  }
  @Override
  public View onCreateView(LayoutInflater inflater, ViewGroup container,
                           Bundle savedInstanceState) {
      // Inflate the layout for this fragment
      View view = inflater.inflate(R.layout.fragment_expense_custom, container, false);
  
      userCustomList = (RecyclerView) view.findViewById(R.id.amountlist_rv);
      userCustomList.setLayoutManager(new LinearLayoutManager(getContext()));
  
      NewExpenseDescriptionActivity activity = (NewExpenseDescriptionActivity) getActivity();
      adapter = new UserFBEditTextAdapter(activity.getUsersGroup(),  R.layout.listitem_expensecustom, getContext());
  
      userCustomList.setAdapter(adapter);
  
  
      return view;
  }
      public interface OnFragmentInteractionListener {
          // TODO: Update argument type and name
          void onFragmentInteraction(Uri uri);
      }
  }
  </code></pre>