I have a button, an edittext and a ListView in my app. After the user clicks the button, I want to add the content of the edittext to the listview. How can I do this?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Try below template of code.
This is only main app logic, this code won’t work directly. Many tutorials available in Internet for using Button, EditText, ListView. First write app for normal ListView behavior and finally use my logic to fulfill your requirements.
I hope you understand this and it may help you.