Illegal color list!
Cutta opened this issue · comments
When you use setTags method with the color list like README.md it throws exception.
On version 1.1.7 setTags method's color list size should be 4, not 3. README.md should update like this:
List<int[]> colors = new ArrayList<int[]>();
//int[] color = {TagBackgroundColor, TabBorderColor, TagTextColor, TagSelectedBackgroundColor}
int[] color1 = {Color.RED, Color.BLACK, Color.WHITE, Color.CYAN};
int[] color2 = {Color.BLUE, Color.BLACK, Color.WHITE, Color.CYAN};
colors.add(color1);
colors.add(color2);
mTagcontainerLayout.setTags(tags, colors);
Thanks, I will update README.md soon. 😄
Cüneyt Çarıkçi <notifications@github.com> 于2019年3月15日周五 下午9:16写道:
… When you use setTags method with the color list like README.md it throws
exception.
On version 1.1.7 setTags method's color list size should be 4, not 3.
README.md should update like this:
List<int[]> colors = new ArrayList<int[]>();
//int[] color = {TagBackgroundColor, TabBorderColor, TagTextColor,
TagSelectedBackgroundColor}
int[] color1 = {Color.RED, Color.BLACK, Color.WHITE, Color.CYAN};
int[] color2 = {Color.BLUE, Color.BLACK, Color.WHITE, Color.CYAN};
colors.add(color1);
colors.add(color2);
mTagcontainerLayout.setTags(tags, colors);
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#97>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGkeW-zC6yIvvvDoqEXoI3-NV2D0IZEZks5vW50xgaJpZM4b2cRa>
.