title: How to reload the current view when I change the locale in app in android
body: <p>I am currently work with changing language in the app. My app structure is tab host + fragment I have successfully change the locale but it is quite strange.</p>
  
  <p>That means after I run the change locale code , it does not change the view immediately but only when I go to another tab. I think this is due to I need to reload the view, but are there any way to implment this without kill and restart the activity?</p>
  
  <p>Because there is some goolge analytic code, the entry number will be increase if the user start activity again? Are there standard way to reload view? thanks</p>
  
  <p>The change locale function is in one of the tabhost fragment, I have to refresh the view in tabhost (main activity), and the current fragment .</p>
  
  <pre><code>public OnClickListener setChangeLangListener(final String lang) {
      OnClickListener changeLangListener = new OnClickListener() {
          @Override
          public void onClick(View arg0) {
              Configuration config = new Configuration(getResources()
                      .getConfiguration());
  
              if (lang.equals("en")) {
                  config.locale = Locale.ENGLISH;
                  chi.setTextColor(oldColor);
                  eng.setTextColor(getActivity().getResources().getColor(android.R.color.white));
              } else {
                  config.locale = Locale.TRADITIONAL_CHINESE;
                  eng.setTextColor(oldColor);
                  chi.setTextColor(getActivity().getResources().getColor(android.R.color.white));
              }
  
              getResources().updateConfiguration(config,
                      getResources().getDisplayMetrics());
          }
      };
      return changeLangListener;
  }
  
  eng.setOnClickListener(setChangeLangListener("en"));
          chi.setOnClickListener(setChangeLangListener("zh"));
  </code></pre>