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

AS FeatureRequest is a lightweight, easy-to-integrate library that allows you to present a list of potential features to your users, enabling them to vote on the ones they find most valuable. By collecting and prioritizing user feedback, you can accelerate the development of the most desired features. The library is flexible and can be connected to your own backend.

This library is not free, because, it cost a lot of time and gray hair to create such views.
Thanks for your understanding. :)

(70) mage.png
(71) mage.png
(72) mage.png


Libraries that are needed:
Examples
Simple Example:
AS_FeatureRequest1.AddItem("Feature #1","Feature Description #1",Null,AS_FeatureRequest1.UserVoteStatus_None,0,"RowId")
AS_FeatureRequest1.AddItem("Feature #2","Feature Description #2",Null,AS_FeatureRequest1.UserVoteStatus_Upvoted,5,"RowId")
AS_FeatureRequest1.AddItem("Feature #3","Feature Description #3",Null,AS_FeatureRequest1.UserVoteStatus_Downvoted,-10,"RowId")

Chips
1728686058331.png

Chips can show the user whether it is a premium feature, for example, or how far along the development of this feature is. Any number of chips can be added.

3 Ways to add chips:
Simple:
AS_FeatureRequest1.AddItem("Feature #1","Feature Description #1",Array As String("Chip1","Chip2","Chip3"),AS_FeatureRequest1.UserVoteStatus_None,0,"RowId")
With custom colors:
Dim lstChips As List
lstChips.Initialize
lstChips.Add(AS_FeatureRequest1.CreateItemChip("Chip1",xui.Color_Magenta,xui.Color_White))
lstChips.Add(AS_FeatureRequest1.CreateItemChip("Chip2",xui.Color_Magenta,xui.Color_Black))
lstChips.Add(AS_FeatureRequest1.CreateItemChip("Chip3",xui.Color_Blue,xui.Color_White))
 
AS_FeatureRequest1.AddItem("Feature #2","Feature Description #2",lstChips,AS_FeatureRequest1.UserVoteStatus_None,0,"RowId")
Mixed:
Dim lstChips As List
lstChips.Initialize
lstChips.Add(AS_FeatureRequest1.CreateItemChip("Chip1",xui.Color_Magenta,xui.Color_White))
lstChips.Add("Chip2")
lstChips.Add("Chip3")
 
AS_FeatureRequest1.AddItem("Feature #3","Feature Description #3",lstChips,AS_FeatureRequest1.UserVoteStatus_None,0,"RowId")

Dark and Light mode
There is a built-in light and dark mode that can be changed smoothly on the fly.
Dark mode:
AS_FeatureRequest1.Theme = AS_FeatureRequest1.Theme_Dark
Light mode:
AS_FeatureRequest1.Theme = AS_FeatureRequest1.Theme_Light

Backend examples

Loading Indicator
B4X:
AS_FeatureRequest1.ShowLoadingIndicator
Sleep(4000)
AS_FeatureRequest1.HideLoadingIndicator
AS_FeatureRequest LoadingIndicator.gif

AS_FeatureRequestSFloatingActionButton
Author: Alexander Stolte
Version: 1.00
  • AS_FeatureRequest
    • Events:
      • Voted (isUpvote As Boolean, Value As Object)
    • Fields:
      • mBase As B4XView
      • Tag As Object
    • Functions:
      • AddItem (Title As String, Description As String, ItemChips As List, UserVoteStatus As String, VoteCount As Int, Value As Object) As AS_FeatureRequest_Item
        ItemChips - List of AS_FeatureRequest_ItemChip or a list of string
        UserVoteStatus - None, Upvoted or Downvoted
      • Class_Globals As String
      • Clear As String
        Clears the list
      • CreateItemChip (Text As String, BackgroundColor As Int, TextColor As Int) As AS_FeatureRequest_ItemChip
      • DesignerCreateView (Base As Object, Lbl As Label, Props As Map) As String
        Base type must be Object
      • getBackgroundColor As Int
      • getCardBackgroundColor As Int
      • getDescriptionTextColor As Int
      • getHapticFeedback As Boolean
      • getTheme_Dark As AS_FeatureRequest_Theme
      • getTheme_Light As AS_FeatureRequest_Theme
      • getThemeChangeTransition As String
      • getTitleTextColor As Int
      • getVoteButtonActiveColor As Int
      • getVoteButtonDeactiveColor As Int
      • getVoteCountTextColor As Int
      • Initialize (Callback As Object, EventName As String) As String
      • IsInitialized As Boolean
        Tests whether the object has been initialized.
      • Refresh As String
        Creates the item layouts new
      • setBackgroundColor (BackgroundColor As Int) As String
        BackgroundColor Property
      • setCardBackgroundColor (CardBackgroundColor As Int) As String
        CardBackgroundColor Property
      • setDescriptionTextColor (DescriptionTextColor As Int) As String
        DescriptionTextColor Property
      • setHapticFeedback (HapticFeedback As Boolean) As String
        Haptic feedback for upvote or downvote button press
      • setTheme (Theme As AS_FeatureRequest_Theme)
      • setThemeChangeTransition (ThemeChangeTransition As String) As String
        ThemeChangeTransition Property
      • setTitleTextColor (TitleTextColor As Int) As String
        TitleTextColor Property
      • setVoteButtonActiveColor (VoteButtonActiveColor As Int) As String
        VoteButtonActiveColor Property
      • setVoteButtonDeactiveColor (VoteButtonDeactiveColor As Int) As String
        VoteButtonDeactiveColor Property
      • setVoteCountTextColor (VoteCountTextColor As Int) As String
        VoteCountTextColor Property
      • UserVoteStatus2Text (VoteStatus As Int) As String
        -1 = None
        0 = Downvoted
        1 = Upvoted
      • UserVoteStatus_Downvoted As String
      • UserVoteStatus_None As String
      • UserVoteStatus_Upvoted As String
    • Properties:
      • BackgroundColor As Int
        BackgroundColor Property
      • CardBackgroundColor As Int
        CardBackgroundColor Property
      • DescriptionTextColor As Int
        DescriptionTextColor Property
      • HapticFeedback As Boolean
        Haptic feedback for upvote or downvote button press
      • Theme
      • Theme_Dark As AS_FeatureRequest_Theme [read only]
      • Theme_Light As AS_FeatureRequest_Theme [read only]
      • ThemeChangeTransition As String
        ThemeChangeTransition Property
      • TitleTextColor As Int
        TitleTextColor Property
      • VoteButtonActiveColor As Int
        VoteButtonActiveColor Property
      • VoteButtonDeactiveColor As Int
        VoteButtonDeactiveColor Property
      • VoteCountTextColor As Int
        VoteCountTextColor Property
  • AS_FeatureRequest_Item
    • Fields:
      • Description As String
      • IsInitialized As Boolean
        Tests whether the object has been initialized.
      • ItemChips As List
      • Title As String
      • UserVoteStatus As String
      • Value As Object
      • VoteCount As Int
    • Functions:
      • Initialize
        Initializes the fields to their default value.
  • AS_FeatureRequest_ItemChip
    • Fields:
      • BackgroundColor As Int
      • IsInitialized As Boolean
        Tests whether the object has been initialized.
      • Text As String
      • TextColor As Int
    • Functions:
      • Initialize
        Initializes the fields to their default value.
  • AS_FeatureRequest_Theme
    • Fields:
      • BackgroundColor As Int
      • CardBackgroundColor As Int
      • ChipBackgroundColor As Int
      • ChipTextColor As Int
      • DescriptionTextColor As Int
      • IsInitialized As Boolean
        Tests whether the object has been initialized.
      • TitleTextColor As Int
      • VoteButtonActiveColor As Int
      • VoteButtonDeactiveColor As Int
      • VoteCountTextColor As Int
    • Functions:
      • Initialize
        Initializes the fields to their default value.
Changelog
  • 1.00
    • Release
  • 1.01
    • Add ShowLoadingIndicator
    • Add HideLoadingIndicator
    • Add Designer Property LoadingIndicatorColor
      • Default: Black
Have Fun :)
 

Attachments

  • AS_FeatureRequest Example.zip
    178.1 KB · Views: 23
  • AS_FeatureRequest.zip
    10.2 KB · Views: 10
Last edited:

Alexander Stolte

Expert
Licensed User
Longtime User
Update
  • 1.01
    • Add ShowLoadingIndicator
    • Add HideLoadingIndicator
    • Add Designer Property LoadingIndicatorColor
      • Default: Black
Loading Indicator
Simple Example:
AS_FeatureRequest1.ShowLoadingIndicator
Sleep(4000)
AS_FeatureRequest1.HideLoadingIndicator
AS_FeatureRequest LoadingIndicator.gif
 
Top