My Textview is getting the data from SQLite, but I want to make Textview to show as follows:
************1234, instead of 1234123412341234.
enter image description here
String number = "grou353fp23g3qprwog9512";
String mask = number.replaceAll("\\w(?=\\w{4})", "*");
textView.setText(mask);
Output is *******************9512
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With