I\'m trying to create a DialogFragment using my own Layout.
I\'ve seen a couple different approaches. Sometimes the layout is set in OnCreateDialog like this: (I\'
This first approach works for me... until I want to use FindViewByID.
I would guess that you are not scoping findViewById()
to the View returned by inflate()
, try this:
View view = i.inflate(Resource.Layout.frag_SelectCase, null);
// Now use view.findViewById() to do what you want
b.setView(view);
return b.create();