Before add viewpagerindicator.