Spam Problems

Some spambots are messing around this blog (and I suppose that everyone’s else), so I’ve set comment moderation, just in case spam comes around.

Common comments are welcome!!!

Have fun!

Prevent Soft Keyboard from showing when EditText focused

If you have a custom EditText, that uses a different input method from soft keyboard, you should add this line to prevent him from showing.

m_edittext.setInputType(InputType.TYPE_NULL);

Really easy, huh?

Have fun!

Navigate through form fields in Android

When having EditText as form fields, you might want to navigate from one to another by using the soft keyboard. This is easy if you use the following property in the layout xml:

For inputs that have a “following” element :

android:imeOptions="actionNext"

For the final item:

android:imeOptions="actionDone"

There are several options to control the Enter/Next… key in soft keyboard, here are a list of possible values (what do they display and if there is a special action)

  • actionDone: Done, hides the soft keyboard if not the last text input box
  • actionGo: Go
  • actionNone: Enter key simbol, inserts a new line (cursor goes to next line)
  • actionNext: Goes to next item, displays “Next” (or equivalent in your language)
  • actionSearch: displays a magnifying glass
  • actionSend: Send

some image examples (in Spanish locale) for action buttons (for “navigation” you should need next and done):

Search action button

Search action button



Go Action Button (Ir in Spanish)



Next Action button (Sig. from Siguiente in Spanish locale)

Next Action button (Sig. from Siguiente in Spanish locale)



Done Action button (Listo in Spanish locale)

Done Action button (Listo in Spanish locale)



Default Action Button

Default Action Button



For further information, you should look at the official documentation page, on Onscreen Inputs

New Blog!

Ok, so here we are… Another Android-programming Blog.

As I work currently programming Android apps, I’ll comment here the main problems and solutions found while doing it.

I might comment also interesting facts or events in my life 😉

have fun!

Return top

INFORMATION

I am a Management Engineering student, continuing my education after getting my Computer Bachelor's degree. I usually program for Android devices, although I have no apps. in Android Market yet.
 
Sharing Buttons by Linksku