回答編集履歴

1

色変更の追記

2018/09/25 16:50

投稿

Wind
Wind

スコア442

test CHANGED
@@ -8,7 +8,9 @@
8
8
 
9
9
  <item android:state_pressed="false">
10
10
 
11
- <!-- Offの時 -->
11
+ <!-- Offの時 赤色-->
12
+
13
+ <color android:color="#ff0000"></color>
12
14
 
13
15
  </item>
14
16
 
@@ -16,10 +18,18 @@
16
18
 
17
19
  <item android:state_pressed="true">
18
20
 
19
- <!-- Onの時 -->
21
+ <!-- Onの時 青色-->
22
+
23
+ <color android:color="#0000ff"></color>
20
24
 
21
25
  </item>
22
26
 
23
27
  </selector>
24
28
 
25
29
  ```
30
+
31
+
32
+
33
+ 【追記】
34
+
35
+ デフォルトで赤色ボタン、押すと青色ボタンにしました。