Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to show * symbol againist the mandatory fields in a Activity

Tags:

android

I have a requirement to display * symbol against the mandatory fields in a Activity. Can you please suggest how can I accomplish that. Any help would be appreciated.

like image 901
mayur rahatekar Avatar asked Oct 17 '11 09:10

mayur rahatekar


1 Answers

I'd say that * as a marker for a required field does not follow native Android theme. A combination of setHint and setError would look more natural for an Android app.

like image 128
denis.solonenko Avatar answered Oct 13 '22 06:10

denis.solonenko