android - Add fragment to an inflated view -


i have listview. in adapter, in getview method, inflate view resources. want add fragment view. far concerned, fragments can added activity's view only; view created , not attached activity yet. how can it?

i have <fragment> tag in item layout, can't reference it, because view.findviewbyid() returns view , cannot cast fragment.


Comments

Popular posts from this blog

C# random value from dictionary and tuple -

cgi - How do I interpret URLs without extension as files rather than missing directories in nginx? -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -