TextView.setSingleLine() or TextView.setLines(1) For the future if you look up the documentation of any view:
http://developer.android.com/reference/android/widget/TextView.html You can see a handy list of xml attributes to related methods. On Oct 31, 3:20 am, bennyb <taw...@gmail.com> wrote: > How can you programmatically set the android:singleLine="true" > property of a TextView? > > I want my EditText to open a numeric keypad with the "Done" button. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en