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
The text was updated successfully, but these errors were encountered:
我直接new一个ConvenientBanner,然后addview到布局中也是会这样,item的宽度都是0,但是高度有值。如果直接在xml中写的话就不会。
Sorry, something went wrong.
convenientBanner.setPages(new CBViewHolderCreator() { @Override public ImageHolderView createHolder(View itemView) { ViewGroup.LayoutParams layoutParams = itemView.getLayoutParams(); layoutParams.width = ViewGroup.LayoutParams.MATCH_PARENT; return new ImageHolderView(itemView); } @Override public int getLayoutId() { return R.layout.item_banner; } }, strings);
这样我试了是可以的 宽度正常了
No branches or pull requests
The text was updated successfully, but these errors were encountered: