@Override public 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);}
![]()
Activity界面
最新推荐文章于 2022-10-10 09:16:55 发布