I have a fragment that sets the text of my textview, here is my code ;
public class PageFragment extends Fragment {
@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.lesson_fragment, container, false);
int _parent = getArguments().getInt("parent");
int _child = getArguments().getInt("child");
SQLFunction _SQL = new SQLFunction();
((TextView) rootView.findViewById(R.id.mText1)).setText(
_SQL.geContent(_child + 1,_parent,getActivity())
);
return rootView;
}
}
now what i want to do is instead of text view I want to attach an pdf Reader on my fragment .. is it possible ?