Skip to content

Latest commit

 

History

History
49 lines (32 loc) · 3.77 KB

README.md

File metadata and controls

49 lines (32 loc) · 3.77 KB

YouTubePlaylist

A sample Android application which demonstrates the use of the YouTube Data API v3.

This sample app makes use of the YouTube Data API v3 classes to fetch a YouTube Playlist using the GetPlaylistAsyncTask which then extracts the list of Video's the playlist contains. The list of video's are then presented using a RecyclerView of CardView's in the YouTubeRecyclerViewFragment. The data binding of video details to CardView is handled by the PlaylistCardAdapter.

Picasso is used for downloading and caching the video thumbnail images. And lastly a retained fragment is used to persist the PlaylistVideos datamodel across orientation changes.

Setup

NOTE: You MUST have a valid API key for this sample application to work. Remember, when you register your application with the Google Developer Console you need to enable the YouTube Data API.

Dependencies

Screenshots

Phone: Single Column Portrait and Landscape

Tablet: 7" and 9" (sw600) 2 Columns Portrait, 3 Columns Landscape

Tablet: 10" (sw800) 3 Columns Portrait and Landscape

License