안드로이드 상태 바
안드로이드 상태바 및 상태바 아이콘 색깔 변경
// Make Activity Get Transparent Status Bar With Defined Icon Color
fun makeTransparentStatusBar(activity: AppCompatActivity) {
    activity.window.apply {
        clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS)
        // Extends Background Layout
        addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS)
        decorView.systemUiVisibility = View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
        if(Build.VERSION.SDK_INT >=  Build.VERSION_CODES.R) {
            // Status Bar Icon Color Black
            decorView.windowInsetsController?.setSystemBarsAppearance(APPEARANCE_LIGHT_STATUS_BARS, APPEARANCE_LIGHT_STATUS_BARS)
            
            // Status Bar Icon Color White
            // decorView.windowInsetsController?.setSystemBarsAppearance(0, APPEARANCE_LIGHT_STATUS_BARS)
        }
        // Status Bar Color Transparent
        statusBarColor = Color.TRANSPARENT
    }
}Author And Source
이 문제에 관하여(안드로이드 상태 바), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://velog.io/@kanei0415/안드로이드-상태-바저자 귀속: 원작자 정보가 원작자 URL에 포함되어 있으며 저작권은 원작자 소유입니다.
                                
                                
                                
                                
                                
                                우수한 개발자 콘텐츠 발견에 전념
                                (Collection and Share based on the CC Protocol.)