How to get text from EditText within ListView with multiple Views?
问题 I have a ListView that contains two TextViews and one EditText in each row. I have searched and searched and cannot figure out how to get the text that the user enters into the EditText. My most recent attempt implements a TextWatcher. public void addIngredientToMeal(String ingredientName) { ingredient_list = (ListView) findViewById(R.id.ingredients_in_meal_listView); int numberOfIngredients = ingredient_list.getChildCount(); ListAdapter adapter = new ListAdapter(); adapter.name_array = new