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

  • Home
  • SEARCH
  • 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 6003787
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T01:10:15+00:00 2026-05-23T01:10:15+00:00

The inputType numberDecimal in EditText uses the dot . as decimal separator. In Europe

  • 0

The inputType numberDecimal in EditText uses the dot . as decimal separator. In Europe it’s common to use a comma , instead. Even though my locale is set as german the decimal separator is still the .

Is there a way to get the comma as decimal separator?

  • 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-23T01:10:15+00:00Added an answer on May 23, 2026 at 1:10 am

    A workaround (until Google fix this bug) is to use an EditText with android:inputType="numberDecimal" and android:digits="0123456789.,".

    Then add a TextChangedListener to the EditText with the following afterTextChanged:

    public void afterTextChanged(Editable s) {
        double doubleValue = 0;
        if (s != null) {
            try {
                doubleValue = Double.parseDouble(s.toString().replace(',', '.'));
            } catch (NumberFormatException e) {
                //Error
            }
        }
        //Do something with doubleValue
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have Edittext which can take Decimal value. So I have used android:inputType=numberDecimal android:numeric=decimal
How to make EditText Field uneditable over property inputType when inputType=textPassword My problem is
I need to insert in an EditText some numeric data with decimal. I know
I´m looking for an android:inputType for an EditText to make sure the user can´t
What I have tried: specifying the inputType for the EditText on the main.xml page
For an edittext i used wt.setInputType(InputType.TYPE_NUMBER_FLAG_DECIMAL); But the virtual keyboard that comes up on
I have this EditText definition: <EditText android:layout_height=wrap_content android:layout_width=fill_parent android:inputType=textEmailAddress android:id=@+id/EmailText/> Notice the EditText has
I want my EditText content type as numeric. I set InputType which is 2
I have set input type to be numberdecimal but also want to populate the
Using my onEditTextchanger. It works fine when the user inputs 100000, in the EditText

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.