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

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


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



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. Launching an application when new contact is added

Hi ,

     Can we launch a new application when a new Contact is added to
'Contacts' application.
Can sqlite trigger or registerContentObserver be of help for this
purpose. The new application will manipulate the recently added



2. Best approach for requesting data (internet connection)


I have an app in which there are several requests to a server in internet
(http), for example to retrieve images in threads outside the main UI

The thing is that I have a Thread that manage the request with a while(!end)
loop and in the end a Thread.sleep(500) that checks if there are new
unhandled requests. As I read here [1] I know that this is not a good
practice. And users have complain about ANR (app not responding) in several

Knowing that obviously I want to refactor all the way my app manage the
requests and I want to do that the best way.

So, the question is; what is the best approach for doing this? A service? a
broadcast receiver and send intents when I need a request to be handled?

Thanks in advance and sorry for my english...

Jose Luis.



3. what do you think is better?

4. Listview's ArrayAdapter notifydatasetchanged() very slow redraw

5. Install fails on Emulator

6. Setting audio stream parameters

7. Can we read and write file at the same time?