回答編集履歴
1
情報追加
test
CHANGED
@@ -42,6 +42,68 @@
|
|
42
42
|
|
43
43
|
|
44
44
|
|
45
|
+
Before
|
46
|
+
|
47
|
+
```Java
|
48
|
+
|
49
|
+
setListAdapter(new ArrayAdapter<String>(getActivity(),
|
50
|
+
|
51
|
+
android.R.layout.simple_list_item_activated_1,
|
52
|
+
|
53
|
+
lists));
|
54
|
+
|
55
|
+
getListView().setChoiceMode(ListView.CHOICE_MODE_SINGLE);
|
56
|
+
|
57
|
+
getListView().setBackgroundColor(Color.LTGRAY);
|
58
|
+
|
59
|
+
if (isTablet(getActivity())) showDetails(0);
|
60
|
+
|
61
|
+
```
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
After
|
68
|
+
|
69
|
+
```Java
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
public void setListAdapterMethod(List<String> lists){
|
74
|
+
|
75
|
+
System.out.println(lists);
|
76
|
+
|
77
|
+
setListAdapter(new ArrayAdapter<String>(getActivity(),
|
78
|
+
|
79
|
+
android.R.layout.simple_list_item_activated_1,
|
80
|
+
|
81
|
+
lists));
|
82
|
+
|
83
|
+
getListView().setChoiceMode(ListView.CHOICE_MODE_SINGLE);
|
84
|
+
|
85
|
+
getListView().setBackgroundColor(Color.LTGRAY);
|
86
|
+
|
87
|
+
if (isTablet(getActivity())) showDetails(0);
|
88
|
+
|
89
|
+
}
|
90
|
+
|
91
|
+
```
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
★以下全コード★
|
106
|
+
|
45
107
|
|
46
108
|
|
47
109
|
|