Merge changes from topic "status_bar_80%_white"
* changes: Fine tune items position of homepage Make status bar become 80% of white in homepage.
This commit is contained in:
committed by
Android (Google) Code Review
commit
f07a7bd684
@@ -19,6 +19,7 @@ package com.android.settings.homepage;
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.util.FeatureFlagUtils;
|
||||
import android.view.View;
|
||||
import android.widget.ImageView;
|
||||
import android.widget.Toolbar;
|
||||
|
||||
@@ -47,6 +48,7 @@ public class SettingsHomepageActivity extends SettingsBaseActivity {
|
||||
return;
|
||||
}
|
||||
|
||||
updateWindowProperties();
|
||||
setContentView(R.layout.settings_homepage_container);
|
||||
|
||||
final Toolbar toolbar = findViewById(R.id.search_action_bar);
|
||||
@@ -73,4 +75,15 @@ public class SettingsHomepageActivity extends SettingsBaseActivity {
|
||||
}
|
||||
fragmentTransaction.commit();
|
||||
}
|
||||
|
||||
private void updateWindowProperties() {
|
||||
final View decorView = getWindow().getDecorView();
|
||||
decorView.setSystemUiVisibility(
|
||||
decorView.getSystemUiVisibility() |
|
||||
View.SYSTEM_UI_FLAG_LAYOUT_STABLE |
|
||||
View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
|
||||
);
|
||||
|
||||
getWindow().setStatusBarColor(getResources().getColor(R.color.homepage_status_bar_color));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user