Hi Klaus
I am getting this error when I am using with edittext as follows
edt(i).Text = cursor2.GetString2(i)
GC.setEllipsize(edt(i),"MARQUEE")
Public Sub SetEllipsize(TextView As EditText, Mode As String)
Dim r As Reflector
r.Target = TextView
r.RunMethod2("setSingleLine", True, "java.lang.boolean")
r.RunMethod2("setEllipsize", Mode, "android.text.TextUtils$TruncateAt")
r.RunMethod2("setSelected", True, "java.lang.boolean")
End Sub
gc_setellipsize (B4A line: 936)
r.RunMethod2("setEllipsize", Mode, "android.text.
java.lang.IllegalArgumentException: EditText cannot use the ellipsize mode TextUtils.TruncateAt.MARQUEE
at android.widget.EditText.setEllipsize(EditText.java:114)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at anywheresoftware.b4a.agraham.reflection.Reflection.runmethod(Reflection.java:216)
at anywheresoftware.b4a.agraham.reflection.Reflection.RunMethod2(Reflection.java:817)
at om.MasterEntry.gc._setellipsize(gc.java:2055)
at om.MasterEntry.masterentry3._showentry(masterentry3.java:7312)
at om.MasterEntry.masterentry3._activity_resume(masterentry3.java:1491)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:169)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:153)
at om.MasterEntry.masterentry3.afterFirstLayout(masterentry3.java:108)
at om.MasterEntry.masterentry3.access$000(masterentry3.java:17)
at om.MasterEntry.masterentry3$WaitForLayout.run(masterentry3.java:80)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5021)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:827)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:643)
at dalvik.system.NativeStart.main(Native Method)
Pl. advise
regards