Wish LabelExtras Library

Discussion in 'B4J Bugs & Wishlist' started by nw11, Feb 18, 2015.

  1. nw11

    nw11 Member Licensed User

    Hi all,

    Is there any way i can use LabelExtras Library features in B4J

    In B4A i use this library to show emoticon in a Edittext View with this commands

    Str = html1.CharSequenceFromEditTextToHtml(EditText1)
            matcher1 = 
    Do While matcher1.Find
                Str = Str.Replace(matcher1.Match,
            sp.Append(html1.FromHtml2(Str & 
    "<img src='001.png' />","ImageGetter",""))   

            EditText1.Text = sp
    Sub ImageGetter_GetDrawable(Source As StringAs Object
    If File.Exists(File.DirAssets, Source) Then
    Dim Bitmap1 As Bitmap
    LoadBitmap(File.DirAssets, Source)
    Dim BitmapDrawable1 As BitmapDrawable

    00, Bitmap1.Width, Bitmap1.Height)

    Return BitmapDrawable1
    '    the default placeholder image will be used if Null is returned by this Sub
            Return Null
    End If
    End Sub

    .. in order to convert my App in B4J i need to do the same things in B4J

    anyone can help me.
  2. Erel

    Erel Administrator Staff Member Licensed User

    Android UI elements are based on Android specific APIs, so they cannot be used with B4J. Looks for a similar JavaFx solution.
    tdocs2 likes this.
  3. tdocs2

    tdocs2 Well-Known Member Licensed User

    Thank you, Erel.

    Where would I find the ability to consume a click on a label on a listview in B4J?

    I would not know where to start...

    Best regards.


    PS: It seems that B4J is increasing in popularity since Open Designer was added - lots simpler than FXML... Couple that with Derez Menu Designer (just shy of industrial strength) and that is RADDDDDDDDDDDDDDDDDDDDD!:cool::cool::cool:
  4. LucaMs

    LucaMs Expert Licensed User

    For all I know, you have the events of the listview, not the label, and this also in B4A.
    But this answer is probably "completely incorrect".

    [I noticed now that this is not the place for questions]
    tdocs2 likes this.
  5. Erel

    Erel Administrator Staff Member Licensed User

    Please start a new thread for this question .
  6. tdocs2

    tdocs2 Well-Known Member Licensed User

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice