I am building an mobile android app and want to have a home page with multiple tabs that connect to fragments. Most places online suggest using ActionBar.TabListener, however, the TabListener page on Android Developers claims that it is depreciated in API Level 21.

Can anyone suggest a more up to date way to do this? Also, what are the downsides of using a depreciated component (obviously, ideally I don't use anything depreciated)?