We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Any way to add tabs programmatically in code?
The text was updated successfully, but these errors were encountered:
I saw this method: setText(String... tagTexts).
mSwitchMultiButton.setText("点个Star", "狠心拒绝")
SwitchButton/libk-switchbutton/src/main/java/lib/kingja/switchbutton/SwitchMultiButton.java
Line 388 in 1b2a8c8
Sorry, something went wrong.
Yes Dont place array in arrays.xml place in java files in that way ::
private String[] tabTexts1 = {"General", "Password", "Address", "Avator"};
public void setSwitchMultiButton2 () {
switchMultiButton2.setText(tabTexts1).setOnSwitchListener(new SwitchMultiButton.OnSwitchListener() { @Override public void onSwitch(int position, String tabText) { if (position == 0){ viewPager1.setCurrentItem(0); } if (position == 1) { viewPager1.setCurrentItem(1); } if (position == 2) { viewPager1.setCurrentItem(2); } if (position == 3) { viewPager1.setCurrentItem(3); } } }); }
Set Like this Hope u like it
No branches or pull requests
Any way to add tabs programmatically in code?
The text was updated successfully, but these errors were encountered: