title: edit text for name
body: <p>I have an edited text getting name as user input. I need to restrict all special characters except dot(.). How to do this? Refer my code below</p>
  
  <pre><code>EditText Name= new EditText(this);
  Name.setLayoutParams(new TableRow.LayoutParams(dp(220),dp(40)));
  Name.setHorizontallyScrolling(true);        
  Name.setTextSize(TypedValue.COMPLEX_UNIT_DIP, 15);
  Name.setInputType(InputType.TYPE_TEXT_VARIATION_PERSON_NAME);
  Name.setTypeface(Typeface.DEFAULT);
  Name.setFilters(new InputFilter[]{new InputFilter.AllCaps()});
  </code></pre>