There is no way that you do it with the adapters that already exist. You have to create your own. The adapter's getView method is responsible for creating and displaying every single row. Let's suppose that you need only two row layout to switch with. In that case the model used with the adapter could have an attribute to tell if it is using row type 1 or 2. In the onclick you change the model of the clicked item, you choose its row type and you notify that the data have changed with notifyDataSetChanged().
Tell us if it works for you. On Thursday, August 9, 2012 7:46:22 AM UTC, Jovish P wrote: > > We are using list view in our app with one simple row layout. > But on click of list view we want to change the row layout of > tht particular item . is it possible to do ? wht is the best approach ? > Ho to add listeners to view inside the row layout? > > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en