title: TextInputLayout Supported Different languages in android according to Mobile device language
body: <p>I tried to change the app language according to mobile device selected language.  <code>TextInputLayout</code>is working in English language but not working in Arabic("ar") language. I am not showing the edit text on the emulator. My layout as follows:</p>
  
  <pre><code>&lt;RelativeLayout
                  android:id="@+id/rlCountrycode"
                  android:layout_centerInParent="true"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"&gt;               
  
              &lt;android.support.design.widget.TextInputLayout
                  android:layout_toRightOf="@+id/country_picker_button"
                  android:theme="@style/TextLabel"
                  android:id="@+id/input_layout_name"
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"&gt;
                  &lt;EditText
                      android:textColorHint="#FFFFFF"
                      android:inputType="number"
                      android:id="@+id/phone"
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:singleLine="true"
                      android:hint="@string/enter_phoneno" /&gt;
  
  
              &lt;/android.support.design.widget.TextInputLayout&gt;
  
              &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>and my english <code>strings.xml</code> file as follows:</p>
  
  <pre><code>&lt;resources&gt;
  
      &lt;string name="enter_phoneno"&gt;Enter Mobile Number&lt;/string&gt;
  &lt;/resources&gt;
  </code></pre>
  
  <p>my <code>strings.xml</code> for arabic as follows:</p>
  
  <pre><code>&lt;resources&gt;
  
          &lt;string name="enter_phoneno"&gt;أدخل رقم الجوال&lt;/string&gt;
      &lt;/resources&gt;
  </code></pre>
  
  <p>And my main activity <code>onCreate()</code> method as follows:</p>
  
  <pre><code>EditText phoneno;
  protected void onCreate(Bundle savedInstanceState) {
          // setTheme(R.style.Theme_Dialog);
          super.onCreate(savedInstanceState);
          String language = Locale.getDefault().getLanguage();
          String languageToLoad  = language; // your language
          Locale locale = new Locale(languageToLoad);
          Locale.setDefault(locale);
          Configuration config = new Configuration();
          config.locale = locale;
          getBaseContext().getResources().updateConfiguration(config,
                  getBaseContext().getResources().getDisplayMetrics());
  
          setContentView(R.layout.activity_country_code);
  phoneno = (EditText) findViewById(R.id.phone);
  </code></pre>
  
  <p>please help me out. Thanks in advance.</p>