package com.example.viewpager;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.webkit.WebView.FindListener;
import android.widget.TextView;
import android.widget.Toast;


public class MessageActivity extends Fragment {
	TextView tv_message;

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		return inflater.inflate(R.layout.activity_message, container, false);
	}
	
	@Override
	public void onActivityCreated(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onActivityCreated(savedInstanceState);
		initView();
	}
	private void initView() {
		// TODO Auto-generated method stub
		tv_message=(TextView) getView().findViewById(R.id.message_tv_message);
		tv_message.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Toast.makeText(getActivity(), "message", Toast.LENGTH_SHORT).show();
			}
		});
	}

}

@@ -23,17 +23,19 @@
 ewpager;
-%0A
+%0D%0A%0D
 %0Aimport 
@@ -52,16 +52,17 @@
 .Bundle;
+%0D
 %0Aimport 
@@ -93,16 +93,17 @@
 ragment;
+%0D
 %0Aimport 
@@ -130,16 +130,17 @@
 nflater;
+%0D
 %0Aimport 
@@ -153,24 +153,25 @@
 d.view.View;
+%0D
 %0Aimport andr
@@ -192,32 +192,33 @@
 OnClickListener;
+%0D
 %0Aimport android.
@@ -232,16 +232,17 @@
 ewGroup;
+%0D
 %0Aimport 
@@ -277,16 +277,17 @@
 istener;
+%0D
 %0Aimport 
@@ -310,16 +310,17 @@
 extView;
+%0D
 %0Aimport 
@@ -340,18 +340,21 @@
 t.Toast;
-%0A%0A
+%0D%0A%0D%0A%0D
 %0Apublic 
@@ -393,16 +393,17 @@
 agment %7B
+%0D
 %0A%09TextVi
@@ -416,17 +416,28 @@
 message;
-%0A
+%0D%0A%0D%0A%09//view%0D
 %0A%09@Overr
@@ -431,32 +431,33 @@
 view%0D%0A%09@Override
+%0D
 %0A%09public View on
@@ -512,16 +512,17 @@
 ntainer,
+%0D
 %0A%09%09%09Bund
@@ -537,32 +537,33 @@
 InstanceState) %7B
+%0D
 %0A%09%09// TODO Auto-
@@ -583,16 +583,17 @@
 hod stub
+%0D
 %0A%09%09retur
@@ -656,21 +656,29 @@
  false);
+%0D
 %0A%09%7D
+%0D
 %0A%09
+%0D%0A%09//%0D
 %0A%09@Overr
@@ -680,16 +680,17 @@
 Override
+%0D
 %0A%09public
@@ -741,16 +741,17 @@
 State) %7B
+%0D
 %0A%09%09// TO
@@ -779,16 +779,17 @@
 hod stub
+%0D
 %0A%09%09super
@@ -827,16 +827,17 @@
 eState);
+%0D
 %0A%09%09initV
@@ -842,19 +842,24 @@
 tView();
+%0D
 %0A%09%7D
+%0D%0A%09%0D
 %0A%09privat
@@ -877,16 +877,17 @@
 View() %7B
+%0D
 %0A%09%09// TO
@@ -915,16 +915,17 @@
 hod stub
+%0D
 %0A%09%09tv_me
@@ -989,16 +989,17 @@
 essage);
+%0D
 %0A%09%09tv_me
@@ -1046,20 +1046,22 @@
 ener() %7B
+%0D
 %0A%09%09%09
+%0D
 %0A%09%09%09@Ove
@@ -1065,16 +1065,17 @@
 Override
+%0D
 %0A%09%09%09publ
@@ -1099,16 +1099,17 @@
 iew v) %7B
+%0D
 %0A%09%09%09%09// 
@@ -1139,16 +1139,17 @@
 hod stub
+%0D
 %0A%09%09%09%09Toa
@@ -1217,22 +1217,28 @@
 w();
+%0D
 %0A%09%09%09%7D
+%0D
 %0A%09%09%7D);
+%0D
 %0A%09%7D
-%0A
+%0D%0A%0D
 %0A%7D
+%0D
 %0A

update Message