siberiadante / titlelayout Goto Github PK
View Code? Open in Web Editor NEW多功能、通用的、可在布局或者使用Java代码实现标题栏; 支持沉浸式状态栏; 支持标题栏单击、双击;支持左侧返回按钮不需要手动实现页面返回; 支持左侧按钮,中间标题,右边按钮点击 左侧支持图片+文字、单独图片、单独文字;右侧支持单独图片、单独文字等。
License: Apache License 2.0
多功能、通用的、可在布局或者使用Java代码实现标题栏; 支持沉浸式状态栏; 支持标题栏单击、双击;支持左侧返回按钮不需要手动实现页面返回; 支持左侧按钮,中间标题,右边按钮点击 左侧支持图片+文字、单独图片、单独文字;右侧支持单独图片、单独文字等。
License: Apache License 2.0
版本1.1.3 添加image以后,点击的image事件不存在了
我觉得目前来说点击标题左边的按钮返回的时候,可触发的点击范围太小了,能否给左边的textview和文字加个layout布局来扩大返回的可点击范围呢?
当activity设置状态栏隐藏,会导致标题栏顶部空出来一部分高度,高度恰好是状态栏高度。
设置状态栏隐藏代码:
mRootView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE
| View.SYSTEM_UI_FLAG_FULLSCREEN
| View.SYSTEM_UI_FLAG_LAYOUT_STABLE
| View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY
| View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION
| View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);
建议:增加隐藏状态栏公共方法,设置当前mStatusBarHeight为0.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.