JdV Active Member Licensed User Longtime User Apr 5, 2012 #1 Hello I have encountered an issue with the size of the MsgBox window on Android 2.3.3 (see image attached). The same thing happens on my phone running Android 2.3.5. On Android 2.2 it shows both lines of the message (see attached). The screen I have the MsgBox appearing on has a scrollview which is 50dip shorter than the Activity.Height in order to make way for an AdMob panel. Would any of these things have an effect on the MsgBox's appearance? What governs the size of the MsgBox? Is there a way around this issue that will work consistently on all versions of Android? Regards Joe Attachments MsgBox 2.3.3.png 7.4 KB · Views: 608 MsgBox 2.2.png 10.4 KB · Views: 563
Hello I have encountered an issue with the size of the MsgBox window on Android 2.3.3 (see image attached). The same thing happens on my phone running Android 2.3.5. On Android 2.2 it shows both lines of the message (see attached). The screen I have the MsgBox appearing on has a scrollview which is 50dip shorter than the Activity.Height in order to make way for an AdMob panel. Would any of these things have an effect on the MsgBox's appearance? What governs the size of the MsgBox? Is there a way around this issue that will work consistently on all versions of Android? Regards Joe
Erel B4X founder Staff member Licensed User Longtime User Apr 5, 2012 #2 The dialog appearance is not affected by other views. It is handled internally by the native AlertDialog.Builder. Your best option is to break the text yourself: Code: Copy Msgbox("This message is long enough" & CRLF & "to appear on two lines.", "") Upvote 0
The dialog appearance is not affected by other views. It is handled internally by the native AlertDialog.Builder. Your best option is to break the text yourself: Code: Copy Msgbox("This message is long enough" & CRLF & "to appear on two lines.", "")
JdV Active Member Licensed User Longtime User Apr 5, 2012 #3 I've tried doing that with similar results (see attached). This problem doesn't seem to occur if I write a simple app with minimal code, e.g.: Code: Copy Sub Activity_Create(FirstTime As Boolean) Msgbox("This message is now"&CRLF&"split over"&CRLF&"three lines.", "") End Sub Regards Joe P.S. It may just be an annoying quirk of Android 2.3.x! It seems similar to my post the other day regarding the second label in a listview not showing more than one line of text. Attachments MsgBox 2.2 - 2.png 10.2 KB · Views: 571 MsgBox 2.3.3 - 2.png 7.3 KB · Views: 482 Upvote 0
I've tried doing that with similar results (see attached). This problem doesn't seem to occur if I write a simple app with minimal code, e.g.: Code: Copy Sub Activity_Create(FirstTime As Boolean) Msgbox("This message is now"&CRLF&"split over"&CRLF&"three lines.", "") End Sub Regards Joe P.S. It may just be an annoying quirk of Android 2.3.x! It seems similar to my post the other day regarding the second label in a listview not showing more than one line of text.
JdV Active Member Licensed User Longtime User Apr 5, 2012 #4 I have just found this defect report: Issue 17730 - android - AlertDialog.Builder.setItems() no longer respects new lines and html<br>s - Android - An Open Handset Alliance Project - Google Project Hosting Upvote 0
I have just found this defect report: Issue 17730 - android - AlertDialog.Builder.setItems() no longer respects new lines and html<br>s - Android - An Open Handset Alliance Project - Google Project Hosting
CapReed Member Licensed User Longtime User Oct 30, 2012 #5 Hello! I have the same problem with Android 2.3. However, when I try it with 4.0 the result is correct and there are numerous connections. I've also tried to create a panel to put a label but it is the same, the text is cut. I also tested with CLRF but still cutting the text. How did you solved? Thank you! Upvote 0
Hello! I have the same problem with Android 2.3. However, when I try it with 4.0 the result is correct and there are numerous connections. I've also tried to create a panel to put a label but it is the same, the text is cut. I also tested with CLRF but still cutting the text. How did you solved? Thank you!
JdV Active Member Licensed User Longtime User Oct 30, 2012 #6 CapReed said: How did you solved? Thank you! Click to expand... I gave up in the end! Luckily for me the message I wanted to display could be shortened to just one line. Regards Joe Upvote 0
CapReed said: How did you solved? Thank you! Click to expand... I gave up in the end! Luckily for me the message I wanted to display could be shortened to just one line. Regards Joe
CapReed Member Licensed User Longtime User Oct 30, 2012 #7 :signOops: Thank you for your answer. I wait anyone solutions ... Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Oct 31, 2012 #8 You can use CustomDialog from the Dialogs library instead. Upvote 0