project_files/Android-build/SDL-android-project/src/org/hedgewars/hedgeroid/LobbyPlayerlistAdapter.java
changeset 7582 714310efad8f
parent 7508 763d3961400b
child 7584 7831c84cc644
equal deleted inserted replaced
7580:c92596feac0d 7582:714310efad8f
       
     1 /*
       
     2  * 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 java.util.Comparator;
    22 import java.util.Comparator;
     4 
    23 
     5 import org.hedgewars.hedgeroid.R;
    24 import org.hedgewars.hedgeroid.R;
     9 import android.view.LayoutInflater;
    28 import android.view.LayoutInflater;
    10 import android.view.View;
    29 import android.view.View;
    11 import android.view.ViewGroup;
    30 import android.view.ViewGroup;
    12 import android.widget.TextView;
    31 import android.widget.TextView;
    13 
    32 
       
    33 /**
       
    34  * Simple adapter for displaying the list of players in the lobby.
       
    35  */
    14 public class LobbyPlayerlistAdapter extends ObservableTreeMapAdapter<String, Player> {
    36 public class LobbyPlayerlistAdapter extends ObservableTreeMapAdapter<String, Player> {
    15 	@Override
    37 	@Override
    16 	protected Comparator<Player> getEntryOrder() {
    38 	protected Comparator<Player> getEntryOrder() {
    17 		return Player.NAME_ORDER;
    39 		return Player.NAME_ORDER;
    18 	}
    40 	}