Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
画面を暗くするアプリを書いていますが、画面下部のバックライト付き入力ボタンをサービスから暗くするにはどうすればよいですか?
目に見えない、触れられない、焦点を合わせられないアクティビティを起動することは、他のアクティビティの起動をブロックするため、オプションではありません。
提案?
使ってみて
getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE);
必要になるだろう
<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="11" />
あなたのライブラリマニフェストで。
また、必要に応じて、ライブラリとシェルのプロパティでターゲット SDK を 11 に設定します。