Skip to content

nicech6/gm-statusbar

Repository files navigation

gm-statusbar

状态栏透明工具类(适配4.4以上)

SetUp

1) In your root build.gradle:

allprojects {

repositories {
    jcenter()
    maven { url 'https://jitpack.io' }
}

}

2) In your library/build.gradle add:


 compile 'com.github.icuihai:gm-statusbar:2.0'

你也可以直接拷贝代码到项目中使用,不满意还可自定义;

使用步骤:


 StatusBarUtils.compat(this,R.color.colorAccent);
 
  • 注意:第二个参数为颜色Id, *

About Me

weibo : https://www.weibo.com/icuihai

gmail : icuihai@gmail.com

License

Copyright 2017 icuihai.

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.