check this link http://stackoverflow.com/questions/7300490/set-edittext-digits-programatically
On Tue, Jun 12, 2012 at 3:42 PM, Narendra Singh Rathore < [email protected]> wrote: > Hi all, > If anyone know please let me know, how to set digits property to edittext > programmatically, as we specify it in xml like android:digits. > My requirement here is to limit the digits to 0 or X depending on certain > condition, which has to be done dynamically. > Please suggest me how to achieve this. > > Thanks & Regards > NSR > > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

