title: EditText setInputType(InputType.TYPE_CLASS_NUMBER); don't work
body: <p>I am try using create one editText that only receive numeric (only appears numeric keyboard). On nexus 7 that don't happen :X</p>
  
  <p>this is my code:</p>
  
  <pre><code>    EditText edit = new EditText(context);
      edit.setText(value);
      edit.setTextSize(16);
      edit.setTextColor(getResources().getColor(R.color.blue));
      edit.setInputType(InputType.TYPE_CLASS_NUMBER
              | InputType.TYPE_NUMBER_FLAG_DECIMAL);
      edit.addTextChangedListener(new TextWatcher() {
  
          @Override
          public void afterTextChanged(Editable s) {
              elem.setValue(s.toString());
          }
  
          @Override
          public void beforeTextChanged(CharSequence s, int start, int count,
                  int after) {
          }
  
          @Override
          public void onTextChanged(CharSequence s, int start, int before,
                  int count) {
          }
      });
  </code></pre>
  
  <p>Can you help me?</p>
  
  <p>EDIT:</p>
  
  <p>i am add this EditText to a LinearLayout like this:</p>
  
  <pre><code>    myLinearLayout.addView(edit);
  </code></pre>