Package io.rong.imkit.utils

## Class StatusBarUtil

- All Implemented Interfaces:

      public class StatusBarUtil

  Created by Android Studio. User: lvhongzhen Date: 2019-08-15 Time: 01:47

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---

  - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---
    `public final static int` | `TYPE_MIUI` |
    `public final static int` | `TYPE_FLYME` |
    `public final static int` | `TYPE_M` |

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `StatusBarUtil()` |

  - ### Enum Constant Summary

    Enum Constants
    Enum Constant | Description
    --- | ---

  - ### Method Summary

    Modifier and Type | Method | Description
    --- | --- | ---
    `static void` | `setStatusBarColor(Activity activity, int colorId)` | 修改状态栏颜色，支持4.
    `static void` | `setTranslucentStatus(Activity activity)` | 设置状态栏透明
    `static void` | `setRootViewFitsSystemWindows(Activity activity, boolean fitSystemWindows)` | 代码实现android:fitsSystemWindows
    `static boolean` | `setStatusBarDarkTheme(Activity activity, boolean dark)` | 设置状态栏深色浅色切换
    `static boolean` | `setStatusBarFontIconDark(Activity activity, int type, boolean dark)` | 设置 状态栏深色浅色切换
    `static boolean` | `setCommonUI(Activity activity, boolean dark)` |
    `static boolean` | `setFlymeUI(Activity activity, boolean dark)` |
    `static boolean` | `setMiuiUI(Activity activity, boolean dark)` |
    `static int` | `getStatusBarHeight(Context context)` |

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### StatusBarUtil

          StatusBarUtil()

  - ### Method Detail

    - #### setStatusBarColor

           static void setStatusBarColor(Activity activity, int colorId)

      修改状态栏颜色，支持4.4以上版本

      Parameters:
        `colorId` - 颜色

    - #### setTranslucentStatus

           static void setTranslucentStatus(Activity activity)

      设置状态栏透明

    - #### setRootViewFitsSystemWindows

           static void setRootViewFitsSystemWindows(Activity activity, boolean fitSystemWindows)

      代码实现android:fitsSystemWindows

    - #### setStatusBarDarkTheme

           static boolean setStatusBarDarkTheme(Activity activity, boolean dark)

      设置状态栏深色浅色切换

    - #### setStatusBarFontIconDark

           static boolean setStatusBarFontIconDark(Activity activity, int type, boolean dark)

      设置 状态栏深色浅色切换

    - #### setCommonUI

           static boolean setCommonUI(Activity activity, boolean dark)

    - #### setFlymeUI

           static boolean setFlymeUI(Activity activity, boolean dark)

    - #### setMiuiUI

           static boolean setMiuiUI(Activity activity, boolean dark)

    - #### getStatusBarHeight

           static int getStatusBarHeight(Context context)