Wish New Method for View

Star-Dust

Expert
Licensed User
Longtime User
Looking at this thread, I thought that you could add new methods to the views

Es:
B4X:
Label1.SetRotation (Angle As Float)
Label1.SetRotationX (Angle As Float)
Label1.SetRotationZ (Angle As Float)

'AND

EditText1.setPivotY(y As Float)
EditText1.setPivotX(x As Float)

EditText1.getPivotY as float
EditText1.getPivotX as float

'OTHER

Panel1.setScaleX (ScaleX as float)
Panel1.setScaleY (ScaleY as float)

ec...

Also i Wish

B4X:
Panel1.BackGroundColor (Color As Int, CornerRadius As Int, BorderWidth As Int, BorderColor As Int)
'To Replace this
'Dim cdb As ColorDrawable
'cdb.Initialize2(Colors.Black, 20dip, 1dip, Colors.White)
'Panel1.Background = cdb
 

Star-Dust

Expert
Licensed User
Longtime User
:( But Erel have add LayoutAnimation to View :confused:
 

Star-Dust

Expert
Licensed User
Longtime User
I meant:
B4X:
Label.SetLayoutAnimated
Label.SetTextColorAnimated
Label.SetTextColorAnimated
Label.SetTextSizeAnimated
Label.SetVisibleAnimated
Etc...

Before I use:
B4X:
Dim jo As JavaObject = view
jo.RunMethodJO("animate", Null).RunMethodJO("rotationBy", Array(Degree)).RunMethodJO("setDuration", Array(Duration)).RunMethodJO("start", Null)

I thought you could include other methods ... patience ... it was a wish :p:p:D:D
 

Emme Developer

Well-Known Member
Licensed User
Longtime User
In java is possible to extend a view, to implement new method, property and event. I don't know if @Erel can (of course, i mean if he wants :) ) implement a method to extend the view, but i think is very useful
 
Top