package com.mycompany.myapp;
import android.app.*;
import android.os.*;
import android.view.*;
import android.widget.*;
public class NewActivity extends Activity
{
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.newone);
//获取组件
TextView text=(TextView)super.finadViewByld(R.id.name);
//设计Text的属性为好个飞飞
text.setText("好个飞飞");
}
}
import android.app.*;
import android.os.*;
import android.view.*;
import android.widget.*;
public class NewActivity extends Activity
{
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.newone);
//获取组件
TextView text=(TextView)super.finadViewByld(R.id.name);
//设计Text的属性为好个飞飞
text.setText("好个飞飞");
}
}