package com.gensee.fragement;


import android.annotation.SuppressLint;
import android.os.Bundle;
import android.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.gensee.player.Player;
import com.gensee.playerdemo.R;
import com.gensee.view.GSImplVoteView;

@SuppressLint("ValidFragment")
public class VoteFragment extends Fragment {

	private Player mPlayer;
	private View mView;
	private GSImplVoteView mGSImplVoteView;

	public VoteFragment(Player player) {
		this.mPlayer = player;
	}

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {

		mView = inflater.inflate(R.layout.imvote, null);
		mGSImplVoteView = (GSImplVoteView) mView.findViewById(R.id.impvoteview);
		mPlayer.setGSVoteView(mGSImplVoteView);
		return mView;
	}

}