Hello. There is a main screen with two view elements: editText and Button :
There is a separate markup file - item.xml , which at the output should catch the list view and place in the list items, here:
And this is how the second, final screen with the received information should look like:
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)


