Skip to content

Cai-Go/AndroidUtilsCollections

Repository files navigation

Android 工具栏集合

StatusBarUtil 的使用

  1. 设置状态栏颜色
	StatusBarUtil.setColor(Activity activity, int color)
  1. 设置状态栏半透明
	StatusBarUtil.setTranslucent(Activity activity, int statusBarAlpha)
  1. 设置状态栏全透明
	StatusBarUtil.setTransparent(Activity activity)
  1. 为包含 DrawerLayout 的界面设置状态栏颜色(也可以设置半透明和全透明)
	StatusBarUtil.setColorForDrawerLayout(Activity activity, DrawerLayout drawerLayout, int color)
  1. 为使用 ImageView 作为头部的界面设置状态栏透明
	StatusBarUtil.setTranslucentForImageView(Activity activity, int statusBarAlpha, View needOffsetView)

KLog 的使用

首先在 xxApplication 中初始化

	KLog.init(BuildConfig.LOG_DEBUG, "Kai");

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages