您现在的位置是:主页 > news > 奉化市住房和城乡建设局网站/淘宝产品关键词排名查询

奉化市住房和城乡建设局网站/淘宝产品关键词排名查询

admin2025/5/23 22:44:21news

简介奉化市住房和城乡建设局网站,淘宝产品关键词排名查询,论坛网站的建立,网站公安网备案什么意思SystemBars系统栏工具库设置系统栏背景色设置覆盖在应用内容上设置系统栏浅色模式设置是否在系统栏颜色为0时,显示默认的系统栏半透明背景设置沉浸式系统栏向后倾斜模式 - 触摸屏幕重新显示系统栏沉浸模式 - 滑过屏幕边缘重新显示系统栏粘性沉浸模式 - 滑过屏幕边缘…

奉化市住房和城乡建设局网站,淘宝产品关键词排名查询,论坛网站的建立,网站公安网备案什么意思SystemBars系统栏工具库设置系统栏背景色设置覆盖在应用内容上设置系统栏浅色模式设置是否在系统栏颜色为0时,显示默认的系统栏半透明背景设置沉浸式系统栏向后倾斜模式 - 触摸屏幕重新显示系统栏沉浸模式 - 滑过屏幕边缘重新显示系统栏粘性沉浸模式 - 滑过屏幕边缘…

SystemBars

系统栏工具库

设置系统栏背景色

设置覆盖在应用内容上

设置系统栏浅色模式

设置是否在系统栏颜色为0时,显示默认的系统栏半透明背景

设置沉浸式系统栏

向后倾斜模式 - 触摸屏幕重新显示系统栏

沉浸模式 - 滑过屏幕边缘重新显示系统栏

粘性沉浸模式 - 滑过屏幕边缘重新显示系统栏并在数秒后重新隐藏,此方式无法收到系统栏的可见性变化事件

适配 Android R(API30)

最低要求 API21+

Gradle

repositories {

maven { url "https://gitee.com/ezy/repo/raw/android_public/"}

}

dependencies {

implementation "me.reezy.jetpack:systembars:0.4.0"

}

API

interface Bar {

// 设置系统栏背景色

fun color(@ColorInt color: Int): Bar

// 设置覆盖在应用内容上

fun overlay(value: Boolean = true): Bar

// 设置系统栏浅色模式

fun light(value: Boolean = true): Bar

// 设置是否在系统纺栏颜色为0时,显示默认的系统栏半透明背景

fun contrast(value: Boolean = true): Bar

}

fun Activity.systemBars(): Bar = SystemBars(window)

fun Fragment.systemBars(): Bar = SystemBars(requireActivity().window)

fun Dialog.systemBars(): Bar = SystemBars(window!!)

fun Activity.statusBar(): Bar = StatusBar(window)

fun Fragment.statusBar(): Bar = StatusBar(requireActivity().window)

fun Dialog.statusBar(): Bar = StatusBar(window!!)

fun Activity.navigationBar(): Bar = NavigationBar(window)

fun Fragment.navigationBar(): Bar = NavigationBar(requireActivity().window)

fun Dialog.navigationBar(): Bar = NavigationBar(window!!)

fun Window.immersive(enable: Boolean = true, swipe: Boolean = false, transientBars: Boolean = false)

var Window.isDrawsSystemBarBackgrounds: Boolean

var Window.isStatusBarOverlay: Boolean

var Window.isStatusBarLight: Boolean

var Window.isNavigationBarOverlay: Boolean

var Window.isNavigationBarLight: Boolean

Screenshot

fcf1752d174b98a6a2798707d441c8f4.png

LICENSE

The Component is open-sourced software licensed under the Apache license.