Android Question longtext cann't show all content

yzhy-mail

Member
In my one app ,I use B4XLongTextTemplate to show something.
But it cann't show all the content.
May some kind friends help me!
B4X:
Private Sub btnTerms_Click

    Dim tem As String
    Dim cs As CSBuilder
    tem = File.ReadString(File.DirAssets, "privacy policy.txt")
    Sleep(50)
    LongTextTemplate.Text = tem
    cs.Initialize.Color(xui.Color_Blue).Typeface(Typeface.DEFAULT_BOLD).Size(14).Append(LongTextTemplate.text).PopAll
    LongTextTemplate.Text =cs
    LongTextTemplate.CustomListView1.DefaultTextBackgroundColor = xui.Color_Yellow
    LongTextTemplate.Resize(pnlBottom.Width,6*pnlBottom.Height)
    Dim sf As Object = Dialog.ShowTemplate(LongTextTemplate, "OK", "", "")
    Sleep(0)
    LongTextTemplate.CustomListView1.sv.ScrollViewOffsetY = LongTextTemplate.CustomListView1.sv.ScrollViewContentHeight
    Wait For (sf) Complete (Result As Int)
End Sub
 

Attachments

  • 微信图片_20211110211734.png
    微信图片_20211110211734.png
    379.4 KB · Views: 133
  • longtext.zip
    12.4 KB · Views: 152
Top