Skip to content
This repository has been archived by the owner on Jul 14, 2021. It is now read-only.

getItemViewType返回的ViewType过大时候,Cantor不能正常工作。 #358

Closed
peerless2012 opened this issue Jun 6, 2018 · 0 comments

Comments

@peerless2012
Copy link

peerless2012 commented Jun 6, 2018

Vlayout Version:1.2.15
Tools:Android Studio 3.1

当ViewType比较小的时候没问题,但是当ViewType比较大的时候,解析出来的index和ViewType就是错误的。

测试代码:

public static void main(String[] args) {
	long cantor = Cantor.getCantor(1000052, 0);
	long[] result = new long[2];
	Cantor.reverseCantor(cantor, result);
	System.out.println("index = " + result[1] + ", type = " + result[0]);
}

输出结果:

index = -2147483648, type = -2146483596
@MikeAfc MikeAfc closed this as completed Jul 30, 2018
@MikeAfc MikeAfc reopened this Jul 30, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants