Re: [android-developers] Mask password in landscape mode

2010-09-07 Thread Dianne Hackborn
Set the EditText to password mode, don't stuff your own transformation
method into it.

On Tue, Sep 7, 2010 at 8:04 AM, Vladyslav Namashko wrote:

> 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
>
> --
> 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
>



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
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

[android-developers] Mask password in landscape mode

2010-09-07 Thread Vladyslav Namashko
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

-- 
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