@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
View v = inflater.inflate(R.layout.fragment_discription, container, false);
tv = (TextView) v.findViewById(R.id.tvName);
tv.setText("Discription");
return v;
}
указывает на текст вью
Serg: @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
View v = inflater.inflate(R.layout.fragment_discription, container, false);
tv = (TextView) v.findViewById(R.id.tvName);
tv.setText("Discription");
return v;
}
на сет текст указывает
Process: com.example.a1.tutorial, PID: 1296
java.lang.IllegalStateException: Fragment already active