1

how to translate this code to xml

view story
linux-howto

http://stackoverflow.com – I have an example of adding a textview programmatically what I wanted to do is to add the same textview in xml so that I can position it in a specific location in the layout is there a way to turn this code to xml? Intent intent = getIntent(); String message = intent.getStringExtra(MainActivity.EXTRA_MESSAGE); // Create the text view TextView textView = new TextView(this); textView.setTextSize(40); textView.setText(message); // Set the text view as the activity layout setContentView(textView); (HowTos)