package com.yangyu.mytitlebar01;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageButton;

/**
 * @author yangyu
 *	¹¦ÄÜÃèÊö£ºµÚ¶þÖÖÊµÏÖ·½Ê½,ActivityÊµÏÖ·½Ê½
 */
public class CustomTitleActivity02 extends Activity {
	//¶¨Òå±êÌâÀ¸ÉÏµÄ°´Å¥
	private ImageButton titleBtn;
		
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_title);
		
		initView();			
	}
	
	/**
	 * ³õÊ¼»¯×é¼þ
	 */
	private void initView(){
		//ÊµÀý»¯±êÌâÀ¸°´Å¥²¢ÉèÖÃ¼àÌý
		titleBtn = (ImageButton) findViewById(R.id.title_btn);
		titleBtn.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				startActivity(new Intent(CustomTitleActivity02.this,DialogActivity.class));
			}
		});						
	}	
		
}
