private void AnimateToTab(int position)
{
var iconView = _tabLayout.GetChildAt(position);
if (_tabSelector != null)
RemoveCallbacks(_tabSelector);
_tabSelector = new Runnable(() =>
{
var scrollPos = iconView.Left - (Width - iconView.Width) / 2;
SmoothScrollTo(scrollPos, 0);
_tabSelector = null;
});
Post(_tabSelector);
}