Try this, you need to get root view and use findViewById by using root view.
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View v = inflater.inflate(R.layout.toptaste_layout, container, false);
// rest of the code
TextView topTitle = (TextView) v.findViewById(R.id.topTasteTitle);
return v;
}