Seems like a simple question to me, but I can\'t figure it out. I have this code inside my Fragment:
myTextView.setText(\"Test\");
However,
How did you set the content?
Edited my answer :) try this
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.xmlName,
container, false);
TextView tv= (TextView) **view**.findViewById(R.id.textViewName);
tv.setText("yourText");
return view;
}
here is a tutorial for fragments : fragments tutorial