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

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

php - facebook and github login HWIOAuthBundle and FOSUserBundle in Symfony2.1 -

hadoop - Sqoop installation export and import from postgresql -