title: Show comma instead of dot - Keyboard
body: <p>Is there a way to get a comma for <code>edittext</code> instead of dot. My Keyboard is german, device is samsung.</p>
  <p>looking for solution via <code>XML</code> not extra <code>listeners</code>.</p>
  <p>So far i have tried</p>
  <p>1.</p>
  <pre><code>android:digits=&quot;0123456789,&quot;
  android:inputType=&quot;number&quot;
  </code></pre>
  <ol start="2">
  <li></li>
  </ol>
  <pre><code>android:digits=&quot;0123456789,&quot;
  android:inputType=&quot;numberDecimal&quot;
  </code></pre>
  <ol start="3">
  <li></li>
  </ol>
  <pre><code>android:inputType=&quot;numberDecimal&quot;
  </code></pre>
  <p>nothing seems to work, and I still get dot. I have gone through other similar questions but they suggest managing it by adding <code>listener</code> to <code>edittexts</code>. I have a lot of <code>editText</code> and it will be much additional/unnecessary work. There should be an <code>XML</code> simple solution to this.</p>
  <p><strong>Also tried</strong></p>
  <pre><code>val input = EditText(requireContext())
  input.keyListener = DigitsKeyListener.getInstance(&quot;0123456789.,&quot;)
  </code></pre>
  <p><a href="https://i.stack.imgur.com/o81RG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/o81RG.png" alt="enter code here" /></a></p>