A util for setting status bar style on Android App. It can work above API 19(KitKat 4.4).

groovy
compile 'com.jaeger.statusbarutil:library:1.5.1'
I fixed typo, change "statusbaruitl" to "statusbarutil", please notice this.
setContentView(), such as :java
setContentView(R.layout.main_activity);
...
StatusBarUtil.setColor(MainActivity.this, mColor);
DrawerLayout, you need add android:fitsSystemWindows="true" for DrawerLayout in your layout XML:```xml
...
```
Recommend using with bingoogolapple/BGASwipeBackLayout-Android: Android Activity 滑动返回
java
StatusBarUtil.setColorForSwipeBack(Activity activity, @ColorInt int color, int statusBarAlpha)
All statusBarAlpha value you set should between 0 ~ 255
How to use in Fragment, please read UseInFragmentActivity.java
Handle all Fragments in ViewPager as ImageViewFragment, add a fake View in your Fragment layout as StatusBar :
```xml
<View
android:id="@+id/fake_statusbar_view"
android:layout_width="match_parent"
android:layout_height="@dimen/statusbar_view_height"
android:background="@color/colorPrimary"/>
<TextView
android:id="@+id/tv_title"
android:layout_width="match_parent"
android:layout_height="56dp"
android:background="@color/colorPrimary"
android:gravity="center"
android:text="@string/app_name"
android:textColor="@color/white"
android:textSize="24sp"/>
```
The fake StatusBar View height value statusbar_view_height defined in dimens.xml
```xml ~ values-v19/dimens.xml
25dp
~ values/dimens.xml
0dp ```
When you change StatusBarColor :
java
mFakeStatusBar.setBackgroundColor(color);
Then in the Activity which contains ViewPage, just invoke
java
StatusBarUtil.setTranslucentForImageViewInFragment(UseInFragmentActivity.this, null);
Please read UseInFragmentActivity.java
java
StatusBarUtil.setColor(Activity activity, int color)

java
StatusBarUtil.setTranslucent(Activity activity, int statusBarAlpha)

java
StatusBarUtil.setTransparent(Activity activity)

DrawerLayoutjava
StatusBarUtil.setColorForDrawerLayout(Activity activity, DrawerLayout drawerLayout, int color)

java
StatusBarUtil.setTranslucentForImageView(Activity activity, int statusBarAlpha, View needOffsetView)

StatusBarUtil.setLightMode(Activity activity)
StatusBarUtil.setDarkMode(Activity activity)


java
StatusBarUtil.setColorForSwipeBack(Activity activity, @ColorInt int color, int statusBarAlpha)

Copyright 2016 Jaeger Chen
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
$ claude mcp add StatusBarUtil \
-- python -m otcore.mcp_server <graph>