Hello. There is a main screen with two view elements: editText and Button :

enter image description here

There is a separate markup file - item.xml , which at the output should catch the list view and place in the list items, here:

enter image description here

And this is how the second, final screen with the received information should look like:

enter image description here

It is desirable that the information be preserved stekoobrazno, and cross it removed and discarded from the stack, and the actual infa moved to the place of the removed one. I understand that the question is extensive and I can hardly cope with in one day, so I will post Activit codes so that in the end it would be useful for someone else if they can cope and the topic will grow. MAIN

 public class MainActivity extends AppCompatActivity implements View.OnClickListener{ EditText text; Button button; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); text = (EditText) findViewById(R.id.editText); button = (Button)findViewById(R.id.button); button.setOnClickListener(this); } @Override public void onClick(View v) { Intent intent = new Intent(this, Second.class); startActivity(intent); } 

SECOND

 public class Second extends MainActivity{ @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.second); } 

Regulatory classes and adapters should be created, but I don’t understand how to put this puzzle together, the main thing is to start) so I will move in small steps until I understand how it works. Do not scold)

  • An example of working with lists can be found in Android. Programming for professionals »Brian Hardy, Bill Phillips. Only you need to read from the very beginning, and not go straight to the chapter that deals with lists. This is if there is knowledge of Java Core. - post_zeew

1 answer 1

Here is an example of working with adapters http://androiddocs.ru/vidzhet-recyclerview-prostoj-primer/ For simplicity, you can use a linear list, it has a ready-made adapter for string arrays

I do not pretend to the correctness of the decision

Activate1: text box and button. By clicking, you add the value of your text field to the array. If there are problems with transferring an array to another activity, you can make it static for learning purposes and apply Activ1.1.ray

Aktiviti2: You write an adapter with your itemview (in your case it’s a button and a text field. You hang up deleting an item on the page) and it’s like all)