| | |
| | | |
| | | import android.content.Context; |
| | | import android.os.Bundle; |
| | | import android.view.View; |
| | | |
| | | import androidx.annotation.Nullable; |
| | | |
| | | import com.hdl.photovoltaic.R; |
| | | import com.hdl.photovoltaic.utils.LocalManageUtil; |
| | | import com.jaeger.library.StatusBarUtil; |
| | | |
| | | import java.util.Locale; |
| | | |
| | |
| | | @Override |
| | | protected void onCreate(@Nullable Bundle savedInstanceState) { |
| | | super.onCreate(savedInstanceState); |
| | | setNotificationBarBackgroundColor(CustomColor.blue); |
| | | |
| | | |
| | | } |
| | | // 将StatusBar设置为透明 |
| | | public void setStatusBarTranslucent() { |
| | | StatusBarUtil.setTranslucentForImageViewInFragment(this, |
| | | 0, null); |
| | | StatusBarUtil.setLightMode(this); |
| | | } |
| | | |
| | | /** |
| | | * 修改状态栏字体颜色(黑色) |
| | | */ |
| | | public void setStatusBarTextColor() { |
| | | getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR); |
| | | } |
| | | |
| | | /** |