project_files/Android-build/SDL-android-project/src/org/hedgewars/hedgeroid/RoomlistFragment.java
equal
deleted
inserted
replaced
|
1 /* |
|
2 * Hedgewars for Android. An Android port of Hedgewars, a free turn based strategy game |
|
3 * Copyright (C) 2012 Simeon Maxein <smaxein@googlemail.com> |
|
4 * |
|
5 * This program is free software; you can redistribute it and/or |
|
6 * modify it under the terms of the GNU General Public License |
|
7 * as published by the Free Software Foundation; either version 2 |
|
8 * of the License, or (at your option) any later version. |
|
9 * |
|
10 * This program is distributed in the hope that it will be useful, |
|
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
13 * GNU General Public License for more details. |
|
14 * |
|
15 * You should have received a copy of the GNU General Public License |
|
16 * along with this program; if not, write to the Free Software |
|
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
18 */ |
|
19 |
1 package org.hedgewars.hedgeroid; |
20 package org.hedgewars.hedgeroid; |
2 |
21 |
3 import org.hedgewars.hedgeroid.R; |
22 import org.hedgewars.hedgeroid.R; |
4 import org.hedgewars.hedgeroid.netplay.Netplay; |
23 import org.hedgewars.hedgeroid.netplay.Netplay; |
5 |
24 |
10 import android.view.View; |
29 import android.view.View; |
11 import android.view.ViewGroup; |
30 import android.view.ViewGroup; |
12 import android.widget.AdapterView; |
31 import android.widget.AdapterView; |
13 import android.widget.AdapterView.OnItemClickListener; |
32 import android.widget.AdapterView.OnItemClickListener; |
14 |
33 |
|
34 /** |
|
35 * Displays the list of all rooms in the lobby |
|
36 */ |
15 public class RoomlistFragment extends ListFragment implements OnItemClickListener { |
37 public class RoomlistFragment extends ListFragment implements OnItemClickListener { |
16 private static final int AUTO_REFRESH_INTERVAL_MS = 15000; |
38 private static final int AUTO_REFRESH_INTERVAL_MS = 15000; |
17 |
39 |
18 private Netplay netplay; |
40 private Netplay netplay; |
19 private RoomlistAdapter adapter; |
41 private RoomlistAdapter adapter; |