package com.cookandroid.project7_2;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.Button;
import android.widget.LinearLayout;

public class MainActivity extends AppCompatActivity {

	LinearLayout baseLayout;
	Button button1, button2;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
		setTitle("배경색 바꾸기(컨텍스트 메뉴)");
		baseLayout = (LinearLayout) findViewById(R.id.baseLayout);
		button1 = (Button) findViewById(R.id.button1);
		registerForContextMenu(button1);

		button2 = (Button) findViewById(R.id.button2);
		registerForContextMenu(button2);
	}

}
