B4A Library SimpleToolTip

Discussion in 'Additional libraries, classes and official updates' started by DonManfred, Jun 26, 2016.

Similar threads

B4A Tutorial Android Text To Speech example
B4A Question TTS isSpeaking listener
B4A Question Tts
B4A Tutorial Voice Recognition Example
B4A Library Phone library update - v1.34
  1. DonManfred

    DonManfred Expert Licensed User

    This is a wrap for this github project.

    It requires B4A 6+ due to the need of the provided aar.

    SimpleToolTip
    Author:
    DonManfred (wrapper)
    Version: 1.51
    • SimpleTooltipBuilder
      Methods:
      • Initialize (EventName As String)
      • anchorView (anchorView As View) As SimpleTooltipBuilder
        <div class="pt">Define para qual <tt>View</tt> o tooltip deve apontar.
        Importante ter certeza que esta <tt>View</tt> já esteja pronta e exibida
        na tela.</div>
        anchorView: <div class="pt"><tt>View</tt> para qual o tooltip deve
        apontar</div>
        Return type: @return:this
      • animated (animated As Boolean) As SimpleTooltipBuilder
        <div class="pt">Define se o tooltip será animado enquanto estiver
        aberto. Disponível a partir do Android API 11. Padrão é <tt>false</tt>
        .</div>
        animated: <div class="pt"><tt>true</tt> para tooltip animado,
        <tt>false</tt> caso contrário.</div>
        Return type: @return:this
      • animationDuration (animationDuration As Long) As SimpleTooltipBuilder
      • animationPadding (animationPadding As Int) As SimpleTooltipBuilder
      • arrowColor (arrowColor As Int) As SimpleTooltipBuilder
      • arrowDrawable (arrowDrawable As Drawable) As SimpleTooltipBuilder
      • arrowHeight (arrowHeight As Float) As SimpleTooltipBuilder
        <div class="pt">Altura da seta indicativa. Esse valor é automaticamente
        definido em Largura ou Altura conforme a <tt>Gravity</tt> configurada.
        Este valor sobrescreve <tt>R.dimen.simpletooltip_arrow_height</tt></div>
        <div class="en">Height of the arrow. This value is automatically set in
        the Width or Height as the <tt>Gravity</tt>.</div>
        arrowHeight: <div class="pt">Altura em pixels.</div> <div class="en">Height
        in pixels.</div>
        Return type: @return:this
      • arrowWidth (arrowWidth As Float) As SimpleTooltipBuilder
        <div class="pt">Largura da seta indicativa. Esse valor é automaticamente
        definido em Largura ou Altura conforme a <tt>Gravity</tt> configurada.
        Este valor sobrescreve <tt>R.dimen.simpletooltip_arrow_width</tt></div>
        <div class="en">Width of the arrow. This value is automatically set in
        the Width or Height as the <tt>Gravity</tt>.</div>
        arrowWidth: <div class="pt">Largura em pixels.</div> <div class="en">Width
        in pixels.</div>
        Return type: @return:this
      • backgroundColor (backgroundColor As Int) As SimpleTooltipBuilder
      • build
      • contentView (textView As TextView) As SimpleTooltipBuilder
        <div class="pt">Define um novo conteúdo customizado para o
        tooltip.</div>
        textView: <div class="pt">novo conteúdo para o tooltip.</div>
        Return type: @return:this
      • dismiss
      • dismissOnInsideTouch (dismissOnInsideTouch As Boolean) As SimpleTooltipBuilder
        <div class="pt">Define se o tooltip será fechado quando receber um
        clique dentro de sua área. Padrão é <tt>true</tt>.</div>
        dismissOnInsideTouch: <div class="pt"><tt>true</tt> para fechar quando receber o click
        dentro, <tt>false</tt> caso contrário.</div>
        Return type: @return:this
      • dismissOnOutsideTouch (dismissOnOutsideTouch As Boolean) As SimpleTooltipBuilder
        <div class="pt">Define se o tooltip será fechado quando receber um
        clique fora de sua área. Padrão é <tt>true</tt>.</div>
        dismissOnOutsideTouch: <div class="pt"><tt>true</tt> para fechar quando receber o click
        fora, <tt>false</tt> caso contrário.</div>
        Return type: @return:this
      • gravityBottom As SimpleTooltipBuilder
      • gravityEnd As SimpleTooltipBuilder
      • gravityStart As SimpleTooltipBuilder
      • gravityTop As SimpleTooltipBuilder
      • isShowing As Boolean
        <div class="pt">Indica se o tooltip está sendo exibido na tela.</div> <div
        class=en">Indicate whether this tooltip is showing on screen.</div>
        Return type: @return:<div class="pt"><tt>true</tt> se o tooltip estiver sendo exibido,
        <tt>false</tt> caso contrário</div> <div class="en"><tt>true</tt>
        if the popup is showing, <tt>false</tt> otherwise</div>
      • margin (margin As Int) As SimpleTooltipBuilder
      • modal (modal As Boolean) As SimpleTooltipBuilder
        <div class="pt">Define se a tela fiacrá bloqueada enquanto o tooltip
        estiver aberto. Esse parâmetro deve ser combinado com
        <tt>Builder#dismissOnInsideTouch(boolean)</tt> e
        <tt>Builder#dismissOnOutsideTouch(boolean)</tt>. Padrão é
        <tt>false</tt>.</div>
        modal: <div class="pt"><tt>true</tt> para bloquear a tela,
        <tt>false</tt> caso contrário.</div>
        Return type: @return:this
      • padding (padding As Int) As SimpleTooltipBuilder
      • show
      • showArrow (showArrow As Boolean) As SimpleTooltipBuilder
        <div class="pt">Indica se deve ser gerada a seta indicativa. Padrão é
        <tt>true</tt>.</div> <div class="en">Indicates whether to be generated
        indicative arrow. Default is <tt>true</tt>.</div>
        showArrow: <div class="pt"><tt>true</tt> para exibir a seta, <tt>false</tt>
        caso contrário.</div> <div class="en"><tt>true</tt> to show
        arrow, <tt>false</tt> otherwise.</div>
        Return type: @return:this
      • text (text As String) As SimpleTooltipBuilder
        <div class="pt">Define o texto que sera exibido no <tt>TextView</tt>
        dentro do tooltip.</div>
        text: <div class="pt">texto que sera exibido.</div>
        Return type: @return:this
      • textColor (textColor As Int) As SimpleTooltipBuilder
      • transparentOverlay (transparentOverlay As Boolean) As SimpleTooltipBuilder
        <div class="pt">Define se o fundo da tela será escurecido ou
        transparente enquanto o tooltip estiver aberto. Padrão é <tt>true</tt>
        .</div>
        transparentOverlay: <div class="pt"><tt>true</tt> para o fundo transparente,
        <tt>false</tt> para escurecido.</div>
        Return type: @return:this
     

    Attached Files:

    Last edited: Jun 26, 2016
  2. Johan Schoeman

    Johan Schoeman Expert Licensed User

    Manfred, just check the name of the aar file. I had an error when starting the project saying that it can't find timpleToolTip.aar
    I renamed your aar from simpleTooltTip to timpleToolTip and then the B4A project was a happy teddy bear...
     
    DonManfred likes this.
  3. DonManfred

    DonManfred Expert Licensed User

    The problem was a typo in the dependson. The aar was named correctly.

    Updated lib to V1.51
     
    Johan Schoeman likes this.
  4. MarcoRome

    MarcoRome Expert Licensed User

  5. paris7162

    paris7162 Member Licensed User

    Is there a way to round the corners on the textview? I see that there is a drawable option on the arrow, but not on the main text view.
     
  6. DonManfred

    DonManfred Expert Licensed User

    i dont know. As all other old libs i do not have the source anymore due to a hdd crash last year.
     
Loading...
  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