I will like to use gallery view to add listview or relativelayout. Most of the e开发者_如何学JAVAxamples that I have seen are of adding images in gallery and that is quite simple. Can someone let me know how to add other layouts inside gallery view.
You just have to add an Adapter that creates each View dynamically in the getView()
method.
So you can create a RelativeLayout like this:
RelativeLayout layout = new RelativeLayout(ctx);
and then add children as you like.
精彩评论