How would I go about populating a开发者_如何学C ListView directly below a GalleryView based on what is currently selected in the Gallery?
Yes I have album art in the gallery and I want the track listing in the ListView under it, but could the ListView change without the users click? I would like it to change to the album currently centrredin the gallery. Thanks.
So selecting one image in the Gallery results in more than one line in the ListView? Use setOnItemClickListener on the Gallery and use onItemClick to find the selected Gallery item and replace the data of the ListView according to that item.
精彩评论