Activity界面

来源:互联网 发布:风控模型用什么算法 编辑:程序博客网 时间:2024/06/05 06:06
@Overridepublic void onCreate(Bundle savedInstanceState) {    super.onCreate(savedInstanceState);    // Get the message from the intent    Intent intent = getIntent();    String message = intent.getStringExtra(MyFirstActivity.EXTRA_MESSAGE);    // Create the text view    TextView textView = new TextView(this);    textView.setTextSize(40);    textView.setText("Hello World");    setContentView(textView);

}

0 0
原创粉丝点击