0

Let me explain the question! 1) There are 2 fragments in one layout 2) Inside the first fragment, I have a listview layout in which I have declared and initialized four buttons.

    Button O1 = (Button) row.findViewById(R.id.option_one);
    Button O2 = (Button) row.findViewById(R.id.option_two);
    Button O3 = (Button) row.findViewById(R.id.option_three);
    Button O4 = (Button) row.findViewById(R.id.option_four);

3) Inside the second fragment, I have a EditText view.

What I am trying to do? I want the text written on the buttons to be displayed inside the EditText box whenever user clicks on the any of these buttons.

What is the problem I am facing? I can not initialize EditText view inside the adapter since it is not part of the adapter.

0 Answers0