B4A Library [ New Library] B4AExtendedDialogs

Hi guys,


It's a pleasure to introduce the new B4AExtendedDialogs library.

In this library are included, B4AFileManager, B4AColorPicker, B4AInstalledApp and ( B4ADialogs that includes: ShowInfo, ShowToast, ShowToast2, ShowToastLong, ShowToastShort )

Any bug please repert it.


The zip include:

The library, and the demo

INSTALLATION:

Copy the Library in your Basic For Android Library.

Copy the folders icons and themes are located in files folder in the demo. In your one.



B4AExtendedDialog
Author: Giuseppe Salvi
Version: 1.5
  • B4AColorPicker
    Methods:
    • ColorPicker As Int
      Returns one of the Color value in the grid view
    • Initialize (EventName As String)
      Initialize the Object
    Properties:
    • Colors As Colors [read only]
      Returns one of the Color value in the list
    • Title As CharSequence [write only]
      Set the title text for this dialog's window.
    • TitleButton As CharSequence [write only]
      Set the title of the Button
  • B4ADialogs
    Methods:
    • Initialize (EventName As String)
      Initialize the Object
    • ShowInfo
      Show Info with all options if you have them set programmatically.
      if you do not set the options programmatically it will Show the Info with the default options
    • ShowToast (text As CharSequence, textColor As Int, textSize As Int, duration As Int, gravity As Int, xOffset As Int, yOffset As Int)
      Show the view with (text, duration, gravity, xOffset and yOffset) which the notification should appear on the screen.
    • ShowToast2 (text As CharSequence, textColor As Int, textSize As Int, duration As Int, gravity As Int, xOffset As Int, yOffset As Int, icon As Bitmap)
      Show the view with (text, duration, gravity, xOffset, yOffset, icon) which the notification should appear on the screen.
    • ShowToastLong (text As CharSequence, icon As Bitmap)
      Show the view with text and icon notification for a long period of time.
    • ShowToastShort (text As CharSequence, icon As Bitmap)
      Show the view with text and icon notification for a short period of time.
    Properties:
    • InfoButton As String [write only]
      Set the title of the Button
    • InfoIcon As Bitmap [write only]
      Set the Icon to be used in the title.
    • InfoText As String [write only]
      Set the Text displayed in the Info.
    • InfoTextSize As Int [write only]
      Set the Size of the text.
    • InfoTitle As String [write only]
      Set the title text for this dialog's window.
    • InfoTypeFace As Typeface [write only]
      Set the Typeface (normal, sans, serif, monospace) for the text.
    • InfoTypeFaceStyle As Int [write only]
      Set the Style (bold, italic, bolditalic) for the text.
  • B4AFileManager
    Fields:
    • SORT_NAME As Int
    • SORT_NONE As Int
    • SORT_SIZE As Int
    • SORT_TYPE As Int
    Methods:
    • FileManager
      File Manager
    • Initialize (EventName As String)
      Initialize the Object
    Permissions:
    • android.permission.WRITE_EXTERNAL_STORAGE
    Properties:
    • FastScrollEnabled As Boolean [write only]
      Enables fast scrolling by letting the user quickly scroll through lists by dragging the fast scroll thumb.
    • HomeDir As String [write only]
      Sets homeDir
    • InfoButton As String [write only]
      Set the title of the Button
    • InfoIcon As Bitmap [write only]
      Set the Icon to be used in the title.
    • InfoText As String [write only]
      Set the title text for this dialog's window.
    • InfoTextSize As Int [write only]
      Set the Size of the text.
    • InfoTitle As String [write only]
      Set the title displayed in the Info.
    • InfoTypeFace As Typeface [write only]
      Set the Typeface (normal, sans, serif, monospace) for the text.
    • InfoTypeFaceStyle As Int [write only]
      Set the Style (bold, italic, bolditalic) for the text.
    • PrimarySdCard As String [read only]
      Get PrimarySdCard
    • SecondarySdCard As String [read only]
      Get SecondarySdCard
    • ShowHiddenFiles As Boolean [write only]
      Show or Hidden Files and Folder
    • SortType As Int [write only]
      Set Sort Type
      Examples:
      f.SortType=f.SORT_NONE [ SORT_NONE , SORT_NAME, SORT_TYPE, SORT_SIZE ]
    • Version As Double [read only]
      Return the version of this library
  • B4AInstalledApp
    Methods:
    • Initialize (EventName As String)
      Initialize the Object
    • ListAppInsalled
    • ShowAllApp
      Show All App
    • ShowSysApp
      Show only System App
    • ShowThirdApp
      Show only Third App
    Properties:
    • Title As CharSequence [write only]
      Set the title text for this dialog's window.
    • TitleAllAppButton As CharSequence [write only]
      Set the title of the Button
    • TitleButton As CharSequence [write only]
      Set the title of the Button
    • TitleSysAppButton As CharSequence [write only]
      Set the title of the Button
    • TitleThirdAppButton As CharSequence [write only]
      Set the title of the Button
B4AExtendedDialogs.zip
 

Attachments

  • ColorPicker.jpg
    ColorPicker.jpg
    74.1 KB · Views: 1,058
  • FileManager.jpg
    FileManager.jpg
    85.3 KB · Views: 1,094
  • Filemanager_Pref.jpg
    Filemanager_Pref.jpg
    41.8 KB · Views: 1,001
  • AppInstalled.jpg
    AppInstalled.jpg
    85.6 KB · Views: 993
Last edited:

Informatix

Expert
Licensed User
Longtime User
I tested again, and I found that the crash is not due to the OS but to the resolution. I have crashes with 800x480 or 854x480 resolutions.

EDIT: your archive extension is ZIP, but the archive is in fact a RAR file
 
Last edited:

lonleystar

Well-Known Member
Licensed User
Longtime User
I tested again, and I found that the crash is not due to the OS but to the resolution. I have crashes with 800x480 or 854x480 resolutions.

EDIT: your archive extension is ZIP, but the archive is in fact a RAR file
Hi Informatix,

if u see on top i wrote Rename form zip to rar but if u use WinRar u dont need to rename.

for the resolution i´ll check.
 

microbox

Active Member
Licensed User
Longtime User
Hi, how do I get the value of the color when I select from the list?
I'm trying to display it on a edit text.
B4X:
Sub b_Click

    c.Initialize("c")
    c.Title = "Colors List"
    c.TitleButton = "Exit"
    d.Initialize(c.ColorPicker,0)   
    EditText1.text  = d
    l.Background = d
     
End Sub
Is it in hex value?

Thanks in advance.
 

lonleystar

Well-Known Member
Licensed User
Longtime User
Hi, how do I get the value of the color when I select from the list?
I'm trying to display it on a edit text.
B4X:
Sub b_Click

    c.Initialize("c")
    c.Title = "Colors List"
    c.TitleButton = "Exit"
    d.Initialize(c.ColorPicker,0)  
    EditText1.text  = d
    l.Background = d
    
End Sub
Is it in hex value?

Thanks in advance.


Hi , it return as int:

B4X:
Sub b_Click

    c.Initialize("c")
    c.Title = "Colors List"
    c.TitleButton = "Exit"
    d.Initialize(c.ColorPicker,0)  
    EditText1.text  = c.ColorPicker
    l.Background = d
    
End Sub
 

microbox

Active Member
Licensed User
Longtime User
I have not started my project yet...but it will be a great great help :). BTW just another question...is it possible in the next version of the library you can implement like color wheel? Anyways.. I intend to use it to control my 3m RGB ledstrip.

Thanks and more power lonleystar and to B4A forum.
 

lonleystar

Well-Known Member
Licensed User
Longtime User
I have not started my project yet...but it will be a great great help :). BTW just another question...is it possible in the next version of the library you can implement like color wheel? Anyways.. I intend to use it to control my 3m RGB ledstrip.

Thanks and more power lonleystar and to B4A forum.


Hi, Can U please post some example?.
 
Top