B4A Class [B4X] [XUI] Badger - Add badges to views

Discussion in 'Additional libraries, classes and official updates' started by Erel, Jul 17, 2017.

  1. Erel

    Erel Administrator Staff Member Licensed User

    This class is compatible with B4A, B4i and B4J.

    [​IMG]

    [​IMG]


    [​IMG]

    Simple class that adds "badges" to views.

    Usage example:
    Code:
    'increase badge by one.
    badger1.SetBadge(Label1, badger1.GetBadge(Label1) + 1)
    You can change the colors and radius in the class code.
    The class is included in all three attached examples.


    Versions

    V3.00 - Based on XUI. Requires XUI v1.20
     

    Attached Files:

    Last edited: Oct 16, 2017
  2. MarcoRome

    MarcoRome Expert Licensed User

    Nice one
     
  3. cxdzbl

    cxdzbl Active Member Licensed User

    beyond compare
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    Version 2.00 is released. It is compatible with B4A, B4i and B4J.
     
  5. Erel

    Erel Administrator Staff Member Licensed User

    V3.00 is released. It is based on XUI library. With the exception of the panel's creation code:
    Code:
    #if B4J
       Dim p As Pane
    #else
       Dim p As Panel
    #end if
       p.Initialize(
    "")
    #if B4A
       p.SetElevationAnimated(animationDuration, 
    8dip)
    #end if
    the class code is exactly the same in all three platforms.

    This is a nice example of the power of XUI library.
     
  6. sdleidel

    sdleidel Member Licensed User

    How i can add a Badge to a Tab on the Tabpane ?
     
  7. Erel

    Erel Administrator Staff Member Licensed User

    See the attached project.
     

    Attached Files:

    Johan Schoeman and Johan Hormaza like this.
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