how to set position number with border after text

how to set position number with border after TextView with code in activity

like this like this