Answers for "how to add textview in android"

7

android studio set text of textview

// globally 
TextView myAwesomeTextView = (TextView)findViewById(R.id.myAwesomeTextView);

//in your OnCreate() method
myAwesomeTextView.setText("My Awesome Text");
Posted by: Guest on June-18-2020
2

how to create textview programmatically in android

String[] textArray = {"One", "Two", "Three", "Four"};
LinearLayout linearLayout = new LinearLayout(this);
setContentView(linearLayout);
linearLayout.setOrientat
Posted by: Guest on November-08-2020

Code answers related to "how to add textview in android"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language