[android-beginners] Re: Keypad helpers
If you add the line android:singleLine="True" to you XML declaration. If you do that, the soft keyboard will show a Done button. If you don't want to do that, you can exit the keyboard using the backbutton key. Hope this helps, Balwinder Kaur Open Source Development Center ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 13, 5:07 am, Neilz wrote: > Hi all. > > I have an EditText widget which is described as follows: > > android:id="@+id/xcord" > android:numeric="decimal" > android:layout_width="fill_parent" > android:layout_height="wrap_content" > /> > > When my EditText receives focus, the keypad helper pops up (in my > emulator). Then when a button is clicked, I do stuff with the value > (in this case, I just display the value in a Toast). However the > keypad helper remains there and doesn't disappear, obscuring the main > part of the screen. How do I make the helper go away once I know the > user has finished typing? > > Many thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Keypad helpers
Thanks. How does the emulator mirror the actions of a real life device? Would this not be an issue in this instance? On Aug 13, 4:30 pm, "Balwinder Kaur (T-Mobile USA)" wrote: > If you add the line > android:singleLine="True" to you XML declaration. > > If you do that, the soft keyboard will show a Done button. > > If you don't want to do that, you can exit the keyboard using the > backbutton key. > > Hope this helps, > Balwinder Kaur > Open Source Development Center > ·T· · ·Mobile· stick together > > The views, opinions and statements in this email are those of the > author solely in their individual capacity, and do not necessarily > represent those of T-Mobile USA, Inc. > > On Aug 13, 5:07 am, Neilz wrote: > > > Hi all. > > > I have an EditText widget which is described as follows: > > > > android:id="@+id/xcord" > > android:numeric="decimal" > > android:layout_width="fill_parent" > > android:layout_height="wrap_content" > > /> > > > When my EditText receives focus, the keypad helper pops up (in my > > emulator). Then when a button is clicked, I do stuff with the value > > (in this case, I just display the value in a Toast). However the > > keypad helper remains there and doesn't disappear, obscuring the main > > part of the screen. How do I make the helper go away once I know the > > user has finished typing? > > > Many thanks. > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: Keypad helpers
My comments were based on device behavior (ADP1 and Google ION). You are right, the emulator does not reflect it, at least not to my knowledge :) Balwinder Kaur Open Source Development Center ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 13, 4:06 pm, Neilz wrote: > Thanks. How does the emulator mirror the actions of a real life > device? Would this not be an issue in this instance? > > On Aug 13, 4:30 pm, "Balwinder Kaur (T-Mobile USA)" > mobile.com> wrote: > > If you add the line > > android:singleLine="True" to you XML declaration. > > > If you do that, the soft keyboard will show a Done button. > > > If you don't want to do that, you can exit the keyboard using the > > backbutton key. > > > Hope this helps, > > Balwinder Kaur > > Open Source Development Center > > ·T· · ·Mobile· stick together > > > The views, opinions and statements in this email are those of the > > author solely in their individual capacity, and do not necessarily > > represent those of T-Mobile USA, Inc. > > > On Aug 13, 5:07 am, Neilz wrote: > > > > Hi all. > > > > I have an EditText widget which is described as follows: > > > > > > android:id="@+id/xcord" > > > android:numeric="decimal" > > > android:layout_width="fill_parent" > > > android:layout_height="wrap_content" > > > /> > > > > When my EditText receives focus, the keypad helper pops up (in my > > > emulator). Then when a button is clicked, I do stuff with the value > > > (in this case, I just display the value in a Toast). However the > > > keypad helper remains there and doesn't disappear, obscuring the main > > > part of the screen. How do I make the helper go away once I know the > > > user has finished typing? > > > > Many thanks. > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---