回答編集履歴
2
ベストアンサー後だが回答にtypoがあったので一応直しておく
answer
CHANGED
@@ -27,7 +27,7 @@
|
|
27
27
|
○ public void onClick(DialogInterface dialog, int which){
|
28
28
|
|
29
29
|
× swtitch(whitch){
|
30
|
-
○ switch (
|
30
|
+
○ switch (which){ // switchのスペルミス
|
31
31
|
|
32
32
|
× Toast.makeText(getActivity().msg, Toast.LENGTH_LONG).show();
|
33
33
|
○ Toast.makeText(getActivity(), msg, Toast.LENGTH_LONG).show(); // カンマとドットの間違い
|
1
修正内容のコメント追加
answer
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
○ lvMenu.setOnItemClickListener(new ListItemClickListener()); // 多分LongClickを意図したものではない?
|
7
7
|
|
8
8
|
× public void onitemClick(AdapterView<?> parent, View view, int position, long id){
|
9
|
-
○ public void onItemClick(AdapterView<?> parent, View view, int position, long id){
|
9
|
+
○ public void onItemClick(AdapterView<?> parent, View view, int position, long id){ // ItemのIは大文字
|
10
10
|
```
|
11
11
|
|
12
12
|
- OrderConfirmdialogFragment.java
|
@@ -14,11 +14,11 @@
|
|
14
14
|
× public Dialog onCreateDialog(BundlesavedInstanceState){
|
15
15
|
○ public Dialog onCreateDialog(Bundle savedInstanceState){
|
16
16
|
|
17
|
-
× AlterDialog.Builder builder = new AlterDialog.Builder(getActivity());
|
17
|
+
× AlterDialog.Builder builder = new AlterDialog.Builder(getActivity()); // Alertのスペルミス(以下のAlertも全て同じ)
|
18
18
|
○ AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
|
19
19
|
|
20
20
|
× builder.setNeutralButton(R.string.dialog_btn_nu), new DialogButtonClickListener();
|
21
|
-
○ builder.setNeutralButton(R.string.dialog_btn_nu, new DialogButtonClickListener());
|
21
|
+
○ builder.setNeutralButton(R.string.dialog_btn_nu, new DialogButtonClickListener()); // 括弧閉じの位置が誤っている
|
22
22
|
|
23
23
|
× AlterDialog dialog = builder.create();
|
24
24
|
○ AlertDialog dialog = builder.create();
|
@@ -27,10 +27,10 @@
|
|
27
27
|
○ public void onClick(DialogInterface dialog, int which){
|
28
28
|
|
29
29
|
× swtitch(whitch){
|
30
|
-
○ switch (whitch){
|
30
|
+
○ switch (whitch){ // switchのスペルミス
|
31
31
|
|
32
32
|
× Toast.makeText(getActivity().msg, Toast.LENGTH_LONG).show();
|
33
|
-
○ Toast.makeText(getActivity(), msg, Toast.LENGTH_LONG).show();
|
33
|
+
○ Toast.makeText(getActivity(), msg, Toast.LENGTH_LONG).show(); // カンマとドットの間違い
|
34
34
|
```
|
35
35
|
|
36
36
|
これだけ修正すれば一応動作するようです(簡単には確認しました)。
|