質問編集履歴
3
XML修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -48,14 +48,14 @@
|
|
48
48
|
android:paddingRight="20dp">
|
49
49
|
|
50
50
|
<TextView
|
51
|
-
android:id="@+id/
|
51
|
+
android:id="@+id/textNum"
|
52
52
|
android:layout_width="3dp"
|
53
53
|
android:layout_height="wrap_content"
|
54
54
|
android:layout_weight="1"
|
55
|
-
android:text="
|
55
|
+
android:text="セット:" />
|
56
56
|
|
57
57
|
<Spinner
|
58
|
-
android:id="@+id/
|
58
|
+
android:id="@+id/spMa"
|
59
59
|
android:layout_width="wrap_content"
|
60
60
|
android:layout_height="wrap_content"
|
61
61
|
android:layout_weight="1"
|
@@ -63,25 +63,15 @@
|
|
63
63
|
android:theme="@style/AppTheme_spinner0" />
|
64
64
|
|
65
65
|
<Spinner
|
66
|
-
android:id="@+id/
|
66
|
+
android:id="@+id/spThl"
|
67
67
|
android:layout_width="wrap_content"
|
68
68
|
android:layout_height="wrap_content"
|
69
69
|
android:layout_weight="1"
|
70
70
|
android:entries="@array/thls"
|
71
71
|
android:theme="@style/AppTheme_spinner0" />
|
72
72
|
|
73
|
-
<TextView
|
74
|
-
android:id="@+id/textVtmp5"
|
75
|
-
android:layout_width="20dp"
|
76
|
-
android:layout_height="wrap_content"
|
77
|
-
android:layout_weight="1"
|
78
|
-
android:gravity="end"
|
79
|
-
android:text="値:"
|
80
|
-
android:textAlignment="textEnd"
|
81
|
-
android:textSize="11sp" />
|
82
|
-
|
83
73
|
<EditText
|
84
|
-
android:id="@+id/
|
74
|
+
android:id="@+id/eTval"
|
85
75
|
android:layout_width="50dp"
|
86
76
|
android:layout_height="wrap_content"
|
87
77
|
android:layout_marginBottom="-7dp"
|
2
XML追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -35,5 +35,113 @@
|
|
35
35
|
android:textSize="11sp" />
|
36
36
|
```
|
37
37
|
|
38
|
+
activity_set_aaa.xml
|
39
|
+
```XML
|
40
|
+
<LinearLayout
|
41
|
+
android:id="@+id/linerlayout5"
|
42
|
+
android:layout_width="match_parent"
|
43
|
+
android:layout_height="30dp"
|
44
|
+
android:layout_below="@+id/linerlayout4"
|
45
|
+
android:layout_marginTop="23dp"
|
46
|
+
android:orientation="horizontal"
|
47
|
+
android:paddingLeft="20dp"
|
48
|
+
android:paddingRight="20dp">
|
49
|
+
|
50
|
+
<TextView
|
51
|
+
android:id="@+id/textNum5"
|
52
|
+
android:layout_width="3dp"
|
53
|
+
android:layout_height="wrap_content"
|
54
|
+
android:layout_weight="1"
|
55
|
+
android:text="5" />
|
56
|
+
|
57
|
+
<Spinner
|
58
|
+
android:id="@+id/spMaxMin5"
|
59
|
+
android:layout_width="wrap_content"
|
60
|
+
android:layout_height="wrap_content"
|
61
|
+
android:layout_weight="1"
|
62
|
+
android:entries="@array/maxmins"
|
63
|
+
android:theme="@style/AppTheme_spinner0" />
|
64
|
+
|
65
|
+
<Spinner
|
66
|
+
android:id="@+id/spThl5"
|
67
|
+
android:layout_width="wrap_content"
|
68
|
+
android:layout_height="wrap_content"
|
69
|
+
android:layout_weight="1"
|
70
|
+
android:entries="@array/thls"
|
71
|
+
android:theme="@style/AppTheme_spinner0" />
|
72
|
+
|
73
|
+
<TextView
|
74
|
+
android:id="@+id/textVtmp5"
|
75
|
+
android:layout_width="20dp"
|
76
|
+
android:layout_height="wrap_content"
|
77
|
+
android:layout_weight="1"
|
78
|
+
android:gravity="end"
|
79
|
+
android:text="値:"
|
80
|
+
android:textAlignment="textEnd"
|
81
|
+
android:textSize="11sp" />
|
82
|
+
|
83
|
+
<EditText
|
84
|
+
android:id="@+id/eTval5"
|
85
|
+
android:layout_width="50dp"
|
86
|
+
android:layout_height="wrap_content"
|
87
|
+
android:layout_marginBottom="-7dp"
|
88
|
+
android:gravity="center"
|
89
|
+
android:hint="30"
|
90
|
+
android:inputType="text"
|
91
|
+
android:textColor="@color/colorLightGray"
|
92
|
+
android:textColorHint="@color/colorVeryDarkGray"
|
93
|
+
android:textSize="14sp" />
|
94
|
+
|
95
|
+
<Spinner
|
96
|
+
android:id="@+id/spCnt"
|
97
|
+
android:layout_width="wrap_content"
|
98
|
+
android:layout_height="wrap_content"
|
99
|
+
android:layout_weight="1"
|
100
|
+
android:entries="@array/conts"
|
101
|
+
android:gravity="end"
|
102
|
+
android:theme="@style/AppTheme_spinner0" />
|
103
|
+
|
104
|
+
<Spinner
|
105
|
+
android:id="@+id/spIf"
|
106
|
+
android:layout_width="wrap_content"
|
107
|
+
android:layout_height="wrap_content"
|
108
|
+
android:layout_weight="1"
|
109
|
+
android:entries="@array/ifnums"
|
110
|
+
android:gravity="end"
|
111
|
+
android:theme="@style/AppTheme_spinner0" />
|
112
|
+
|
113
|
+
<Spinner
|
114
|
+
android:id="@+id/spRem"
|
115
|
+
android:layout_width="wrap_content"
|
116
|
+
android:layout_height="wrap_content"
|
117
|
+
android:layout_weight="1"
|
118
|
+
android:gravity="end"
|
119
|
+
android:theme="@style/AppTheme_spinner0" />
|
120
|
+
|
121
|
+
</LinearLayout>
|
122
|
+
```
|
123
|
+
|
124
|
+
styles.xml
|
125
|
+
```XML
|
126
|
+
<!-- spinner用Theme -->
|
127
|
+
<style name="AppTheme_spinner0" parent="AppTheme">
|
128
|
+
<item name="android:spinnerItemStyle">@style/mySpinnerStyle0</item>
|
129
|
+
<item name="android:spinnerDropDownItemStyle">@style/mySpinnerStyle0</item>
|
130
|
+
<item name="android:dropDownListViewStyle">@style/dividSpinnerStyle</item>
|
131
|
+
</style>
|
132
|
+
<!-- spinner設定 -->
|
133
|
+
<style name="mySpinnerStyle0">
|
134
|
+
<item name="android:gravity">center</item>
|
135
|
+
<item name="android:textColor">@color/colorLightGray</item>
|
136
|
+
<item name="android:textSize">14sp</item>
|
137
|
+
<item name="android:layout_margin">0dp</item>
|
138
|
+
<item name="android:padding">0dp</item>
|
139
|
+
</style>
|
140
|
+
<style name="dividSpinnerStyle">
|
141
|
+
<item name="android:divider">@color/colorLightGray</item>
|
142
|
+
<item name="android:dividerHeight">1dp</item>
|
143
|
+
</style>
|
144
|
+
```
|
145
|
+
|
38
146
|
三角形のみ表示されていて以下のような感じです。
|
39
147
|

|
1
画像追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -33,4 +33,7 @@
|
|
33
33
|
android:textAlignment="center"
|
34
34
|
android:textColor="@color/colorLightGray"
|
35
35
|
android:textSize="11sp" />
|
36
|
-
```
|
36
|
+
```
|
37
|
+
|
38
|
+
三角形のみ表示されていて以下のような感じです。
|
39
|
+

|