Hello i am trying to display the content i receive in an activity using TextView
but it seems that TextView
is overlapping a button that i have put in activity's UI.My goal is to put TextView
and the button side by side. I have put the TextView
in the UI dynamically like this:
String display = extras.getString("EXTRA_MESSAGE");
TextView textView = new TextView(this);
textView.setTextSize(40);
textView.setWidth(20);
textView.setHeight(20);
textView.setText(display);
setContentView(textView);
I know i miss something but i cant find what it is,so can you please suggest a way how to fix that?
Thanks a lot in advance!