@Nullable
  @Override
  public View onCreateView(
      LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
    return inflater.inflate(R.layout.fragment_media_controls, container, false);
  }
Sample that displays an animated image and media controls to start / stop / seek.
samples/animation2/src/main/java/com/facebook/samples/animation2/MediaControlFragment.java