Created
August 8, 2011 21:12
-
-
Save mharper/1132754 to your computer and use it in GitHub Desktop.
Adding inflated subviews to a view
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int viewId = 0; | |
for (Video v : videos) { | |
newVideoView = inflater.inflate(R.layout.story_video, null); | |
newVideoView.setId(viewId++); | |
this.addView(newVideoView); | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment