0
1

More than 3 years have passed since last update.

Android10から出たダークテーマにアプリを対応させないようにするには

Posted at

はじめに

実機のAndroid10でダークテーマにしたらアプリの色が予期せぬ色になってしまったのでダークテーマを無視して
今まで通りのアプリの色を表示したい!

環境

macOS Mojave 10.14.6
AndroidStudio3.5
compileSdkVersion 28
minSdkVersion 21

アプリでダークテーマを無視する

Googleさんは非推奨かもだけど、暫定対応。

元々のstyles.xml
<style name="AppTheme" parent="Theme.AppCompat.DayNight.NoActionBar">
変更後のstyles.xml
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1