Android Open Source - hackfmi-ragdoll-physics Menu View From Project Back to project page hackfmi-ragdoll-physics .
License The source code is released under:
GNU General Public License
If you think the Android project hackfmi-ragdoll-physics listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
Java Source Code package com.midtownmadness.bubblecombat.views;
/ / f r o m w w w . j a v a 2 s . c o m
import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.ListView;
import com.midtownmadness.bubblecombar.model.GamesAdapter;
import com.midtownmadness.bubblecombat.R;
public class MenuView extends LinearLayout {
/**
* {@value}
*/
@SuppressWarnings("unused" )
private static final String TAG = MenuView.class.getSimpleName();
public MenuView(Context context, AttributeSet attrs, int defStyle,
OnClickListener listener, GamesAdapter adapter) {
super (context, attrs, defStyle);
final LayoutInflater inflater = LayoutInflater.from(context);
inflater.inflate(R.layout.menu_layout, this );
setBackgroundResource(R.color.light_gray);
final View quitButton = findViewById(R.id.quit_button);
quitButton.setOnClickListener(listener);
final View hostButton = findViewById(R.id.host_button);
hostButton.setOnClickListener(listener);
final View refreshButton = findViewById(R.id.refresh_button);
refreshButton.setOnClickListener(listener);
final ListView gamesListView = (ListView) findViewById(R.id.games_list);
final View headerView = inflater.inflate(R.layout.menu_title_view,
gamesListView, false);
gamesListView.addHeaderView(headerView);
gamesListView.setEmptyView(findViewById(R.id.menu_list_empty_view));
gamesListView.setAdapter(adapter);
}
public MenuView(Context context, OnClickListener onClickListener,
GamesAdapter adapter) {
this (context, null, 0, onClickListener, adapter);
}
}
Java Source Code List com.midtownmadness.bubblecombar.listeners.GameRoomListener.java com.midtownmadness.bubblecombar.model.GameModel.java com.midtownmadness.bubblecombar.model.GamesAdapter.java com.midtownmadness.bubblecombar.model.MockAdapter.java com.midtownmadness.bubblecombat.BaseActivity.java com.midtownmadness.bubblecombat.BluetoothGamesAdapter.java com.midtownmadness.bubblecombat.GameActivity.java com.midtownmadness.bubblecombat.GameView.java com.midtownmadness.bubblecombat.GlobalContext.java com.midtownmadness.bubblecombat.MenuActivity.java com.midtownmadness.bubblecombat.MockMultiplayerGame.java com.midtownmadness.bubblecombat.Settings.java com.midtownmadness.bubblecombat.game.DrawThread.java com.midtownmadness.bubblecombat.game.GameObject.java com.midtownmadness.bubblecombat.game.GameWallObject.java com.midtownmadness.bubblecombat.game.LevelObject.java com.midtownmadness.bubblecombat.game.PlayerObject.java com.midtownmadness.bubblecombat.multiplay.BaseStrategy.java com.midtownmadness.bubblecombat.multiplay.BluetoothConnectException.java com.midtownmadness.bubblecombat.multiplay.BluetoothMessage.java com.midtownmadness.bubblecombat.multiplay.Callback.java com.midtownmadness.bubblecombat.multiplay.ClientStrategy.java com.midtownmadness.bubblecombat.multiplay.HostStrategy.java com.midtownmadness.bubblecombat.multiplay.LoggingListener.java com.midtownmadness.bubblecombat.multiplay.LooperThread.java com.midtownmadness.bubblecombat.multiplay.MessageType.java com.midtownmadness.bubblecombat.multiplay.MultiplayEventListener.java com.midtownmadness.bubblecombat.multiplay.MultiplayEvent.java com.midtownmadness.bubblecombat.multiplay.MultiplayManager.java com.midtownmadness.bubblecombat.multiplay.MultiplayStrategy.java com.midtownmadness.bubblecombat.multiplay.MultiplayUtil.java com.midtownmadness.bubblecombat.multiplay.MultiplayerGame.java com.midtownmadness.bubblecombat.multiplay.commobjects.GoMessageObject.java com.midtownmadness.bubblecombat.physics.BodyCreationRequest.java com.midtownmadness.bubblecombat.physics.BodyUserData.java com.midtownmadness.bubblecombat.physics.CentralHurdle.java com.midtownmadness.bubblecombat.physics.CollisionListener.java com.midtownmadness.bubblecombat.physics.DefaultLevelBuilder.java com.midtownmadness.bubblecombat.physics.LevelBuilder.java com.midtownmadness.bubblecombat.physics.MovementRequest.java com.midtownmadness.bubblecombat.physics.MovementStateRequest.java com.midtownmadness.bubblecombat.physics.PhysicsRequest.java com.midtownmadness.bubblecombat.physics.PhysicsService.java com.midtownmadness.bubblecombat.views.MenuGameView.java com.midtownmadness.bubblecombat.views.MenuView.java