How can i create dynamically tab with viewpager in android?
问题 Explanation: Suppose, I have multiple categories which come from my REST. I don't know how many categories it's mat be 5,7 or sometimes 2 etc. I want to put all the categories on my tab with viewpager. I want to create a tab accordingly to the categories size. let's see e.g. suppose in my REST response have only 2 categories it's create only two tab. if it have 5 categories then 5 tab and so on. Here is the sample test example to create a tabs. MainActivity.java public class MainActivity