In 1.5 the way to do this is with setInputType().

On Wed, May 6, 2009 at 2:56 PM, Mark Anacker <[email protected]>wrote:

>
> look at the setTransformationMethod() - for instance, to turn password
> mode on:
>
> myEditText.setTransformationMethod
> (android.text.method.PasswordTransformationMethod.getInstance());
>
>
> On May 5, 7:17 pm, rain <[email protected]> wrote:
> > There's a "password" attribute  in the xml file , but i want set the
> > password attribute through the code.
> >
> > actually , In my project  all Views are generated on the fly. do not
> > using the xml files.
> >
>


-- 
Dianne Hackborn
Android framework engineer
[email protected]

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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to