package com.nukeguys.helloworld;

import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;

public class MainActivity extends ActionBarActivity implements OnClickListener
{
	private TextView text;
	private Button button;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
		
		text = (TextView) findViewById(R.id.tv_text);
		button = (Button) findViewById(R.id.btn_button);
		
		button.setOnClickListener(this);
	}

	@Override
	public void onClick(View v) 
	{
		text.setText("Hi World!");		
	}
}
