Settext To A Dynamic Added Textview In Another Activity
I created two activites, the first one is containing the dynamic added textview and the second one will do some operation then settext to the dynamic added textview in activity one
Solution 1:
To add textViews can dynamically using the following method.
privatevoidaddChild(boolean right) {
LayoutInflaterinflater= LayoutInflater.from(this);
intid= R.layout.unLayout_;
RelativeLayoutrelativeLayout= (RelativeLayout) inflater.inflate(id, null, false);
TextViewtextView= (TextView) relativeLayout.findViewById(R.id.textViewDate);
textView.setText(String.valueOf(System.currentTimeMillis()));
layout.addView(relativeLayout);
}
Post a Comment for "Settext To A Dynamic Added Textview In Another Activity"