Android Studio 左側のプロジェクト構造から res → values → themes → themes.xml を開きます。
10~14行目のコードを追加します。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10行目の parent=”Base.Theme.Sample” は 3行目の name 属性と揃えてください。
2. テーマを反映させる
先ほど用意したテーマを反映させます。
Java の場合
ダイアログを作成している部分にテーマを設定します。(6行目)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
COMMENT
投稿いただいたコメントは管理者の承認後に表示されます。
コードやエラーに関するご質問の場合は、以下の3点
をできるだけ具体的に必ず書いてください。