package com.camilstaps.taize; import android.os.Bundle; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; /** * Created by camilstaps on 8-4-15. */ // Instances of this class are fragments representing a single // object in our collection. public class DemoObjectFragment extends Fragment { public static final String ARG_OBJECT = "object"; @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { // The last two arguments ensure LayoutParams are inflated // properly. View rootView = inflater.inflate(R.layout.pager_content, container, false); Bundle args = getArguments(); //((TextView) rootView.findViewById(R.id.pager_content_text)).setText(args.getString("text")); return rootView; } }