补充缺代码

  • Post author:
  • Post category:其他


public class MainActivity extends Activity {

private TextView nameTextView;

private EditText xingEditText;

private (1)


mingEditText

;

@Override

protected void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);

setContentView(R.layout.

activity_main

);

xingEditText=(2)


( R.id.

xingEditText

);

mingEditText=(EditText)findViewById(R.id.

mingEditText

);

nameTextView=(TextView)findViewById(R.id.

nameTextView

);

nameTextView.setOnClickListener((3)


{

@Override

public void (4)


(View v){

String xing,ming;

xing=xingEditText.getText().toString();

ming=mingEditText.getText().toString();

nameTextView.(5)


(xing+” “+ming);

}

});

}

}



版权声明:本文为causal5222原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。