Bug? Problem in AutoTextSizeLabel

D

Deleted member 103

Guest
Hi,

I have an app which I compile it as a Pro and Ultra version.

When I first compile the Ultra version and then as Pro version then comes this error:
Class not found: fg.cronomillemiglia_pro.autotextsizelabel, trying: fg.cronomillemiglia_ultra.autotextsizelabel

and the designer is no longer "AutoTextSizelabel" but "fg.cronomillemiglia_pro.autotextsizelabel", see picture below.
 

Attachments

  • AutoTextSizeLabel_01.jpg
    AutoTextSizeLabel_01.jpg
    38.9 KB · Views: 214
  • AutoTextSizeLabel_02.jpg
    AutoTextSizeLabel_02.jpg
    31.9 KB · Views: 193
D

Deleted member 103

Guest
Hi Erel,

new problem with "AutoTextSizelabel".

This app generates an error on "ODYS Motion 2in1".
java.lang,IllegalArgumentExeption: width and height must be >0

Do you know at what could be the problem?
 

Attachments

  • AutoTextSizeLabel_test.zip
    7.8 KB · Views: 216

klaus

Expert
Licensed User
Longtime User
Are you using a device with 0.75 density ?
If yes, change in the class code this line
bmp.InitializeMutable(1dip, 1dip)
to this one
bmp.InitializeMutable(1, 1)
or to this one
bmp.InitializeMutable(2dip, 2dip)

1dip is equal to 0 with a density of 0,75 !
 
Top