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. R: Querying SQL Lite Data types Dynamically ???

> Has anyone ever inspected the column type of a field

SQLite uses "dynamic typing" (http://www.sqlite.org/datatype3.html), so I
*guess* you're right there is no such a method in Android: it would be more
or less useless because the column type is probably not even stored into the
db itself...

You may eventually use the typeof() SQLite3 function in order to discover
the most compact type of a SQL expression.

Giampaolo

-- 
.

2. Querying SQL Lite Data types Dynamically ???

Has anyone ever inspected the column type of a field in an SQL Lite Database 
dyanmically ?

For example with the Cursor c you extract the current column name via    str = 
c.getColumnName(columnIndex)

We want to extract the column type dynamically based on the column index  but 
there appears to be no call to do this. There is however a getclassname  but it 
does not take a columnindex as a parameter. The idea here is to scroll through 
the table and figure out the types and perform conversion by dynamically 
querying the types. 

So the equivalent of c.getColumnObject(int colindex)

or c.getColumnType(int colindex) is what is required here

and type would be Blob, Short, String, Long, Int, Float.


-- 
.

3. how to make the live wallpaper scrollable?

4. Live wallpaper refresh rate

5. Possible to deserialize java object on Android?

6. Android-Kernel-regarding

7. How to cache Websites