You can not directly set the value of your EditText
from the first activity.
You are supposed to pass the value of EditText
through Intent
from first activity to second activity and then in your second activity get from intent and set into TextView
.
Try out as below:
public void newConfirm(View view){
EditText et = (EditText)findViewById(R.id.edit_text_val);
Intent intent =new Intent(FistLayout.this,Secondlayout.class);
intent.putExtra("value",et.getText().toString());
startActivity(intent);
}
In your second activity write below code in onCreate
TextView tv = (TextView)findViewById(R.id.text_view_val);
String value=getIntent().getString("value");
tv.setText(value);