Git Product home page Git Product logo

ho2xing / titlebarview Goto Github PK

View Code? Open in Web Editor NEW

This project forked from arieshoo/titlebarview

0.0 2.0 0.0 40.59 MB

【2.0.0以后版本由UIWidget维护,不做更新】}Android 一个支持Android 4.4以上版本沉浸式及半透明状态栏效果的标题栏控件.支持文xml及java代码设置众多自定义属性;实现MIUI V6、Flyme 4.0、Android 6.0以上状态栏文字颜色切换;支持设置主/副标题跑马灯效果;可设置左边文字/图片、中间主、副标题、右边文字/图片;支持Java代码添加左边、中间、右边 View

Home Page: http://www.jianshu.com/p/34ace867b29f

License: Apache License 2.0

Java 100.00%

titlebarview's Introduction

TitleBarView-一个自带沉浸状态栏效果的Android自定义标题栏控件


fir.im API GitHub license

简介:

一个支持Android 4.4以上版本沉浸式及半透明状态栏效果的 TitleBarView;更全常见UI库参看 UIWidget

说明2.0.0以后版本UIWidget维护,不再做版本更新

TitleBarView是基于ViewGroup的扩展,主要具有以下特性

  • 支持Android 4.4以上版本沉浸式(关于这个叫法大家不要去纠结,意会即可)及半透明状态栏效果

  • 实现MIUI V6、Flyme 4.0、Android 6.0以上状态栏文字颜色切换(当然只能黑或白色)

  • 支持设置主/副标题跑马灯效果

  • 支持Java代码及XML设置众多自定义属性

  • 支持Java代码链式调用方便快捷

  • 可设置左边文字/图片、中间主、副标题、右边文字/图片

  • 支持Java代码添加左边、中间、右边 View

说明:此处沉浸式状态栏为状态栏透明化且布局延伸至状态栏下效果,非状态栏着色模式

详情实现流程解析请移步:TitleBarView-一个自带沉浸状态栏效果的Android自定义标题栏控件

[Sample PC Download]

[Sample Mobile Download]

Gradle集成

allprojects {
    repositories {
        ...
        maven { url "https://jitpack.io" }
    }
}
dependencies {
    // compile 'com.github.AriesHoo:TitleBarView:2.0.0'
     compile 'com.github.AriesHoo:TitleBarView:${LATEST_VERSION}'
}

录屏预览

Android 4.1

Android 4.4

Android 5.1

Android 6.0

Android 7.0

其它UI库查看:UIWidget

鸣谢

License

Copyright 2016 Aries Hoo

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.

titlebarview's People

Contributors

arieshoo avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.