How to get a red asterisk in a entry

前端 未结 4 999
情书的邮戳
情书的邮戳 2020-12-31 10:56

How do you get a red asterisk in a entry so that you can display it at the end of the text to indicate its a required field, like: Enter your name * (asterisk will be red).

4条回答
  •  遥遥无期
    2020-12-31 11:22

    Alternative for showing asterisk in android Textview

    txtvw2.setText(Html.fromHtml("*"+"enter you name"));
    

提交回复
热议问题