Skip to content Skip to sidebar Skip to footer

Custom Dialog Box Hides Behind Another Activity

I am new to android. Currently working on Caller Id app like 'truecaller'. I am showing call log screen and on click of Call log entry (which is linearlayout) I am calling Action_C

Solution 1:

It seems to me that you have a context problem . I have faced this issue many times where I passed in getActivity() and the popup menu appeared behind my activity. I think if you change the first line in setList() to

 LayoutInflater inflater = LayoutInflater.from(parent.getContext());

should work fine. Try and let me know.

Post a Comment for "Custom Dialog Box Hides Behind Another Activity"