android fragment inside listview
<p>my app is a social network where users share links and tag them to let the right persons receive it. Basically, the main activity is simply a listview of posts. I use an open protocol parser to get the web objects metadata on server side.</p>

<p>Now I need to display the right layout in each post item depending of the metadata (video, app, web page, ...). And of course, layouts must react to user clicks event and call intents.</p>

<p>So my first idea is to have a framelayout for each item where I load a specific fragment in charge of generating the right layout depending of the resource type.</p>

<p>But I'm really not sure loading a fragment inside a listview item is a good practice as the reuse system of views is totally messed up.</p>

<p>I'd just like to know what is the best way to implement this functionality for you guys.</p>

<p>Thank you.</p>
