I have successfully used Google\'s Sliding Tabs code in my project. (Sample project can be found here: http://developer.android.com/samples/SlidingTabsBasic/index.html) This is
Use Google IO SlidingTabLayout and SlidingTabStrip and call setDistributeEvenly(true) and it will create the same layout as the youtube one
setDistributeEvenly(true)