File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
catalog/java/io/material/catalog/topappbar Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 3030import android .widget .ToggleButton ;
3131import androidx .annotation .NonNull ;
3232import androidx .annotation .Nullable ;
33+ import com .google .android .material .appbar .AppBarLayout ;
34+ import com .google .android .material .shape .MaterialShapeDrawable ;
3335import com .google .android .material .tabs .TabLayout ;
3436import io .material .catalog .feature .DemoFragment ;
3537import io .material .catalog .feature .DemoUtils ;
@@ -56,6 +58,10 @@ public View onCreateDemoView(
5658 AppCompatActivity activity = (AppCompatActivity ) getActivity ();
5759 activity .setSupportActionBar (toolbar );
5860
61+ AppBarLayout appBarLayout = view .findViewById (R .id .appbarlayout );
62+ appBarLayout .setStatusBarForeground (
63+ MaterialShapeDrawable .createWithElevationOverlay (requireContext ()));
64+
5965 TabLayout tabs = view .findViewById (R .id .tabs );
6066 ToggleButton showHideTabsButton = view .findViewById (R .id .show_hide_tabs_button );
6167 updateTabVisibility (tabs , showHideTabsButton .isChecked ());
You can’t perform that action at this time.
0 commit comments