ProgressButton is a toggleable button which displays a circular progress indicator.
This library wraps the open source ProgressButton, details of which can be found here:
http://f2prateek.com/progressbutton/
ProgressButton
Version: 1.00
As you can see the ProgressButton has all of the 'standard' b4a View methods and properties plus of course a few of it's own.
Note that the library contains a small number of resources that must be copied to your project's Objects/res folder and marked as read-only.
Martin.
This library wraps the open source ProgressButton, details of which can be found here:
http://f2prateek.com/progressbutton/
Copyright 2013 Prateek Srivastava
Copyright 2012 Roman Nurik
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
ProgressButton
Version: 1.00
- ProgressButton
Events:- CheckedChanged (ProgressButton1 As ProgressButton, IsChecked As Boolean)
- BringToFront
- Initialize
Initializes the ProgressButton. - Invalidate
- Invalidate2 (arg0 As Rect)
- Invalidate3 (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int)
- IsInitialized As Boolean
- RemoveView
- RequestFocus As Boolean
- SendToBack
- SetBackgroundImage (arg0 As Bitmap)
- SetLayout (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int)
- SetOnCheckedChangedListener (EventName As String)
Adds an OnCheckedChangedListener to the ProgressButton.
Raises the event CheckedChanged(ProgressButton1 As ProgressButton, IsChecked As Boolean).
Pass Null as the EventName to remove any previously added OnCheckedChangedListener. - Toggle
Toggles the checked state of the ProgressButton.
- Background As Drawable
- Checked As Boolean
Gets or Sets whether the ProgressButton is checked. - CheckedDrawable As Drawable [write only]
Sets the Drawable to be displayed for the ProgressButton checked state. - CircleColor As Int
Gets or Sets the ProgressButton background circle color. - Color As Int [write only]
- Enabled As Boolean
- Height As Int
- InnerSize As Int
Gets or Sets the ProgressButton circle diameter. - Left As Int
- Max As Int
Gets or Sets the ProgressButton maximum progress value. - Progress As Int
Gets or Sets the ProgressButton progress value. - ProgressColor As Int
Gets or Sets the ProgressButton progress circle color. - ShadowDrawable As Drawable [write only]
Sets the Drawable to be displayed for the ProgressButton shadow. - Tag As Object
- Top As Int
- UncheckedDrawable As Drawable [write only]
Sets the Drawable to be displayed for the ProgressButton unchecked state. - Visible As Boolean
- Width As Int
As you can see the ProgressButton has all of the 'standard' b4a View methods and properties plus of course a few of it's own.
Note that the library contains a small number of resources that must be copied to your project's Objects/res folder and marked as read-only.
Martin.