Listviews can be used
together with the
collapsible widget. The framework makes them exactly fit inside the generated content container of the collapsible.
http://jquerymobile.com/test/docs/lists/lists-collapsible.htmlThe docs simply point-out that you can place a listview inside of a collapsible.
It's not handled any differently than a standard listview. The collapsible and listviews are distinct widgets. The collapsible is not the listview.
----
The problem with using IDs is that you have to insure that you never use the same ID on more than one page of your entire site.
HTML does not permit more than one element in a document with the same ID. Usually, this can be satisfied by making sure that there are no more than one of the same ID on a page. But in jQuery Mobile the page and the document are not one and the same. The document may contain many pages. When JQM does transitions, it has two pages in the document at the same time.
Thus, if you have more than one page with the same ID for some element, you will find odd stuff going on that you didn't expect. Different browsers handle invalid HTML markup differently, so there is no guaranteed behaviour when you have multiple elements with the same ID.
The easiest way to deal with this is to simply not use IDs.
You still have to be careful with your classes, to make sure you are targeting the element you intend to. If you want to do something with an element on a particular page, you need to qualify the selector so that the page is a part of the selection criteria. You might want to change some text on one page, and actually change it on several. (If you didn't target the page specifically.) But at least the behavior across different browser will be consistent.