Hi.
I have a project that uses several layouts, every of them with anchors and layout codes to make it looking good on every device.
I noticed some weird behaviours like:
1.- sometimes, screens loads fine at first run, sometimes you have to load the screen for 2nd or even 3rd time...
2.- inside the code, i always check the position of the views, but not always it repositions on the right place, i tried on release mode, debug mode, studying the logs to see what can happen and I could not explain what the hell is going on...
for example, this code:
After running this, it should be all on the right position to look good, but, sometimes it works fine and sometimes you have to reload the screen to make it work...
3.- I use a custom font for several labels, but when i change it, for example like this:
sometimes it shows huge, bigger than the 20 value...
4.- When some views are not enabled for doing things, i disable them setting the property UserInteractionEnabled to False, but after this, if the user clicks on it... it raises the code, like if the property was set on True...
Please help me, the project is almost ended, but i cant give it to my client if it is not stable.
Thanks a lot.
I have a project that uses several layouts, every of them with anchors and layout codes to make it looking good on every device.
I noticed some weird behaviours like:
1.- sometimes, screens loads fine at first run, sometimes you have to load the screen for 2nd or even 3rd time...
2.- inside the code, i always check the position of the views, but not always it repositions on the right place, i tried on release mode, debug mode, studying the logs to see what can happen and I could not explain what the hell is going on...
for example, this code:
B4X:
lblInfoText1.SizeToFit
lblInfoText2.SizeToFit
lblInfoText3.SizeToFit
lblInfoText4.SizeToFit
lblInfoText5.SizeToFit
lblInfoText6.SizeToFit
lblInfoText7.SizeToFit
lblInfoText8.SizeToFit
AppInfoPanel1.Height=lblInfoTitle1.Height+lblInfoText1.Height+25
AppInfoPanel2.Height=lblInfoTitle2.Height+lblInfoText2.Height+25
AppInfoPanel2.Top=AppInfoPanel1.Top+AppInfoPanel1.Height
AppInfoPanel3.Height=lblInfoTitle3.Height+lblInfoText3.Height+25
AppInfoPanel3.Top=AppInfoPanel2.Top+AppInfoPanel2.Height
AppInfoPanel4.Height=lblInfoTitle4.Height+lblInfoText4.Height+25
AppInfoPanel4.Top=AppInfoPanel3.Top+AppInfoPanel3.Height
AppInfoPanel5.Height=lblInfoTitle5.Height+lblInfoText5.Height+25
AppInfoPanel5.Top=AppInfoPanel4.Top+AppInfoPanel4.Height
AppInfoPanel6.Height=lblInfoTitle6.Height+lblInfoText6.Height+25
AppInfoPanel6.Top=AppInfoPanel5.Top+AppInfoPanel5.Height
AppInfoPanel7.Height=lblInfoTitle7.Height+lblInfoText7.Height+25
AppInfoPanel7.Top=AppInfoPanel6.Top+AppInfoPanel6.Height
AppInfoPanel8.Height=lblInfoTitle8.Height+lblInfoText8.Height+25
AppInfoPanel8.Top=AppInfoPanel7.Top+AppInfoPanel7.Height
3.- I use a custom font for several labels, but when i change it, for example like this:
B4X:
lblLastRefresh.Font=Font.CreateNew2("Myriad Pro",20)
4.- When some views are not enabled for doing things, i disable them setting the property UserInteractionEnabled to False, but after this, if the user clicks on it... it raises the code, like if the property was set on True...
Please help me, the project is almost ended, but i cant give it to my client if it is not stable.
Thanks a lot.