B basil99 Active Member Licensed User Longtime User Mar 20, 2013 #1 Hi! I start to test my app at different devices and meet the following problem. I use CustomDialog that holds a panel with different views. Sorry, for no screenshots, but I upload some pics that illustrated the issue ( all in Landscape mode ) Device 1 ( 480x320, OS 2.2 ) display code as figured at 480x320.jpg. Panel is inside CustomDialog window, fully visible and CustomDialog stretch itself in X direction. Perfect for me. Device 2( 800x480, OS 4.0.4 ) brings me that screen - 800x480.jpg. Seems CustomDialog Window refuse to stretch, so only 1/2 of panel width is visible. I tried different things, but no luck. All other views looks perfect, scaling works fine. So, what I need to do to fix it ? Thanks in advance Attachments 480x320.jpg 26.5 KB · Views: 576 800x480.jpg 36.5 KB · Views: 590
Hi! I start to test my app at different devices and meet the following problem. I use CustomDialog that holds a panel with different views. Sorry, for no screenshots, but I upload some pics that illustrated the issue ( all in Landscape mode ) Device 1 ( 480x320, OS 2.2 ) display code as figured at 480x320.jpg. Panel is inside CustomDialog window, fully visible and CustomDialog stretch itself in X direction. Perfect for me. Device 2( 800x480, OS 4.0.4 ) brings me that screen - 800x480.jpg. Seems CustomDialog Window refuse to stretch, so only 1/2 of panel width is visible. I tried different things, but no luck. All other views looks perfect, scaling works fine. So, what I need to do to fix it ? Thanks in advance
stevel05 Expert Licensed User Longtime User Mar 21, 2013 #2 Can you post your code? it looks like the panel width hasn't changed. Have you used absolute sizes or %x,%y in the addview? Upvote 0
Can you post your code? it looks like the panel width hasn't changed. Have you used absolute sizes or %x,%y in the addview?
B basil99 Active Member Licensed User Longtime User Mar 21, 2013 #3 stevel05 said: Can you post your code? it looks like the panel width hasn't changed. Have you used absolute sizes or %x,%y in the addview? Click to expand... Code follows, but i'm pretty sure problem outside my app. I attach 2 looks for 480x320/android 2.2 and 800/480/android 4.0.4 for this pretty simple code: Code: Copy dim dummy as Panel dim MyDialog as Customdialog dummy.Initialize("") MyDialog.RemoveView MyDialog.AddView( dummy, 0, 0, 100%x, 100%y ) result = MyDialog.Show( "Title", "Ok", "Cancel", "Very long text", Null ) And about my real code - i got correct panel width on all devices via width = dummy.width, but seems size of customdialog is FIXED on 800/480/android 4.0.4 device and it ignores both panel width and buttons as well. Attachments 480x320.jpg 59.2 KB · Views: 605 800x480.jpg 71.2 KB · Views: 517 Last edited: Mar 21, 2013 Upvote 0
stevel05 said: Can you post your code? it looks like the panel width hasn't changed. Have you used absolute sizes or %x,%y in the addview? Click to expand... Code follows, but i'm pretty sure problem outside my app. I attach 2 looks for 480x320/android 2.2 and 800/480/android 4.0.4 for this pretty simple code: Code: Copy dim dummy as Panel dim MyDialog as Customdialog dummy.Initialize("") MyDialog.RemoveView MyDialog.AddView( dummy, 0, 0, 100%x, 100%y ) result = MyDialog.Show( "Title", "Ok", "Cancel", "Very long text", Null ) And about my real code - i got correct panel width on all devices via width = dummy.width, but seems size of customdialog is FIXED on 800/480/android 4.0.4 device and it ignores both panel width and buttons as well.
stevel05 Expert Licensed User Longtime User Mar 21, 2013 #4 Can you zip and post your project, that way we can try it on our own devices and compare the results. Upvote 0
Can you zip and post your project, that way we can try it on our own devices and compare the results.
B basil99 Active Member Licensed User Longtime User Mar 21, 2013 #5 stevel05 said: Can you zip and post your project, that way we can try it on our own devices and compare the results. Click to expand... Project is too big, but i create a small one that is easy to understand and has the same behaviour on CustomDialog as source project. Works fine on 480/320/2.2 and has the same weird look at 800x480x4.0.4 Please, see the attachment zip thank you Attachments MathDebug.zip MathDebug.zip 7.6 KB · Views: 483 Upvote 0
stevel05 said: Can you zip and post your project, that way we can try it on our own devices and compare the results. Click to expand... Project is too big, but i create a small one that is easy to understand and has the same behaviour on CustomDialog as source project. Works fine on 480/320/2.2 and has the same weird look at 800x480x4.0.4 Please, see the attachment zip thank you
stevel05 Expert Licensed User Longtime User Mar 21, 2013 #6 It looks like you're not the first, see Erel's answer here Upvote 0
agraham Expert Licensed User Longtime User Mar 21, 2013 #7 It is Android itself that determines the size of the dialog, not the CustomDialog. Upvote 0
B basil99 Active Member Licensed User Longtime User Mar 21, 2013 #8 This is really bad news ( Have several things based on CustomDialog in my app, some of them can be taylored for this wide screen feature/issue, but my keyboard thingy ruined. Any chance to contact lib author and ask him to take a look ? Upvote 0
This is really bad news ( Have several things based on CustomDialog in my app, some of them can be taylored for this wide screen feature/issue, but my keyboard thingy ruined. Any chance to contact lib author and ask him to take a look ?
B basil99 Active Member Licensed User Longtime User Mar 21, 2013 #9 agraham said: It is Android itself that determines the size of the dialog, not the CustomDialog. Click to expand... so, no way to change this size in app ? Upvote 0
agraham said: It is Android itself that determines the size of the dialog, not the CustomDialog. Click to expand... so, no way to change this size in app ?
B basil99 Active Member Licensed User Longtime User Mar 21, 2013 #11 agraham said: I'm afraid not. Click to expand... googling it, may be i'm wrong, may be this can help ? layout - android: how to resize dialog - Stack Overflow android - How to make an alert dialog fill 90% of screen size? - Stack Overflow anyway, because i'm in basic, not in java, it looks chinese for me, but may be guru's got the idea ? Upvote 0
agraham said: I'm afraid not. Click to expand... googling it, may be i'm wrong, may be this can help ? layout - android: how to resize dialog - Stack Overflow android - How to make an alert dialog fill 90% of screen size? - Stack Overflow anyway, because i'm in basic, not in java, it looks chinese for me, but may be guru's got the idea ?