Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 507995
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T06:51:42+00:00 2026-05-13T06:51:42+00:00

I was tryin to find any class to define a password field? How can

  • 0

I was tryin to find any class to define a password field?
How can we do that?
Do we have a class for that or some method to edittext?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T06:51:42+00:00Added an answer on May 13, 2026 at 6:51 am

    There are a couple of ways of doing this.

    The first (apparently) deprecated, is to set this property on the widget in your layout resource file

    android:password="true"
    

    From code this is equivalent to calling:

    myEditTextWidget.setTransformationMethod(new PasswordTransformationMethod());
    

    (note that this also gives you the flexibility to supply your own implementation of the TransformationMethod interface).

    The second mechanism is to set this property:

    android:inputType="textPassword"
    

    again, equivalent to calling:

    myEditTextWidget.setInputType(InputType.TYPE_CLASS_TEXT |
                                  InputType.TYPE_TEXT_VARIATION_PASSWORD);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to use PyLucene, and I can't find any code examples that actually
I have a heterogeneous List that can contain any arbitrary type of object. I
I'm trying to do something that I can't really find any help on. I
I'm trying to define a custom formatter for my class, but I can't find
I have no idea if the title makes any sense but I can't find
I am trying to find any equivalent class or library for the Buffer object
I'm having troubles trying to find a solution, if any, to this: public class
I'm trying to find any research/academic/journal papers/articles that analyze recent versions of Qt and
I am trying to define nested modules, but I couldn't find any complete explanations
I am trying to parse XML with jsoup, but I can't find any examples

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.