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

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

@peerless2012

Description

@peerless2012

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions