I have two questions
First, I have a for loop, with every element in this loop i want to set the Name String as a TextView and the Url to a Button, Then to position those TextViews and Buttons vertically under each other Programmatically.
Second, i want those buttons to work for e.g if i click it then start downloading some from it's url.
To be clear this is my for loop
for(int i = 0; i < Array.length; i++) {
// This contains a String
String Name = "...";
// This contains a video url that i want to download onClick
String Url = "...";
}
What is the best way to do this?