title: Android - ActionBar set elevation programmatically
body: <p><strong>styles.xml</strong> </p>
  
  <pre><code> style name="AppTheme.AppBarOverlay"
   parent="ThemeOverlay.AppCompat.Dark.ActionBar"
  
   style name="AppTheme.PopupOverlay"
   parent="ThemeOverlay.AppCompat.Light"
  </code></pre>
  
  <p><strong>fragment_container.xml</strong></p>
  
  <pre><code>&lt;android.support.design.widget.AppBarLayout
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:id="@+id/appBarLayout"
      android:theme="@style/AppTheme.AppBarOverlay"&gt;
  
      &lt;android.support.v7.widget.Toolbar
          android:id="@+id/toolbar"
          android:layout_width="match_parent"
          android:layout_height="?attr/actionBarSize"
          android:background="@color/colorPrimary"
          app:popupTheme="@style/AppTheme.PopupOverlay" /&gt;
  
  &lt;/android.support.design.widget.AppBarLayout&gt;
  </code></pre>
  
  <p>I add toolbar using below code in onCreate callback</p>
  
  <p>var pageLayoutContainer = activity.getLayoutInflater().inflate(NativeSFR.layout.page_container_layout, null);</p>
  
  <pre><code>fragmentLayoutContainer.findViewById(R.id.fragmentRootLayout);
  toolbar = fragmentLayoutContainer.findViewById(R.id.toolbar);
  activity.setSupportActionBar(toolbar);
  actionBar = activity.getSupportActionBar();
  </code></pre>
  
  <p>I want to remove shadow under the toolbar. But below code doesn't work for me. My device api level bigger than 21.</p>
  
  <pre><code>actionBar.setElevation(0);
  </code></pre>