Widget - Create Textview

Anmol dwivedi
0

final TextView mytext = new TextView(ProjectinActivity.this);
mytext.setText("Your Text");
mytext.setTextColor(0xFF000000);
mytext.setLayoutParams(new LinearLayout.LayoutParams(android.widget.LinearLayout.LayoutParams.WRAP_CONTENT, android.widget.LinearLayout.LayoutParams.WRAP_CONTENT));
mylinear.addView(mytext);

Post a Comment

0 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.
Post a Comment (0)
Our website uses cookies to enhance your experience. Learn More
Accept !