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
after upgrading to 0.5.0,TabLayout's tabs didn't show up. demo code: public class MainActivity extends Activity {
private ViewPager mViewPager; private PagerAdapter mAdapter = new PagerAdapter() { public int getCount() { return 3; } public Object instantiateItem(ViewGroup container, int position) { FrameLayout content = new FrameLayout(container.getContext()); content.setBackgroundColor(0xff000000 | 0xff << (position*8)); container.addView(content, new LayoutParams(MATCH_PARENT, MATCH_PARENT)); return content; } }; @Override protected void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(new RenderableView(this) { @Override public void view() { linearLayout(() -> { size(MATCH, MATCH); orientation(VERTICAL); viewPager(() -> { mViewPager = Anvil.currentView(); size(MATCH, 0); weight(1); overScrollMode(OVER_SCROLL_NEVER); adapter(mAdapter); }); tabLayout(() -> { size(MATCH, WRAP); tabMode(MODE_FIXED); tabGravity(GRAVITY_FILL); backgroundColor(White); tabTextColors(TabText, SelectedTabText); selectedTabIndicatorColor(Transparent); upWithViewPager(mViewPager); }); }); } }); }
} result: ViewPage's content was shown,but the TabLayout was just empty.I was sure I set it up with the viewpager.
The text was updated successfully, but these errors were encountered:
after upgrading to "commit 1da406d " ,now it works
Sorry, something went wrong.
No branches or pull requests
after upgrading to 0.5.0,TabLayout's tabs didn't show up.
demo code:
public class MainActivity extends Activity {
}
result:
ViewPage's content was shown,but the TabLayout was just empty.I was sure I set it up with the viewpager.
The text was updated successfully, but these errors were encountered: