StringBuilder sb = new StringBuilder();
for (int x = 0; x <= 5; x++) {
sb.append(x).append("\n");
}
textView.setText(sb);
In the above problem the textView is printing
0
1
2
3
4
5
I am unable to print the number with paddingTop or paddingBottom like the below given example
0
1
2
3
Please help me to achive the above target.