├── .gitignore ├── .idea ├── .gitignore ├── compiler.xml ├── gradle.xml ├── kotlinc.xml └── misc.xml ├── README.md ├── app ├── .gitignore ├── build.gradle ├── proguard-rules.pro └── src │ ├── androidTest │ └── java │ │ └── demo │ │ └── maple │ │ └── fitsystembardemo │ │ └── ExampleInstrumentedTest.kt │ ├── main │ ├── AndroidManifest.xml │ ├── java │ │ └── demo │ │ │ └── maple │ │ │ └── fitsystembardemo │ │ │ └── MainActivity.kt │ └── res │ │ ├── drawable-v24 │ │ └── ic_launcher_foreground.xml │ │ ├── drawable │ │ └── ic_launcher_background.xml │ │ ├── layout │ │ └── activity_main.xml │ │ ├── mipmap-anydpi-v26 │ │ ├── ic_launcher.xml │ │ └── ic_launcher_round.xml │ │ ├── mipmap-hdpi │ │ ├── ic_launcher.webp │ │ └── ic_launcher_round.webp │ │ ├── mipmap-mdpi │ │ ├── ic_launcher.webp │ │ └── ic_launcher_round.webp │ │ ├── mipmap-xhdpi │ │ ├── ic_launcher.webp │ │ └── ic_launcher_round.webp │ │ ├── mipmap-xxhdpi │ │ ├── ic_launcher.webp │ │ └── ic_launcher_round.webp │ │ ├── mipmap-xxxhdpi │ │ ├── ic_launcher.webp │ │ └── ic_launcher_round.webp │ │ ├── values-night-v27 │ │ └── themes.xml │ │ ├── values-night │ │ └── themes.xml │ │ ├── values-v27 │ │ └── themes.xml │ │ ├── values │ │ ├── colors.xml │ │ ├── strings.xml │ │ └── themes.xml │ │ └── xml │ │ ├── backup_rules.xml │ │ └── data_extraction_rules.xml │ └── test │ └── java │ └── demo │ └── maple │ └── fitsystembardemo │ └── ExampleUnitTest.kt ├── build.gradle ├── fitSystemBar ├── .gitignore ├── build.gradle ├── consumer-rules.pro ├── proguard-rules.pro └── src │ ├── androidTest │ └── java │ │ └── com │ │ └── xiaobin │ │ └── fitsystembar │ │ └── ExampleInstrumentedTest.kt │ ├── main │ ├── AndroidManifest.xml │ ├── java │ │ └── com │ │ │ └── xiaobin │ │ │ └── fitsystembar │ │ │ ├── FitSystemBarHelper.kt │ │ │ ├── SystemBarExtensions.kt │ │ │ ├── base │ │ │ ├── FitSystemBarConstraintLayout.kt │ │ │ ├── FitSystemBarFrameLayout.kt │ │ │ └── FitSystemBarLinearLayout.kt │ │ │ ├── custom │ │ │ ├── FitNavigationBarFrameLayout.kt │ │ │ ├── FitNavigationBarLinearLayout.kt │ │ │ └── FitStatusBarFrameLayout.kt │ │ │ └── listener │ │ │ └── OnLayoutRectChangeListener.kt │ └── res │ │ └── values │ │ ├── attrs.xml │ │ └── ids.xml │ └── test │ └── java │ └── com │ └── xiaobin │ └── fitsystembar │ └── ExampleUnitTest.kt ├── gif └── screen.gif ├── gradle.properties ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat └── settings.gradle /.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/caches 5 | /.idea/libraries 6 | /.idea/modules.xml 7 | /.idea/workspace.xml 8 | /.idea/navEditor.xml 9 | /.idea/assetWizardSettings.xml 10 | .DS_Store 11 | /build 12 | /captures 13 | .externalNativeBuild 14 | .cxx 15 | local.properties 16 | -------------------------------------------------------------------------------- /.idea/.gitignore: -------------------------------------------------------------------------------- 1 | # Default ignored files 2 | /shelf/ 3 | /workspace.xml 4 | -------------------------------------------------------------------------------- /.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 20 | 21 | -------------------------------------------------------------------------------- /.idea/kotlinc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | -------------------------------------------------------------------------------- /.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 9 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # FitSystemBarUtils 2 | 3 | 沉浸式状态栏,一个自动处理WindowInsets和cutOut的工具,一行代码 给任意view绑定。 4 | 你还在苦恼布局中背景图需要上到状态栏或者虚拟导航键下面,却写不好其他控件的布局吗? 5 | 你还在获取状态栏高度的方式去给布局设置一个paddingTop吗? 6 | 快来试试看这个吧。 7 | 功能非常简单,没几行代码。 8 | 9 | 可以实现软键盘弹起时,平滑的推起底部的输入框哦!(也许比微信还丝滑) 10 | 11 | ## Demo录屏gif: 12 | 13 | 14 | ## 在项目中引用 15 | 16 | ### Gradle 17 | 18 | Step 1. Add it in your root build.gradle at the end of repositories 19 | 20 | allprojects { 21 | repositories { 22 | ... 23 | maven { url 'https://jitpack.io' } 24 | } 25 | } 26 | 27 | Step 2. Add the dependency 28 | 29 | [![](https://jitpack.io/v/Matcha-xiaobin/fitSystemBarUtils.svg)](https://jitpack.io/#Matcha-xiaobin/fitSystemBarUtils) 30 | 31 | dependencies { 32 | implementation 'com.github.Matcha-xiaobin:fitSystemBarUtils:1.0.3' 33 | } 34 | 35 | ### 目前BUG: 36 | 突然发现在Android 10系统上出现了系统栏明明隐藏了,高度却没有变成0的问题,android 11+似乎没问题。 37 | 目前已修复,并且禁用了低于android 11的动画效果,实际上ViewCompat中帮我们实现了低于android 11的设备的动画效果,但是存在问题。 38 | 39 | ### 在代码中使用: 40 | 这个工具本质是把系统分发的insets属性拿出来用了一下,可以参考下google的 BottomNavigationView 底部导航 的代码,里面也用到了这个原理。 41 | 注意:如果你不知道这个时干啥用的,建议下载demo看看实际效果是不是你需要的效果 42 | 43 | 任意View实现FitSystemBar效果 44 | 中间内容区域上下两边不需要填充,因为上面有标题栏,下面有输入框栏 45 | 46 | FitSystemBarHelper.attachView( 47 | binding.content, 48 | start = true, 49 | top = false, 50 | end = true, 51 | bottom = false 52 | ) 53 | //第二种写法, 这种写法支持动态改变,但改变后的生效时间由系统分发WindowInsets的时机决定 54 | //如果需要立即生效,请在改变值后调用 fitSystemHelperForContent.requestApplyInsets() 55 | FitSystemBarHelper.attachView(binding.content) { orientation -> 56 | when (orientation) { 57 | FitSystemBarHelper.Orientation.Start -> true 58 | FitSystemBarHelper.Orientation.Top -> false 59 | FitSystemBarHelper.Orientation.End -> true 60 | FitSystemBarHelper.Orientation.Bottom -> false 61 | } 62 | } 63 | 64 | 获取这个View已绑定的FitSystemBarHelper对象 65 | 66 | view.fitSystemBarHelper() 67 | 68 | 取消绑定 69 | 70 | view.fitSystemBarHelper()?.destory() 71 | 72 | ### 使用DataBinding在xml中使用 73 | 每个属性的默认值为false 74 | 是否处理Start方向的 75 | 76 | fitStart="@{true}" 77 | 78 | 是否处理上方的 79 | 80 | fitTop="@{true}" 81 | 82 | 是否处理End方向的 83 | 84 | fitEnd="@{true}" 85 | 86 | 是否处理下方的 87 | 88 | fitBottom="@{true}" 89 | 90 | ### 自定义View 91 | 自带了3个: 92 | FitNavigationBarFrameLayout 用作根布局最底下的不需要处理顶部状态栏区域的填充的 FrameLayout 93 | FitNavigationBarLinearLayout 用作根布局最底下的不需要处理顶部状态栏区域的填充的 LinearLayout 94 | FitStatusBarLinearLayout 用作根布局最上方的不需要处理底部导航栏区域的填充的 LinearLayout 95 | 直接参考即可,甚至可以直接拷贝一模一样,将继承的目标换成你需要的View即可 96 | -------------------------------------------------------------------------------- /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build -------------------------------------------------------------------------------- /app/build.gradle: -------------------------------------------------------------------------------- 1 | plugins { 2 | id 'com.android.application' 3 | id 'org.jetbrains.kotlin.android' 4 | id "kotlin-kapt" 5 | } 6 | 7 | android { 8 | namespace 'demo.maple.fitsystembardemo' 9 | compileSdk 34 10 | 11 | defaultConfig { 12 | applicationId "demo.maple.fitsystembardemo" 13 | minSdk 21 14 | targetSdk 34 15 | versionCode 1 16 | versionName "1.0" 17 | 18 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" 19 | } 20 | 21 | buildTypes { 22 | release { 23 | minifyEnabled false 24 | proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' 25 | } 26 | } 27 | compileOptions { 28 | sourceCompatibility JavaVersion.VERSION_17 29 | targetCompatibility JavaVersion.VERSION_17 30 | } 31 | kotlinOptions { 32 | jvmTarget = '17' 33 | } 34 | buildFeatures { 35 | dataBinding = true 36 | } 37 | } 38 | 39 | dependencies { 40 | implementation project(":fitSystemBar") 41 | implementation 'androidx.core:core-ktx:1.12.0' 42 | implementation 'androidx.activity:activity-ktx:1.8.0-beta01' 43 | implementation 'androidx.appcompat:appcompat:1.6.1' 44 | implementation 'com.google.android.material:material:1.9.0' 45 | implementation 'androidx.constraintlayout:constraintlayout:2.1.4' 46 | testImplementation 'junit:junit:4.13.2' 47 | androidTestImplementation 'androidx.test.ext:junit:1.1.5' 48 | androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1' 49 | } -------------------------------------------------------------------------------- /app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # You can control the set of applied configuration files using the 3 | # proguardFiles setting in build.gradle. 4 | # 5 | # For more details, see 6 | # http://developer.android.com/guide/developing/tools/proguard.html 7 | 8 | # If your project uses WebView with JS, uncomment the following 9 | # and specify the fully qualified class name to the JavaScript interface 10 | # class: 11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 12 | # public *; 13 | #} 14 | 15 | # Uncomment this to preserve the line number information for 16 | # debugging stack traces. 17 | #-keepattributes SourceFile,LineNumberTable 18 | 19 | # If you keep the line number information, uncomment this to 20 | # hide the original source file name. 21 | #-renamesourcefileattribute SourceFile -------------------------------------------------------------------------------- /app/src/androidTest/java/demo/maple/fitsystembardemo/ExampleInstrumentedTest.kt: -------------------------------------------------------------------------------- 1 | package demo.maple.fitsystembardemo 2 | 3 | import androidx.test.platform.app.InstrumentationRegistry 4 | import androidx.test.ext.junit.runners.AndroidJUnit4 5 | 6 | import org.junit.Test 7 | import org.junit.runner.RunWith 8 | 9 | import org.junit.Assert.* 10 | 11 | /** 12 | * Instrumented test, which will execute on an Android device. 13 | * 14 | * See [testing documentation](http://d.android.com/tools/testing). 15 | */ 16 | @RunWith(AndroidJUnit4::class) 17 | class ExampleInstrumentedTest { 18 | @Test 19 | fun useAppContext() { 20 | // Context of the app under test. 21 | val appContext = InstrumentationRegistry.getInstrumentation().targetContext 22 | assertEquals("demo.maple.fitsystembardemo", appContext.packageName) 23 | } 24 | } -------------------------------------------------------------------------------- /app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 15 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /app/src/main/java/demo/maple/fitsystembardemo/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package demo.maple.fitsystembardemo 2 | 3 | import android.graphics.Color 4 | import android.os.Build 5 | import android.os.Bundle 6 | import androidx.appcompat.app.AppCompatActivity 7 | import androidx.core.view.WindowCompat 8 | import androidx.core.view.WindowInsetsCompat 9 | import androidx.core.view.WindowInsetsControllerCompat 10 | import androidx.core.view.isVisible 11 | import androidx.databinding.DataBindingUtil 12 | import com.xiaobin.fitsystembar.FitSystemBarHelper 13 | import com.xiaobin.fitsystembar.FitSystemBarHelper.Companion.fitSystemBarHelper 14 | import com.xiaobin.fitsystembar.setSystemBarTheme 15 | import com.xiaobin.fitsystembar.showNavigationBar 16 | import com.xiaobin.fitsystembar.showStatusBar 17 | import demo.maple.fitsystembardemo.databinding.ActivityMainBinding 18 | 19 | /** 20 | * AndroidManifest.xml中给activity配置了: 21 | * android:windowSoftInputMode="adjustResize" 22 | */ 23 | class MainActivity : AppCompatActivity() { 24 | 25 | private val binding by lazy { 26 | DataBindingUtil.setContentView(this, R.layout.activity_main) 27 | } 28 | 29 | override fun onCreate(savedInstanceState: Bundle?) { 30 | super.onCreate(savedInstanceState) 31 | // 任意View实现FitSystemBar效果 32 | // 中间内容区域上下两边不需要填充,因为上面有标题栏,下面有输入框栏 33 | FitSystemBarHelper.attachView( 34 | binding.content, 35 | start = true, 36 | top = false, 37 | end = true, 38 | bottom = false 39 | ) 40 | //第二种写法, 这种写法支持动态改变,但改变后的生效时间由系统分发WindowInsets的时机决定 41 | //如果需要立即生效,请在改变值后调用 fitSystemHelperForContent.requestApplyInsets() 42 | FitSystemBarHelper.attachView(binding.content) { orientation -> 43 | when (orientation) { 44 | FitSystemBarHelper.Orientation.Start -> true 45 | FitSystemBarHelper.Orientation.Top -> false 46 | FitSystemBarHelper.Orientation.End -> true 47 | FitSystemBarHelper.Orientation.Bottom -> false 48 | } 49 | } 50 | binding.llButtons2.isVisible = Build.VERSION.SDK_INT >= Build.VERSION_CODES.R 51 | binding.btnSystemBarShow.setOnClickListener { 52 | showSystemBar(true) 53 | } 54 | binding.btnSystemBarHide.setOnClickListener { 55 | showSystemBar(false) 56 | } 57 | binding.btnStatusBarShow.setOnClickListener { 58 | window.showStatusBar(true) 59 | } 60 | binding.btnStatusBarHide.setOnClickListener { 61 | window.showStatusBar(false) 62 | } 63 | binding.btnNaviBarShow.setOnClickListener { 64 | window.showNavigationBar(true) 65 | } 66 | binding.btnNaviBarHide.setOnClickListener { 67 | window.showNavigationBar(false) 68 | } 69 | binding.btnSystemCutOut.setOnClickListener { 70 | cutOutSet(true) 71 | } 72 | binding.btnSystemNoCutOut.setOnClickListener { 73 | cutOutSet(false) 74 | } 75 | binding.btnSmoothPadding.setOnClickListener { 76 | smoothPadding(true) 77 | } 78 | binding.btnNoSmoothPadding.setOnClickListener { 79 | smoothPadding(false) 80 | } 81 | } 82 | 83 | private fun smoothPadding(enable: Boolean) { 84 | binding.titleBar.smoothPadding(enable) 85 | binding.navigationBar.smoothPadding(enable) 86 | binding.content.fitSystemBarHelper()?.smoothPadding = enable 87 | } 88 | 89 | private fun cutOutSet(enable: Boolean) { 90 | binding.titleBar.safeCutOutPadding(enable) 91 | binding.navigationBar.safeCutOutPadding(enable) 92 | binding.content.fitSystemBarHelper()?.safeCutOutPadding = enable 93 | } 94 | 95 | private fun showSystemBar(show: Boolean) { 96 | val insetsController = WindowCompat.getInsetsController(window, window.decorView) 97 | insetsController.systemBarsBehavior = 98 | WindowInsetsControllerCompat.BEHAVIOR_SHOW_TRANSIENT_BARS_BY_SWIPE 99 | if (show) { 100 | insetsController.show(WindowInsetsCompat.Type.systemBars()) 101 | } else { 102 | insetsController.hide(WindowInsetsCompat.Type.systemBars()) 103 | } 104 | } 105 | 106 | override fun onResume() { 107 | super.onResume() 108 | window.setSystemBarTheme(false, false) 109 | //沉浸式状态栏 110 | WindowCompat.setDecorFitsSystemWindows(window, false) 111 | val insetsController = WindowCompat.getInsetsController(window, window.decorView) 112 | insetsController.isAppearanceLightStatusBars = false 113 | if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { 114 | //状态栏设置透明 115 | window.statusBarColor = Color.TRANSPARENT 116 | } 117 | if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) { 118 | window.isNavigationBarContrastEnforced = false 119 | } 120 | insetsController.isAppearanceLightNavigationBars = false 121 | if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { 122 | window.navigationBarColor = Color.TRANSPARENT 123 | } else { 124 | window.navigationBarColor = Color.BLACK 125 | } 126 | } 127 | } -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/ic_launcher_foreground.xml: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 15 | 18 | 21 | 22 | 23 | 24 | 30 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_launcher_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 10 | 15 | 20 | 25 | 30 | 35 | 40 | 45 | 50 | 55 | 60 | 65 | 70 | 75 | 80 | 85 | 90 | 95 | 100 | 105 | 110 | 115 | 120 | 125 | 130 | 135 | 140 | 145 | 150 | 155 | 160 | 165 | 170 | 171 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | 10 | 14 | 15 | 21 | 22 | 28 | 29 | 35 | 36 | 44 | 45 | 46 | 47 | 53 | 54 | 60 | 61 | 67 | 68 | 78 | 79 | 87 | 88 | 94 | 95 | 96 | 97 | 108 | 109 | 117 | 118 | 124 | 125 | 126 | 127 | 138 | 139 | 140 | 150 | 151 | 156 | 157 | 162 | 163 | 164 | 165 | 175 | 176 | 181 | 182 | 187 | 188 | 189 | 190 | 201 | 202 | 207 | 208 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 226 | 227 | 240 | 241 | 242 | 243 | 244 | 245 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Matcha-xiaobin/fitSystemBarUtils/05cc7e78c5bf80d208d9b86edbded01ebc9fa3bc/app/src/main/res/mipmap-hdpi/ic_launcher.webp -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher_round.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Matcha-xiaobin/fitSystemBarUtils/05cc7e78c5bf80d208d9b86edbded01ebc9fa3bc/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Matcha-xiaobin/fitSystemBarUtils/05cc7e78c5bf80d208d9b86edbded01ebc9fa3bc/app/src/main/res/mipmap-mdpi/ic_launcher.webp -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher_round.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Matcha-xiaobin/fitSystemBarUtils/05cc7e78c5bf80d208d9b86edbded01ebc9fa3bc/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Matcha-xiaobin/fitSystemBarUtils/05cc7e78c5bf80d208d9b86edbded01ebc9fa3bc/app/src/main/res/mipmap-xhdpi/ic_launcher.webp -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Matcha-xiaobin/fitSystemBarUtils/05cc7e78c5bf80d208d9b86edbded01ebc9fa3bc/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Matcha-xiaobin/fitSystemBarUtils/05cc7e78c5bf80d208d9b86edbded01ebc9fa3bc/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Matcha-xiaobin/fitSystemBarUtils/05cc7e78c5bf80d208d9b86edbded01ebc9fa3bc/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Matcha-xiaobin/fitSystemBarUtils/05cc7e78c5bf80d208d9b86edbded01ebc9fa3bc/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Matcha-xiaobin/fitSystemBarUtils/05cc7e78c5bf80d208d9b86edbded01ebc9fa3bc/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp -------------------------------------------------------------------------------- /app/src/main/res/values-night-v27/themes.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/values-night/themes.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/values-v27/themes.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 10 | 11 | 7 | 8 |