Mask password in landscape mode

by Vladyslav Namashko » Tue, 07 Sep 2010 23:04:37 GMT


Sponsored Links
 Hi all,

I've created custom ui component for pair label-editText. This
component has to have possibility to mask password in editText field:

InputItem extends LinearLayout {
   private TextView label;
   private EditText text;
...
   boolean isPassword =
array.getBoolean(R.styleable.InputItem_isPassword, false);
   if (isPassword) {
      text.setInputType(InputType.TYPE_TEXT_VARIATION_PASSWORD);
      text.setTransformationMethod(new
PasswordTransformationMethod());
   }

It works fine in portrait mode, but in landscape mode letters, entered
in special popup form became visible (i.e. unmasked). It's possible
just to reject this popup frame appearence

    text.setImeOptions(EditorInfo.IME_FLAG_NO_EXTRACT_UI);

but is it possible to mask password letters in this popup frame?

--
Regards

--



Mask password in landscape mode

by Dianne Hackborn » Wed, 08 Sep 2010 01:21:34 GMT


 Set the EditText to password mode, don't stuff your own transformation
method into it.




>


Sponsored Links


Other Threads

1. bionic

I have several questions regarding bionic:

I am writing code for functionality that will reside on the kernel
side rather than the user side.  Will I still need to use bionic
libc?  Can I use glibc?

I understand that bionic is a subset of glibc.  Where can I find which
system call functions are included in bionic?

Is there a web site where I can download bionic?


Thanks

--~--~---------~--~----~------------~-------~--~----~

2. Verify Error with HTTPMIME / MIME4J

So, in following this post....

3. Access assets from within ParcelFileDescriptor / ContentProvider

4. SharedPreferences: editor.commit() always false even though it commits

5. Application installing with default pre-made database file

6. location is always latitude 0 longitude 0 altitude 10 in v0.9

7. Task Manager, or something to close apps.