B4A Library [B4X] [XUI] AS PremiumSummary [Payware]

With this view you can easily and with little effort list your premium features and make it easier for the customer to choose the right premium package.

This library is not free, because, it cost a lot of time and gray hair to create such views.
You can buy the view here:
With the purchase you will receive a zip file containing the b4xlib. and a text file with the password, so that later updates can be easily downloaded here in the forum.
If you have any questions or problems, I am available here in the forum, thanks for your support.

Thanks for your understanding.


Please note that the B4J version is coming later, the view works great with B4A and B4I.

B4j: jXUI,xCustomListView
B4a: XUI,xCustomListView,StringUtils
B4i: iXUI,xCustomListView
AS_PremiumSummary
Author: Alexander Stolte
Version: 1.00
  • AS_PremiumSummary
    • Events:
      • ClickableTextClick (Button As String)
      • CloseButtonClicked
      • PaidOptionClicked (Index As Int, PaidOption As AS_PremiumSummary_PaidOption)
      • PurchaseButtonClick (ProductIdentifier As String)
    • Fields:
      • mBase As B4XView
      • Tag As Object
    • Functions:
      • Add_AppLogo (Icon As B4XBitmap, Width As Float, Height As Float) As Map
      • Add_ClickableText (LeftText As String, MiddleText As String, RightText As String) As Map
      • Add_Feature_1 (Title As String, Description As String, Icon As B4XBitmap) As Map
      • Add_Feature_2 (Text As String, Icon As B4XBitmap) As Map
      • Add_PaidOption (Name As String, DisplayName As String, DisplayPriceText As String, PriceValue As String, isSelected As Boolean) As Map
      • Add_Placeholder (Height As Int) As Map
      • Add_PurchaseButton (Text As String) As Map
      • Add_Seperator (StrokeWidth As Float, Height As Float) As Map
      • Add_Title (Text As String, TextAlignmentHorizontal As String, xFont As B4XFont) As Map
      • AddItemToBottomSheet (Item As Map) As String
      • AddItemToList (Item As Map) As String
      • Base_Resize (Width As Double, Height As Double) As String
      • Class_Globals As String
      • Create
      • CreateAS_PremiumSummary_PaidOption (Name As String, DisplayName As String, PriceText As String, PriceValue As String, BadgeText As String) As AS_PremiumSummary_PaidOption
      • DesignerCreateView (Base As Object, Lbl As Label, Props As Map) As String
        Base type must be Object
      • FontToBitmap (text As String, IsMaterialIcons As Boolean, FontSize As Float, color As Int) As B4XBitmap
      • getAppColor As Int
      • getAppTextColor As Int
      • getBackgroundColor As Int
      • getBottomBackgroundColor As Int
      • getBottomOffset As Float
        Set a custom bottom offset for the items in the bottom sheet
      • getFeatureGapBetween As Float
      • getMainTextColor As Int
      • getPurchaseButtonText As String
      • getSecondTextColor As Int
      • getTheme_Dark As AS_PremiumSummary_Theme
      • getTheme_Light As AS_PremiumSummary_Theme
      • Initialize (Callback As Object, EventName As String) As String
      • isCreated As Boolean
      • IsInitialized As Boolean
        Tests whether the object has been initialized.
      • setAppColor (Color As Int) As String
      • setAppLogo (Icon As B4XBitmap) As String
      • setAppTextColor (Color As Int) As String
      • setBackgroundColor (Color As Int) As String
      • setBottomBackgroundColor (Color As Int) As String
      • setBottomOffset (Offset As Float) As String
      • setFeatureGapBetween (Height As Float) As String
      • setMainTextColor (Color As Int) As String
      • setPurchaseButtonText (Text As String) As String
      • setSecondTextColor (Color As Int) As String
      • setTheme (Theme As AS_PremiumSummary_Theme)
    • Properties:
      • AppColor As Int
      • AppLogo
      • AppTextColor As Int
      • BackgroundColor As Int
      • BottomBackgroundColor As Int
      • BottomOffset As Float
        Set a custom bottom offset for the items in the bottom sheet
      • FeatureGapBetween As Float
      • MainTextColor As Int
      • PurchaseButtonText As String
      • SecondTextColor As Int
      • Theme
      • Theme_Dark As AS_PremiumSummary_Theme [read only]
      • Theme_Light As AS_PremiumSummary_Theme [read only]
  • AS_PremiumSummary_PaidOption
    • Fields:
      • BadgeText As String
      • DisplayName As String
      • Index As Int
      • IsInitialized As Boolean
        Tests whether the object has been initialized.
      • Name As String
      • PriceText As String
      • PriceValue As String
    • Functions:
      • Initialize
        Initializes the fields to their default value.
  • AS_PremiumSummary_Theme
    • Fields:
      • AppColor As Int
      • AppTextColor As Int
      • BackgroundColor As Int
      • BottomBackgroundColor As Int
      • CloseButtonColor As Int
      • IconColor As Int
      • IsInitialized As Boolean
        Tests whether the object has been initialized.
      • MainTextColor As Int
      • SecondTextColor As Int
    • Functions:
      • Initialize
        Initializes the fields to their default value.
Changelog
  • 1.00
    • Release
  • 1.01
    • Add Clear - Clears all items
    • Add ShowInfo and HideInfo - display a message to the user, e.g. if no connection to the app store could be established
    • Add Event InfoButtonClicked
Have Fun
 

Attachments

  • AS PremiumSummary Example.zip
    181.2 KB · Views: 137
  • AS_PremiumSummary.zip
    7.8 KB · Views: 9
Last edited:

Alexander Stolte

Expert
Licensed User
Longtime User
Detailed tutorials, such as the connection with the iStore library, will follow soon.

Planned features:
  • Testimonials
  • Another Feature List Type
  • Description Item
  • Carousel
  • Custom Badge
The list will be expanded as soon as I see something interesting or a new feature is useful.
 

Alexander Stolte

Expert
Licensed User
Longtime User
Update
  • 1.01
    • Add Clear - Clears all items
    • Add ShowInfo and HideInfo - display a message to the user, e.g. if no connection to the app store could be established
    • Add Event InfoButtonClicked
ShowInfo
Display a message to the user, e.g. if no connection to the app store could be established
B4X:
AS_PremiumSummary1.ShowInfo("No connection to the App Store","Could not connect to the App Store, please check your internet connection and try again.","Retry")
B4X:
AS_PremiumSummary1.HideInfo
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…