android控件

时间:2016-08-02 04:39:27
【文件属性】:

文件名称:android控件

文件大小:53KB

文件格式:RAR

更新时间:2016-08-02 04:39:27

控件

android控件 package com.iotek.acitity; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.Button; public class SecondActivity extends Activity { Button button; public SecondActivity(){ Log.i("Activity","SecondActivity构造函数"); } public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Log.i("Activity","SecondActivity.onCreate"); setContentView(R.layout.second); button=(Button)findViewById(R.id.second_Button); button.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Intent intent=new Intent(SecondActivity.this,ThirdActivity.class); startActivity(intent); } }); } protected void onStart() { super.onStart(); Log.i("Activity","SecondActivity.onStart"); } @Override protected void onResume() { super.onResume(); Log.i("Activity","SecondActivity.onResume"); } ///////////////////////////////////////////////////////////////// @Override protected void onPause() { Log.i("Activity","SecondActivity.onPause"); super.onPause(); } @Override protected void onStop() { Log.i("Activity","SecondActivity.onStop"); super.onStop(); } @Override protected void onRestart() { super.onRestart(); Log.i("Activity","SecondActivity.onRestart"); } @Override protected void onDestroy() { Log.i("Activity","SecondActivity.onDestory"); super.onDestroy(); } }


【文件预览】:
5.29 ActivityLifeCycle4
----.project(859B)
----proguard.cfg(1KB)
----src()
--------com()
----AndroidManifest.xml(1002B)
----res()
--------drawable-ldpi()
--------drawable-hdpi()
--------drawable-mdpi()
--------layout()
--------values()
----assets()
----gen()
--------com()
----default.properties(363B)
----.classpath(280B)
----bin()
--------resources.ap_(12KB)
--------com()
--------5.29 ActivityLifeCycle4.apk(17KB)
--------classes.dex(8KB)

网友评论