It should be like this (you should do any actions with your view only after it is created):
public class Fragment_1 extends SherlockFragment {
RSSFeed feed;
TextView title;
WebView desc;
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState){
return inflater.inflate(R.layout.fragment_1, container, false);
}
@Override
public void onViewCreated(View view, Bundle savedInstanceState) {
// Enable the vertical fading edge (by default it is disabled)
ScrollView sv = (ScrollView) view.findViewById(R.id.svs);
sv.setVerticalFadingEdgeEnabled(true);
// Get the feed object and the position from the Intent
feed = (RSSFeed) getActivity().getIntent().getExtras().get("feed");
int pos = getActivity().getIntent().getExtras().getInt("pos");
// Initialize the views
title = (TextView) view.findViewById(R.id.titles);
desc = (WebView) view.findViewById(R.id.descs);
// set webview properties
WebSettings ws = desc.getSettings();
ws.setLayoutAlgorithm(LayoutAlgorithm.SINGLE_COLUMN);
ws.getPluginState();
ws.setPluginState(PluginState.ON);
ws.setJavaScriptEnabled(true);
ws.setBuiltInZoomControls(true);
// Set the views
title.setText(feed.getItem(pos).getTitle());
desc.loadDataWithBaseURL(), feed
.getItem(pos).getDescription(), "text/html", "UTF-8", null);
}
}