Set EditText of Dialog to value of ListView Item onItemLongClick
问题 I have a ListView within a Fragment that has a ContextMenu to edit and delete entries. The ContextMenu launches a Dialog on selection of the EDIT option. I'd like to set the EditText 's of that Dialog to the String values of the item selected via onItemLongClick on the ListView , but have been unable to do so. Thanks in advance. Fragment: public static class FragmentS extends Fragment { private ListView saveListView; private List<LiftSave> LiftSaves = new ArrayList<LiftSave>(); private static