Reputation: 1886
I am currently using SlidingTabLayout as found here:
The issue I have is that I need to have the existing tab titles change after they have been populated with populateTabStrip() since I need the app to have multi-language support. The current method that works is to restart the application, but I would rather not do that.
Upvotes: 0
Views: 435
Reputation: 1886
Well, I managed to get it working after looking at the code more closely. Adding this function seemed to do the trick for me.
public void updateText(CharSequence[] Titles) {
for (int i = 0; i < mTabStrip.getChildCount(); i++) {
TextView text = (TextView)mTabStrip.getChildAt(i);
text.setText(Titles[i]);
}
}
Upvotes: 2