質問編集履歴
2
誤字の修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -366,11 +366,9 @@
|
|
366
366
|
|
367
367
|
BindData bindData = (BindData)list.getItemAtPosition(pos);
|
368
368
|
|
369
|
-
|
369
|
+
|
370
|
-
|
371
|
-
|
372
|
-
|
370
|
+
|
373
|
-
//
|
371
|
+
//都市詳細画面へ遷移
|
374
372
|
|
375
373
|
Intent intent = new Intent();
|
376
374
|
|
1
アイテムクリック時のイベント追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -339,3 +339,55 @@
|
|
339
339
|
コーディングすればよいのでしょうか。ご存知の方いらっしゃいましたら、
|
340
340
|
|
341
341
|
教えていただけませんか。
|
342
|
+
|
343
|
+
|
344
|
+
|
345
|
+
追記
|
346
|
+
|
347
|
+
セルをさわったときにおこるイベントも作成済みで、都道府県のすぐ下の
|
348
|
+
|
349
|
+
分以外はちゃんと反応します。以下コードを上げさせていただきます。
|
350
|
+
|
351
|
+
|
352
|
+
|
353
|
+
```java
|
354
|
+
|
355
|
+
lv.setOnItemClickListener(new AdapterView.OnItemClickListener() {
|
356
|
+
|
357
|
+
public void onItemClick(AdapterView<?> parent, View view, int pos, long id) {
|
358
|
+
|
359
|
+
|
360
|
+
|
361
|
+
ListView list = (ListView)parent;
|
362
|
+
|
363
|
+
|
364
|
+
|
365
|
+
//選択された都市から都市IDを取得。
|
366
|
+
|
367
|
+
BindData bindData = (BindData)list.getItemAtPosition(pos);
|
368
|
+
|
369
|
+
//HashMap map= (HashMap)list.getItemAtPosition(pos);
|
370
|
+
|
371
|
+
|
372
|
+
|
373
|
+
//ゴルフ場ダウンロード詳細画面へ遷移
|
374
|
+
|
375
|
+
Intent intent = new Intent();
|
376
|
+
|
377
|
+
intent.putExtra("city", bindData.city);
|
378
|
+
|
379
|
+
|
380
|
+
|
381
|
+
intent.setClassName("jp.co.sample.myappli",
|
382
|
+
|
383
|
+
"jp.co.sample.myappli.CityListActivity");
|
384
|
+
|
385
|
+
|
386
|
+
|
387
|
+
startActivity(intent);
|
388
|
+
|
389
|
+
}
|
390
|
+
|
391
|
+
});
|
392
|
+
|
393
|
+
```
|