title: Change display language within an xamarin Android app
body: <p>How can I change the display language within an app? I want that users with different cultures can work with one scanner without changing the global culture of the device.</p>
  <p>I have a language button with a click event in which I call a method:</p>
  <pre><code>public void SetLocale(string language = &quot;&quot;)
  {
      Locale locale = String.IsNullOrEmpty(language)
                                 ? new Locale(&quot;de-DE&quot;)
                                 : new Locale(language);
      Locale.Default = locale;
      var config = new global::Android.Content.Res.Configuration();
      config.Locale = locale;
      var context = global::Android.App.Application.Context;
      context.Resources.UpdateConfiguration(config, context.Resources.DisplayMetrics);
  }
  </code></pre>
  <p>But unfortunately nothing happens when I press the button.</p>
  <p>The click event is:</p>
  <pre><code>_btnen.Click += delegate
  {
      SetLocale(&quot;en-GB&quot;);
  };
  </code></pre>