Skip to content

Cannot set float field #148

@slavchev

Description

@slavchev

Error:

JNI DETECTED ERROR IN APPLICATION: attempt to set field float android.widget.LinearLayout$LayoutParams.weight with value of wrong type: J

Repro:

var lParams = new android.widget.LinearLayout.LayoutParams(android.widget.LinearLayout.LayoutParams.MATCH_PARENT, android.widget.LinearLayout.LayoutParams.MATCH_PARENT);
lParams.weight = 1.1;

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions