I have 10 EditTexts defined as L1, L2 etc. All of them are initially hidden. Based on a integer value - say 4, I would like to unhide only L1 to L4. Is there any method for doing so?
Something like this:
public void displaydynamicdata(int count){
int i= 1;
if(i <= count){
StringBuilder toto = new StringBuilder("L" + i);
"toto".setVisibility(View.VISIBLE);
i++;
}
}