can anyone help me with this tab bar with imageview (hanger) on the top?. Image view should change position as tab change.
Asked
Active
Viewed 69 times
1 Answers
1
tabs is an array for Tab String s
for (String tab_name : tabs) {
actionBar.addTab(actionBar.newTab().setText(tab_name).setTabListener(this).setIcon(R.drawable.ic_launcher));
}
this may help you to put image on the tabs
-
1i want to add this hanger on the top of tab which is selected and to move hanger when selected tab is changed to another – jovana zivkovic Oct 04 '17 at 13:22
-
https://stackoverflow.com/questions/21933755/android-action-bar-tabs-styling-the-icon-and-text-together refer this link it use in xamrin i am not sure work in android or not – Oct 04 '17 at 13:24
-
change some basic syntax – Oct 04 '17 at 13:25
-
no, you didn't understand me, i know how to put image in tab, i need some solution for this hanger image on the top of tab, you can see the picture to understand what i am saying – jovana zivkovic Oct 04 '17 at 13:30