I have to display following data in this format in text view.
1 Address : Sample address.
2 Contact : contact1, contact2
3 Email : sampleemail@hgjasd.com.
4 Website : www.sample.com.
5 Attached with : Apolo.
6 Services : Heart Transplant.
but the ":" is not aligned properly and there is no equal space between them How can i acheive this
This is what i tried
if (mrecordsObj.has("website")) {
if(!mrecordsObj.getString("website").isEmpty())
mBuilder.append("Website :" + mrecordsObj.getString("website") + "n"+"n");
}
if (mrecordsObj.has("extrainfo")) {
if(!mrecordsObj.getString("extrainfo").isEmpty())
mBuilder.append("Extrainfo :" + mrecordsObj.getString("extrainfo") + "n"+"n");
}
Aucun commentaire:
Enregistrer un commentaire