Slide 46
Slide 46 text
Loading the UI
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState)
{
View view = inflater.inflate(R.layout.fragment_puppy, container, false);
int imageId = getResources().getIdentifier(mPuppyImages[mPageNumber],
"drawable", getActivity().getPackageName());
ImageView image = (ImageView) view.findViewById(R.id.puppy_picture);
image.setImageResource(imageId);
return view;
}