title: Android EditText("Textbox") : Auto capitalizing first letter of each word while user typing
body: <p>I know this question has asked several times but non of the answers worked in my case.</p>
  
  <p>I found some of the same sort of questions and answers in the following links , which didn't work for me at all.</p>
  
  <p><a href="https://stackoverflow.com/questions/4808705/first-letter-capitalization-for-edittext">LINK1</a></p>
  
  <p><a href="http://androblip.huiges.nl/2010/05/10/automatic-editview-capitalization/" rel="nofollow noreferrer">LINK2</a></p>
  
  <p>In my layout file, I have defined my EditText as follows.</p>
  
  <pre><code> &lt;EditText
      android:id="@+id/test_editText"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_alignParentLeft="true"
      android:layout_alignParentTop="true"
      android:layout_marginLeft="16dp"
      android:layout_marginTop="90dp"
      android:inputType="textCapWords"
      android:ems="10" &gt;
  </code></pre>
  
  <p>Also in the Activity class in the <code>onCreate</code> method I have added the following code.</p>
  
  <pre><code>    EditText testEditText = (EditText) findViewById(R.id.test_editText);
      testEditText.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_FLAG_CAP_WORDS); 
  </code></pre>
  
  <p>If someone have experienced the same issue and solved it would like to hear what I have done wrong in my case. Thanks. </p>
  
  <p><strong>Edits...</strong></p>
  
  <p>Following above explained steps I am unable to make this get it done(Auto capitalizing the first letter of each word while user typing).</p>
  
  <p>According to my code, When user typing it displays first charater in all the words (including first word) in lower case. </p>