RamosOchoa
Affiliate Guru
2
MONTHS
2 2 MONTHS OF SERVICE
LEVEL 1
400 XP
Today, I will make a tutorial for the different kinds of dialog. First, I will make a tutorial for input dialog. The first thing that you will do is to add "Dialogs" in the library of Basic4Android Software. Next, create a designer, put a button in it and named Button1, and lastly saved it and named the layout name "main".
Next, Copy this code below:
Note:
Id - is our variable name for our InputDialog.
PasswordMode - the method name for putting a password text in the inputbox.
InputType - refers to the inputting type either text, number, phone, decimal, etc.
Hint - refers to the hint inside the our InputDialog Text.
HintColor - refers to our RGB color in the Hint.
ret - our variable used for Return.
For more inquiries and need programmer for your thesis systems in any kind of programming languages, just contact my number below.
Best Regards,
Engr. Lyndon Bermoy
IT Instructor/System Developer/Android Developer/Freelance Programmer
Mobile: 09488225971
Landline: 826-9296
E-mail:[email protected]
Add and Follow me on Facebook: https://www.facebook.com/donzzsky
Visit and like my page on Facebook at: https://www.facebook.com/BermzISware
Download
Next, Copy this code below:
- Sub
Process_Globals
- 'These global variables will be declared once when the application starts.
- 'These variables can be accessed from all modules.
- End
Sub
- Sub
Globals
- 'These global variables will be redeclared each time the activity is created.
- 'These variables can only be accessed from this module.
- Dim
Button1 As
Button
- Dim
bmp As
Bitmap
- End
Sub
- Sub
Activity_Create(FirstTime As
Boolean
)
- Activity.LoadLayout("Main"
)
- bmp.InitializeSample(File.DirAssets, "bermoy.jpg"
,48,48)
- End
Sub
- Sub
Activity_Resume
- End
Sub
- Sub
Activity_Pause (UserClosed As
Boolean
)
- End
Sub
- Sub
Button1_Click
- Dim
Id As
InputDialog
- 'Id.PasswordMode = True
- Id.InputType = Id.INPUT_TYPE_DECIMAL_NUMBERS
- 'Id.InputType = Id.INPUT_TYPE_NUMBERS
- 'Id.InputType = Id.INPUT_TYPE_PHONE
- Id.Input
= ""
- Id.Hint = "Enter some text!"
- Id.HintColor = Colors.ARGB(196, 255, 140, 0)
- ret = DialogResponse.CANCEL
- ret = Id.Show("Input the required text"
, "B4A Input Dialog"
, "Yes"
, "No"
, "Maybe"
, bmp)
- End
Sub
Note:
Id - is our variable name for our InputDialog.
PasswordMode - the method name for putting a password text in the inputbox.
InputType - refers to the inputting type either text, number, phone, decimal, etc.
Hint - refers to the hint inside the our InputDialog Text.
HintColor - refers to our RGB color in the Hint.
ret - our variable used for Return.
For more inquiries and need programmer for your thesis systems in any kind of programming languages, just contact my number below.
Best Regards,
Engr. Lyndon Bermoy
IT Instructor/System Developer/Android Developer/Freelance Programmer
Mobile: 09488225971
Landline: 826-9296
E-mail:[email protected]
Add and Follow me on Facebook: https://www.facebook.com/donzzsky
Visit and like my page on Facebook at: https://www.facebook.com/BermzISware
Download
You must upgrade your account or reply in the thread to view hidden text.