Reputation: 1629
I will like to use gallery view to add listview or relativelayout. Most of the examples 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.
Upvotes: 1
Views: 1028
Reputation: 1304
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.
Upvotes: 2