2024年3月9日发(作者:)

import patActivity;

import ;

import ew;

public class InfoActivity extends AppCompatActivity {

TextView infoshow;

@Override

protected void onCreate(Bundle savedInstanceState) {

te(savedInstanceState);

setContentView(ty_info);

infoshow = (TextView) findViewById(ow);

Bundle bundle = getIntent().getExtras();

String name = ing("name");

t(name);

}

}

(三)布局

activity_:

xmlns:android="/apk/res/android"

xmlns:app="/apk/res-auto"

xmlns:tools="/tools"

android:layout_width="match_parent"

android:layout_height="match_parent"

tools:context=".MainActivity">

android:id="@+id/name_edit"

android:layout_width="match_parent"

android:layout_height="43dp"

tools:layout_editor_absoluteX="156dp"

tools:layout_editor_absoluteY="64dp"

android:hint=" 姓名"

tools:ignore="MissingConstraints" />

android:id="@+id/btn_submit"

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:layout_x="268dp"

android:layout_y="209dp"

android:text="查看"

tools:ignore="MissingConstraints"

tools:layout_editor_absoluteX="161dp"

tools:layout_editor_absoluteY="123dp"

android:layout_weight="1"/>

activity_: