有人知道为什么这个程序不会显示“Hey”字符串(模拟器)吗? 相反,它会显示“大文本 ” 。
package com.seba.numberShow;
import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;
public class Main extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.second);
TextView tv = (TextView) findViewById(R.id.textView1);
tv.setText("hey");
}
}