状态栏半透明与色调上奇巧奇巧、色调、状态栏

2023-09-06 08:18:53 作者:只为伊人醉

我需要设置Android状态栏半透明像在iOS 7的色彩效果的颜色,我已经审议了有关文件,但只解释了如何获得一个渐变的半透明状态栏。

I need to set Android status bar semi-translucent with a color like tint effect on iOS 7, i've reviewed the documentation, but it only explains how to get a gradient translucent status bar.

我已经看到了三星Galaxy S5股票拨号应用程式的效果,所以我想执行这个效果。这是效果:

I've seen the effect on Samsung Galaxy S5 stock dialer app, so I want to perform this effect. This is the effect:

例如这是一个示例应用程序,显示类似,我想打一个效果,而是一个渐变透明我想与固体半透明状状态栏后面纯色整个状态栏:

For example this is an example app that show an effect similar that I want to make, but instead a gradient to transparent I want the whole status bar with solid color behind the solid semi translucent status bar:

https://play.google.com/store/apps/details?id=com.readystatesoftware.systembartint.sample&hl=es

任何帮助将是巨大的。先谢谢了。

Any help would be great. Thanks in advance.

推荐答案

你试过设置颜色在图案#OORRGGBB?

Have you tried to set color over the pattern #OORRGGBB?

例如:#50ff0000。前两个数字是不透明度。

Example: #50ff0000. The first two numbers are the opacity.

无论如何,我发现这个项目,可以帮助你。

Anyway, I've found this project that might help you.

https://github.com/jgilfelt/SystemBarTint

 
精彩推荐
图片推荐