Jul 19, 2015 Replies: 3 It wraps part of this Github project. Library files are in the /files folder of the B4A project. Copy them to your additional library folder. Posting the zipped B4A project as well as the Java source code. It fades the pics in as the progress indictors run around the pics. You can also choose the pics to be faded in with a Grayscale version of the pics. Amend/change it what ever way you like. The lib as it stands at present: SquareProgressBar Author: Johan Schoeman Version: 1 SquareProgressBar Fields: ba As BA Methods: BringToFront DesignerCreateView (base As PanelWrapper, lw As LabelWrapper, props As Map) Initialize (EventName As String) 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) SetColorAnimated (arg0 As Int, arg1 As Int, arg2 As Int) SetLayout (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int) SetLayoutAnimated (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int, arg4 As Int) SetVisibleAnimated (arg0 As Int, arg1 As Boolean) isCenterline As Boolean isClearOnHundred As Boolean isIndeterminate As Boolean isOpacity As Boolean isOutline As Boolean isShowProgress As Boolean isStartline As Boolean setColorRGB_1 (r As Int, g As Int, b As Int) setOpacity_2 (opacity As Boolean, isFadingOnProgress As Boolean) Properties: Background As Drawable BorderWidth As Int [write only] ClearOnHundred As Boolean [write only] Color As Int [write only] ColorRGB_2 As Int [write only] Color_1 As String [write only] DrawCenterline As Boolean [write only] DrawOutline As Boolean [write only] DrawStartline As Boolean [write only] Enabled As Boolean Height As Int ImageBitmap As Bitmap [write only] ImageGrayscale As Boolean [write only] Indeterminate As Boolean [write only] Left As Int Opacity_1 As Boolean [write only] Progress As Double [write only] ShowProgress As Boolean [write only] Tag As Object Top As Int Visible As Boolean Width As Int Attachments SquareProgressBar.zip SquareProgressBar.zip 314 KB · Views: 1,300 src.zip src.zip 10 KB · Views: 1,149 Last edited: Jul 19, 2015 Click to expand...
It wraps part of this Github project. Library files are in the /files folder of the B4A project. Copy them to your additional library folder. Posting the zipped B4A project as well as the Java source code. It fades the pics in as the progress indictors run around the pics. You can also choose the pics to be faded in with a Grayscale version of the pics. Amend/change it what ever way you like. The lib as it stands at present: SquareProgressBar Author: Johan Schoeman Version: 1 SquareProgressBar Fields: ba As BA Methods: BringToFront DesignerCreateView (base As PanelWrapper, lw As LabelWrapper, props As Map) Initialize (EventName As String) 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) SetColorAnimated (arg0 As Int, arg1 As Int, arg2 As Int) SetLayout (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int) SetLayoutAnimated (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int, arg4 As Int) SetVisibleAnimated (arg0 As Int, arg1 As Boolean) isCenterline As Boolean isClearOnHundred As Boolean isIndeterminate As Boolean isOpacity As Boolean isOutline As Boolean isShowProgress As Boolean isStartline As Boolean setColorRGB_1 (r As Int, g As Int, b As Int) setOpacity_2 (opacity As Boolean, isFadingOnProgress As Boolean) Properties: Background As Drawable BorderWidth As Int [write only] ClearOnHundred As Boolean [write only] Color As Int [write only] ColorRGB_2 As Int [write only] Color_1 As String [write only] DrawCenterline As Boolean [write only] DrawOutline As Boolean [write only] DrawStartline As Boolean [write only] Enabled As Boolean Height As Int ImageBitmap As Bitmap [write only] ImageGrayscale As Boolean [write only] Indeterminate As Boolean [write only] Left As Int Opacity_1 As Boolean [write only] Progress As Double [write only] ShowProgress As Boolean [write only] Tag As Object Top As Int Visible As Boolean Width As Int
DonManfred Expert Licensed User Longtime User Jul 20, 2015 #3 Johan Schoeman said: SquareProgressBar Click to expand... Really nice one, Johan! I tried to wrap this lib earlier but i got stuck... Well done Thank you for sharing!
Johan Schoeman said: SquareProgressBar Click to expand... Really nice one, Johan! I tried to wrap this lib earlier but i got stuck... Well done Thank you for sharing!
LucaMs Expert Licensed User Longtime User Oct 14, 2015 #4 Thank you, Johan. Useful, in fact... https://www.b4x.com/android/forum/threads/imageview-bitmap-centered.43779/page-2#post-266279
Thank you, Johan. Useful, in fact... https://www.b4x.com/android/forum/threads/imageview-bitmap-centered.43779/page-2#post-266279