According to below post
https://www.b4x.com/android/forum/threads/animations-for-activities.22770/#post-132044
I animate activity with 2 file
But i have one file example sequential.xml that i want to use it only
But when i use relate sub,it get error because i cannot send one argument to method
https://www.b4x.com/android/forum/threads/animations-for-activities.22770/#post-132044
I animate activity with 2 file
But i have one file example sequential.xml that i want to use it only
But when i use relate sub,it get error because i cannot send one argument to method
B4X:
Sub SetAnimation(InAnimation As String, OutAnimation As String)
Dim r As Reflector
Dim package As String
Dim In, out As Int
package = r.GetStaticField("anywheresoftware.b4a.BA", "packageName")
In = r.GetStaticField(package & ".R$anim", InAnimation)
out = r.GetStaticField(package & ".R$anim", OutAnimation)
r.Target = r.GetActivity
r.RunMethod4("overridePendingTransition", Array As Object(In, out), Array As String("java.lang.int", "java.lang.int"))
End Sub