android - Modfiying inflated inflated view in a dialogfragment after calling show() -


let's have dialogfragment listview. title of dialog custom view inflated in oncreatedialog(). possible toggle visibility of inflated view when list item clicked.

in oncreatedialog() function, can hold dialog view referencing title view want toggle on. on click event of listview.

lv.setonitemclicklistener(new onitemclicklistener() {         @override         public void onitemclick(adapterview<?> parent, view view, int position,long id) { //toggle title here     } });