the icons on my tabs is not showing how i wanted them to be. I wanted the to be icons from my drawable folders but when I'm calling it. It returns numbers not icons. Here is my code.
@Override
public CharSequence getPageTitle(int position) {
switch (position) {
case 0:
return ""+R.drawable.car2;
case 1:
return "Pending Cars";
case 2:
return "Currently Rented";
case 3:
return "Drivers";
}
return null;
}
}
the return ""+R.drawable.car2;
suppose to return me an icon if I'm not mistaken right? But it returns me 2130837582
. Thanks for the help sirs. :)