Star-Dust Expert Licensed User Longtime User Sep 1, 2017 #1 Looking at this thread, I thought that you could add new methods to the views Es: Code: 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 Code: 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
Looking at this thread, I thought that you could add new methods to the views Es: Code: 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 Code: 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
klaus Expert Licensed User Longtime User Sep 1, 2017 #2 No you cannot add methods to an existing view. You must use JavaObject and run the methods like the routines in the link. It's not like in the CustomView class.
No you cannot add methods to an existing view. You must use JavaObject and run the methods like the routines in the link. It's not like in the CustomView class.
Star-Dust Expert Licensed User Longtime User Sep 1, 2017 #3 But Erel have add LayoutAnimation to View
Star-Dust Expert Licensed User Longtime User Sep 1, 2017 #5 I meant: Code: Label.SetLayoutAnimated Label.SetTextColorAnimated Label.SetTextColorAnimated Label.SetTextSizeAnimated Label.SetVisibleAnimated Etc... Before I use: Code: 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
I meant: Code: Label.SetLayoutAnimated Label.SetTextColorAnimated Label.SetTextColorAnimated Label.SetTextSizeAnimated Label.SetVisibleAnimated Etc... Before I use: Code: 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
Emme Developer Well-Known Member Licensed User Longtime User Sep 1, 2017 #6 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
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