That is because you have already returned your inflated layout before finding the view item. There are two options.
First, the inflate() method always requires three arguments:
inflater.inflate(R.layout.file_name, container, false);
Put the following in onStart
:
TextView t2 = (TextView) getView().findViewById(R.id.textviewlink);
t2.setMovementMethod(LinkMovementMethod.getInstance());
Or just use this:
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState){
View v = inflater.inflate(R.layout.fragment_2, container, false); //don't forget the third argument here
TextView t2 = (TextView) v.findViewById(R.id.textviewlink);
t2.setMovementMethod(LinkMovementMethod.getInstance());
return v;
}