android - Launch a Dialog Fragment on button click from a custom base adapter>getView [IMG INCLUDED] -
alright have list(which fragment dialog) displays users friends , each item in list has button(labeled friends in picture) , when users click button id display fragment dialog displays options interacting user(friend request, block, send private message ect...) problem button , onclick listener implemented via overriding listview adapters getview method , create fragmentdialog requires access fragment manager. there way make work? edit: cannot post actual code project , ive attached simplified base adapter w. onclicklistener should make clear im trying . cannot access fragmentmanager base adapter class make dialog fragment possible lazyadapter.java package com.example.androidhive; import java.util.arraylist; import java.util.hashmap; import android.app.activity; import android.content.context; import android.view.layoutinflater; import android.view.view; import android.view.viewgroup; import android.widget.baseadapter; import android.widget.imageview; import android.widget.te...