B4A Tutorial CharSequence / CSBuilder Tutorial - Erel (first post)    Feb 21, 2017   (2 reactions)   tags: CSBuilder, text StringUtils.MeasureMultilineTextHeight will support CharSequences in the next beta.... B4A Tutorial [B4X] TextEditor - Save and load external files - Erel    Sep 10, 2023   (38 reactions) -list-of-other-related-methods.129897/#content
Allow other apps to view text files using this app.../android/forum/threads/picking-external-documents-with-documentpickerviewcontroller.99365
Share the text... B4A Tutorial (old) Google Maps Android v2 tutorial - klaus (first post)    Nov 18, 2013 Did you set the the Label.Height and ScrollView.Panel.Height according to the text. You should use StringUtils.MeasureMultilineTextHeight(Label, Text).... B4A Tutorial Designer Scripts Tutorial - Erel (first post)    Feb 28, 2013   tags: Designer Script, Screen, B4A You will need to do it in the main code. Use StringUtils.MeasureMultilineTextHeight.... B4A Tutorial [B4X] Smart String Literal - Erel    Dec 8, 2016   (54 reactions)   tags: smart string literal, smart string The "smart string" literal is a more powerful version of the standard string literal.
It has three advantages:
Supports multi-line strings.
No need to escape quotes.
Supports string... B4A Tutorial Save all Edittexts & corresponding labels on a view to a file (JSON) and reload them - KMatle    Sep 11, 2014   (8 reactions) ex.Text = txt ex.TextSize = 72 dt = ex.TextSize h = stu.MeasureMultilineTextHeight(ex....MeasureMultilineTextHeight(ex, txt) If h > ex.Height Then ex.TextSize = ex.TextSize... all the views - if it finds a label, the text will be used to get the matching pair in the JSON string... If End If Next End Sub Sub SetEditTextSize(ex As EditText, txt As String... in a String - this string will be written to a file (here I use randomaccess including a password... B4A Tutorial Supporting multiple screens - tips and best practices - Dominex (first post)    Jun 13, 2012   tags: UI With this function you can get the scale of the display. For now, it worked fine with all devices that I've got to try.
Sub Activity_Create(FirstTime As Boolean)
Msgbox(DisplayScala,"")
End Sub
Sub DisplayScala As Float
Dim c As Canvas
c.Initialize(Activity)
Return Round((c.MeasureStringHeight("X,_", Typeface.SANS_SERIF, 10)/10+0.15)/0.25)*0.25
End... B4A Tutorial [B4X] WebView + CKEditor (rich text editor) - Erel    Oct 20, 2022   (18 reactions) 117571
This is a cross platform example that adds CKEditor rich text editor using WebView: https....133256/#post-842092)
It also shows how to get the html string using this useful sub:
Private Sub... B4A Tutorial Cards list with CustomListView - cliv (first post)    Mar 5, 2018 .Text = PubDate lblTitle.Text = Title lblContent.Text = Content Dim newHeight As Int newHeight=su.MeasureMultilineTextHeight(lblContent, lblContent.Text) '???? Resize Panel...I use this for for load item: Private Sub CreateItem (Width As Int,PubDate As String, Title As String, Content As String) As Panel Dim p As B4XView = xui.CreatePanel("") Dim height... text added when this is very long...? ... su is StringUtils... B4A Tutorial Handle the soft keyboard with the IME library - Erel    Jul 6, 2025   (30 reactions)   tags: IME visible and sets the large EditText height to match the available height: Sub IME_HeightChanged... EditText1.Height = btnHideKeyboard.Top - EditText1.Top End Sub The result is: 156405 Note... screen size becomes much shorter. By default if the EditText is located near the bottom of the screen, Android will "push" the whole activity and make the EditText visible. This mode is named "adjustPan" mode. By calling IME.AddHeightChangedEvent you are changing the activity to... Page: 1   2   3   4   5   6   7   |