Android - Add item to custom listview on button click
问题 I currently have a custom listview where each item on the list contains two rows of text. What I would like to do is each time a user clicks on the button, it creates a new item on the list with the text that the user inputted. While I know how to get the text, I am having trouble adding a new item to the list view as I simply don't know where to begin. Here is my code: public class MainFeedActivity extends ListActivity implements OnClickListener { View sendButton; EditText postTextField;