Hi I have followed the tutorial below exactly and now I’m wondering how I can add an icon to each tab? I only know how to add an icon to a menu but not a tab. Also I’m new to android, so it would be awsome if someone could tell me exactly where the android:icon="@drawable/ic_action_view_as_list" should go.
As it is now it is only adding the Text with the argument ActionBar.Tab tabB = bar.newTab().setText("Summary"); but I also want for example tabB to have the android:icon="@drawable/ic_action_view_as_list"
Thanks
You can do it like this: