title: Setting DigitsKeyListener
body: <p>I am trying to assign a nummeric input type based on the comma as a decimal point, as the german locale uses comma as decimal point as follows in the TextChangeListener:</p>
  
  <pre><code>editText.setKeyListener(DigitsKeyListener.getInstance("0123456789,"));
  </code></pre>
  
  <p>However, using stock Samsung Keyboard (Note 10.1 N8000) and stock LG Keyboard (LG G3) forces a number keypad forcing entering only numbers from 0-9 without any possible decimals. Running a third party keyboard like SwiftKey and Google Keyboard displays a fully nummeric keypad inlcuding a decimal and a comma.
  Any idea about how to solve the problem with stock keyboards?</p>
  
  <hr>
  
  <p><strong>My XML file:</strong></p>
  
  <pre><code>&lt;ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:paddingBottom="@dimen/activity_vertical_margin"
      android:paddingLeft="@dimen/activity_horizontal_margin"
      android:paddingRight="@dimen/activity_horizontal_margin"
      android:paddingTop="@dimen/activity_vertical_margin" &gt;
  
      &lt;RelativeLayout
          android:layout_width="match_parent"
          android:layout_height="wrap_content" &gt;
  
          &lt;TextView
              android:id="@+id/txtInfoUltiva"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:text="@string/ultiva_info"
              android:textSize="9pt" /&gt;
  
          &lt;TextView
              android:id="@+id/textUltivaSepLine"
              android:layout_width="fill_parent"
              android:layout_height="1dp"
              android:layout_alignLeft="@+id/txtInfoUltiva"
              android:layout_below="@+id/txtInfoUltiva"
              android:layout_marginTop="15dp"
              android:background="#000000" /&gt;
  
          &lt;LinearLayout
              android:id="@+id/gpGewichtUltiva"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:layout_alignLeft="@+id/textUltivaSepLine"
              android:layout_below="@+id/textUltivaSepLine"
              android:layout_marginTop="4dp"
              android:orientation="horizontal" &gt;
  
              &lt;TextView
                  android:id="@+id/lblGewichtUltiva"
                  android:layout_width="0.0dip"
                  android:layout_height="fill_parent"
                  android:layout_marginTop="15dp"
                  android:layout_weight="1.0"
                  android:text="@string/lbl_gewicht_ultiva"
                  android:textSize="8pt" /&gt;
  
              &lt;EditText
                  android:id="@+id/txtGewichtUltiva"
                  android:layout_width="0.0dip"
                  android:layout_height="fill_parent"
                  android:layout_weight="1.5"
                  android:focusable="false"
                  android:hint="@string/txt_hint_gewicht_ultiva"
                  android:inputType="numberDecimal"
                  android:singleLine="true"
                  android:digits="0123456789," /&gt;
          &lt;/LinearLayout&gt;
  
          &lt;LinearLayout
              android:id="@+id/gpKonzentrationUltiva"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:layout_alignLeft="@+id/gpGewichtUltiva"
              android:layout_below="@+id/gpGewichtUltiva"
              android:layout_marginTop="4dp"
              android:orientation="horizontal" &gt;
  
              &lt;TextView
                  android:id="@+id/lblKonzentrationUltiva"
                  android:layout_width="0.0dip"
                  android:layout_height="fill_parent"
                  android:layout_marginTop="15dp"
                  android:layout_weight="1.0"
                  android:text="@string/lbl_konzentration_ultiva"
                  android:textSize="8pt" /&gt;
  
              &lt;Spinner
                  android:id="@+id/txtKonzentrationUltiva"
                  android:layout_width="0.0dip"
                  android:layout_height="fill_parent"
                  android:layout_weight="1.5"
                  android:focusable="false"
                  android:hint="@string/txt_hint_konzentration_ultiva"
                  android:entries="@array/ultiva_konzentrationen" /&gt;
          &lt;/LinearLayout&gt;
  
          &lt;LinearLayout
              android:id="@+id/gpGeschwindigkeitUltiva"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:layout_alignLeft="@+id/gpKonzentrationUltiva"
              android:layout_below="@+id/gpKonzentrationUltiva"
              android:layout_marginTop="4dp"
              android:orientation="horizontal" &gt;
  
              &lt;TextView
                  android:id="@+id/lblGeschwindigkeitUltiva"
                  android:layout_width="0.0dip"
                  android:layout_height="fill_parent"
                  android:layout_marginTop="15dp"
                  android:layout_weight="1.0"
                  android:text="@string/lbl_geschwindigkeit_ultiva"
                  android:textSize="8pt" /&gt;
  
              &lt;EditText
                  android:id="@+id/txtGeschwindigkeitUltiva"
                  android:layout_width="0.0dip"
                  android:layout_height="fill_parent"
                  android:layout_weight="1.5"
                  android:focusable="false"
                  android:hint="@string/txt_hint_geschwindigkeit_ultiva"
                  android:inputType="numberDecimal" /&gt;
          &lt;/LinearLayout&gt;
  
          &lt;TextView
              android:id="@+id/textUltivaSep1"
              android:layout_width="fill_parent"
              android:layout_height="1dp"
              android:layout_alignLeft="@+id/gpGeschwindigkeitUltiva"
              android:layout_below="@+id/gpGeschwindigkeitUltiva"
              android:layout_marginTop="4dp"
              android:background="#000000" /&gt;
  
          &lt;LinearLayout
              android:id="@+id/gpgemesseneGeschwindigkeitUltiva"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:layout_alignLeft="@+id/textUltivaSep1"
              android:layout_below="@+id/textUltivaSep1"
              android:layout_marginTop="4dp"
              android:orientation="horizontal" &gt;
  
              &lt;TextView
                  android:id="@+id/lblgemesseneGeschwindigkeitUltiva"
                  android:layout_width="0.0dip"
                  android:layout_height="wrap_content"
                  android:layout_marginTop="15dp"
                  android:layout_weight="1.0"
                  android:text="@string/lbl_gemessene_geschwindigkeit_ultiva"
                  android:textSize="8pt" /&gt;
  
              &lt;TextView
                  android:id="@+id/txtgemesseneGeschwindigkeitUltiva"
                  android:layout_width="0.0dip"
                  android:layout_height="wrap_content"
                  android:layout_weight="1.5"
                  android:layout_marginTop="15dp"
                  android:layout_marginLeft="15dp"
                  android:textSize="8pt"
                  android:hint="@string/txt_hint_gemessene_geschwindigkeit_ultiva" /&gt;
          &lt;/LinearLayout&gt;
  
          &lt;LinearLayout
              android:id="@+id/gpEntleerungszeitUltiva"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:layout_alignLeft="@+id/gpgemesseneGeschwindigkeitUltiva"
              android:layout_below="@+id/gpgemesseneGeschwindigkeitUltiva"
              android:layout_marginTop="4dp"
              android:orientation="horizontal" &gt;
  
              &lt;TextView
                  android:id="@+id/lblEntleerungszeitUltiva"
                  android:layout_width="0.0dip"
                  android:layout_height="wrap_content"
                  android:layout_marginTop="15dp"
                  android:layout_weight="1.0"
                  android:text="@string/lbl_entleerungszeit_ultiva"
                  android:textSize="8pt" /&gt;
  
              &lt;TextView
                  android:id="@+id/txtEntleerungszeitUltiva"
                  android:layout_width="0.0dip"
                  android:layout_height="wrap_content"
                  android:layout_weight="1.5"
                  android:layout_marginTop="15dp"
                  android:layout_marginLeft="15dp"
                  android:textSize="8pt"
                  android:hint="@string/txt_hint_entleerungszeit_ultiva" /&gt;
          &lt;/LinearLayout&gt;
  
          &lt;TextView
              android:id="@+id/textUltivaSep2"
              android:layout_width="fill_parent"
              android:layout_height="1dp"
              android:layout_alignLeft="@+id/gpEntleerungszeitUltiva"
              android:layout_below="@+id/gpEntleerungszeitUltiva"
              android:layout_marginTop="15dp"
              android:background="#000000" /&gt;
  
          &lt;TextView
              android:id="@+id/lbUltivaNutzungInfo"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:layout_alignLeft="@+id/textUltivaSep2"
              android:layout_below="@+id/textUltivaSep2"
              android:layout_marginTop="4dp"
              android:text="@string/ultiva_nutzung_info"
              android:textSize="5pt" /&gt;
      &lt;/RelativeLayout&gt;
  
  &lt;/ScrollView&gt;
  </code></pre>