Looking to theme your app to Material Design? Or even ensure Holo?
This library will make your dialogs look either Material or Holo on every Android version.
This is a port of THIS repo
One thing to note these are NOT modal dialogs. Code execution will continue in the background.
It is very easy to use.
Screenshots
Example
Quick Alert Dialog:
Showing a listdialog:
Usage
Copy the res files to a location on your HDD, and in your project you need to use #AddtionalRes to point to these files.
Limitations
Currently cannot do custom dialogs. Might work on that later if worthwhile.
Download
Demo APK
Library+Sample+Res
This library will make your dialogs look either Material or Holo on every Android version.
This is a port of THIS repo
One thing to note these are NOT modal dialogs. Code execution will continue in the background.
It is very easy to use.
Screenshots
Example
Quick Alert Dialog:
B4X:
Sub btn3_Click
Dim MB As MSQuickDialogs
MB.ShowMaterialDarkMessageBox("Title","QuickDialog2","QD2")
End Sub
Sub QD2_DialogResponse(Response As Int)
Msgbox("QD2","Old Messagebox!")
End Sub
Showing a listdialog:
B4X:
Dim itemList As List = Array As String("Organes", "Nabanabas", "Appels", "Drapes", "BawSterries", "Lemlons")
Dim builder As MSDialogBuilder
builder.Initialize("MyDialog")
builder.setTitle("Material List Dialog").setMessage("This is a List dialog").setThemeColor(Colors.Green)
builder.setButton(DialogResponse.POSITIVE , "OK")
builder.setCancelable(True)
builder.setDesign(builder.DESIGN_MATERIAL_DARK)
builder.setListStyle(itemList)
builder.show
Usage
Copy the res files to a location on your HDD, and in your project you need to use #AddtionalRes to point to these files.
Limitations
Currently cannot do custom dialogs. Might work on that later if worthwhile.
Download
Demo APK
Library+Sample+Res