منتها موقع کلیک روی ایمیج ویو و باتن ها و هر چیز دیگه ای ارور داده میشه
سورس خود استاد امین شاهدی هم دارم تست میکنم داستانش چیه ؟
اسکرین پایین گذاشتم
و اینم کد آقای شاهدی
#Region Activity Attributes
#FullScreen: False
#IncludeTitle: True
#End Region
#AdditionalRes: ..\AriaListViewResources
Sub Process_Globals
End Sub
Sub Globals
Dim Alistview As AriaListView
Dim Aadapter As AriaAdapterWithCheckBox
Dim Aadapterimage As AriaAdapterWithImage
Dim Aadaptersimple As AriaAdapterWithImage
Dim l1,l2,l3 As List
Private Button1 As Button
Private Button2 As Button
Private Button3 As Button
Private Panel1 As Panel
Dim selected As Int
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("layout1")
Alistview.Initialize("")
Panel1.AddView(Alistview,0,0,100%x,100%y)
Panel1.Color=Colors.DarkGray
l1.Initialize
l2.Initialize
l3.Initialize
End Sub
Sub listclear
l1.Clear
l2.Clear
l3.Clear
End Sub
Sub list_select (position As Int)
Activity.Title="ListItem Clicked at #"&position
If selected=2 Then
Activity.Title="ListItem Clicked at #"&position
l1.Set(position,"این آیتم کلیک شد")
Aadapter.NotifyDataSetChanged
End If
End Sub
Sub list_imagelongclicked (position As Int)
ToastMessageShow("Long "&position,False)
End Sub
Sub list_longselect (position As Int)
ToastMessageShow("Long "&position,False)
End Sub
Sub list_imageclicked (position As Int)
Activity.Title="Image Clicked at #"&position
End Sub
Sub list_checkchange (position As Int,Checked As Boolean)
Activity.Title="Checkbox Changed to "&Checked&" at #"&position
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub Button3_Click
selected=3
listclear
For i=0 To 10000
l1.Add("لیست ساده")
l2.Add("Position #" & i)
Next
Aadaptersimple.Initialize("simple_layout",l1,l2,Null).ToListView(Alistview)
End Sub
Sub Button2_Click
selected=2
listclear
For i=0 To 1000
l1.Add("لیست همراه با چک باکس")
l2.Add("Position #" & i &CRLF&"لیست های همراه با چک باکس ، قابلیت کلیک روی آیتم و چک باکس به صورت جدا و ....")
l3.Add("false")
Next
Aadapter.Initialize("layout_with_checkbox",l1,l2,l3).ToListView(Alistview)
End Sub
Sub Button1_Click
selected=1
listclear
For i=0 To 1000
l1.Add("آریا لیست ویو - لیست همراه با عکس ")
l2.Add("شماره :" & i &CRLF&"لیست همراه با عکس همرا با قایلیت کلیک شدن عکس مناسب لیست های اصلی برنامه و همچنین استفاده به عنوان لیست علاقه مندی و یا لیست نمایش متن های مثل لیست پیامک ها همراه با کلیک روی عکس برای اشتراک گذاری و کلی کار های دیگه")
l3.Add("a1.png")
Next
Aadapterimage.Initialize("layout_image_right",l1,l2,l3).ToListView(Alistview)
End Sub
و اما اینم لاگ بیسیک
** Service (starter) Create **
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
java.lang.Exception: Sub list_select signature does not match expected signature.
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:171)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:153)
at aria.gp.listview.array.adapter.CustomArrayAdapter$3.onClick(CustomArrayAdapter.java:151)
at android.view.View.performClick(View.java:3480)
at android.view.View$PerformClick.run(View.java:13983)
at android.os.Handler.handleCallback(Handler.java:605)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4340)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
at dalvik.system.NativeStart.main(Native Method)
java.lang.Exception: Sub list_select signature does not match expected signature.
java.lang.Exception: Sub list_select signature does not match expected signature.
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:171)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:153)
at aria.gp.listview.array.adapter.CustomArrayAdapter$3.onClick(CustomArrayAdapter.java:151)
at android.view.View.performClick(View.java:3480)
at android.view.View$PerformClick.run(View.java:13983)
at android.os.Handler.handleCallback(Handler.java:605)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4340)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
at dalvik.system.NativeStart.main(Native Method)
java.lang.Exception: Sub list_select signature does not match expected signature.
java.lang.Exception: Sub list_select signature does not match expected signature.
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:171)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:153)
at aria.gp.listview.array.adapter.CustomArrayAdapter$3.onClick(CustomArrayAdapter.java:151)
at android.view.View.performClick(View.java:3480)
at android.view.View$PerformClick.run(View.java:13983)
at android.os.Handler.handleCallback(Handler.java:605)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4340)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
at dalvik.system.NativeStart.main(Native Method)
java.lang.Exception: Sub list_select signature does not match expected signature.
java.lang.Exception: Sub list_checkchange signature does not match expected signature.
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:171)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:153)
at aria.gp.listview.array.adapter.CustomArrayAdapterWithCheckBox$1.onCheckedChanged(CustomArrayAdapterWithCheckBox.java:113)
at android.widget.CompoundButton.setChecked(CompoundButton.java:125)
at android.widget.CompoundButton.toggle(CompoundButton.java:87)
at android.widget.CompoundButton.performClick(CompoundButton.java:99)
at android.view.View$PerformClick.run(View.java:13983)
at android.os.Handler.handleCallback(Handler.java:605)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4340)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
at dalvik.system.NativeStart.main(Native Method)
java.lang.Exception: Sub list_checkchange signature does not match expected signature.
java.lang.Exception: Sub list_select signature does not match expected signature.
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:171)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:153)
at aria.gp.listview.array.adapter.CustomArrayAdapter$3.onClick(CustomArrayAdapter.java:151)
at android.view.View.performClick(View.java:3480)
at android.view.View$PerformClick.run(View.java:13983)
at android.os.Handler.handleCallback(Handler.java:605)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4340)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
at dalvik.system.NativeStart.main(Native Method)
java.lang.Exception: Sub list_select signature does not match expected signature.
سوال
محمدی 95
سلام بزرگواران
من از آریالیست ویو ورژن 8.2 استفاده میکنم
لایوت قشنگ لود میشه و حتی عگس ها
منتها موقع کلیک روی ایمیج ویو و باتن ها و هر چیز دیگه ای ارور داده میشه
سورس خود استاد امین شاهدی هم دارم تست میکنم داستانش چیه ؟
اسکرین پایین گذاشتم
و اینم کد آقای شاهدی
#Region Activity Attributes #FullScreen: False #IncludeTitle: True #End Region #AdditionalRes: ..\AriaListViewResources Sub Process_Globals End Sub Sub Globals Dim Alistview As AriaListView Dim Aadapter As AriaAdapterWithCheckBox Dim Aadapterimage As AriaAdapterWithImage Dim Aadaptersimple As AriaAdapterWithImage Dim l1,l2,l3 As List Private Button1 As Button Private Button2 As Button Private Button3 As Button Private Panel1 As Panel Dim selected As Int End Sub Sub Activity_Create(FirstTime As Boolean) Activity.LoadLayout("layout1") Alistview.Initialize("") Panel1.AddView(Alistview,0,0,100%x,100%y) Panel1.Color=Colors.DarkGray l1.Initialize l2.Initialize l3.Initialize End Sub Sub listclear l1.Clear l2.Clear l3.Clear End Sub Sub list_select (position As Int) Activity.Title="ListItem Clicked at #"&position If selected=2 Then Activity.Title="ListItem Clicked at #"&position l1.Set(position,"این آیتم کلیک شد") Aadapter.NotifyDataSetChanged End If End Sub Sub list_imagelongclicked (position As Int) ToastMessageShow("Long "&position,False) End Sub Sub list_longselect (position As Int) ToastMessageShow("Long "&position,False) End Sub Sub list_imageclicked (position As Int) Activity.Title="Image Clicked at #"&position End Sub Sub list_checkchange (position As Int,Checked As Boolean) Activity.Title="Checkbox Changed to "&Checked&" at #"&position End Sub Sub Activity_Resume End Sub Sub Activity_Pause (UserClosed As Boolean) End Sub Sub Button3_Click selected=3 listclear For i=0 To 10000 l1.Add("لیست ساده") l2.Add("Position #" & i) Next Aadaptersimple.Initialize("simple_layout",l1,l2,Null).ToListView(Alistview) End Sub Sub Button2_Click selected=2 listclear For i=0 To 1000 l1.Add("لیست همراه با چک باکس") l2.Add("Position #" & i &CRLF&"لیست های همراه با چک باکس ، قابلیت کلیک روی آیتم و چک باکس به صورت جدا و ....") l3.Add("false") Next Aadapter.Initialize("layout_with_checkbox",l1,l2,l3).ToListView(Alistview) End Sub Sub Button1_Click selected=1 listclear For i=0 To 1000 l1.Add("آریا لیست ویو - لیست همراه با عکس ") l2.Add("شماره :" & i &CRLF&"لیست همراه با عکس همرا با قایلیت کلیک شدن عکس مناسب لیست های اصلی برنامه و همچنین استفاده به عنوان لیست علاقه مندی و یا لیست نمایش متن های مثل لیست پیامک ها همراه با کلیک روی عکس برای اشتراک گذاری و کلی کار های دیگه") l3.Add("a1.png") Next Aadapterimage.Initialize("layout_image_right",l1,l2,l3).ToListView(Alistview) End Sub
و اما اینم لاگ بیسیک
** Service (starter) Create ** ** Service (starter) Start ** ** Activity (main) Create, isFirst = true ** ** Activity (main) Resume ** java.lang.Exception: Sub list_select signature does not match expected signature. at anywheresoftware.b4a.BA.raiseEvent2(BA.java:171) at anywheresoftware.b4a.BA.raiseEvent(BA.java:153) at aria.gp.listview.array.adapter.CustomArrayAdapter$3.onClick(CustomArrayAdapter.java:151) at android.view.View.performClick(View.java:3480) at android.view.View$PerformClick.run(View.java:13983) at android.os.Handler.handleCallback(Handler.java:605) at android.os.Handler.dispatchMessage(Handler.java:92) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:4340) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551) at dalvik.system.NativeStart.main(Native Method) java.lang.Exception: Sub list_select signature does not match expected signature. java.lang.Exception: Sub list_select signature does not match expected signature. at anywheresoftware.b4a.BA.raiseEvent2(BA.java:171) at anywheresoftware.b4a.BA.raiseEvent(BA.java:153) at aria.gp.listview.array.adapter.CustomArrayAdapter$3.onClick(CustomArrayAdapter.java:151) at android.view.View.performClick(View.java:3480) at android.view.View$PerformClick.run(View.java:13983) at android.os.Handler.handleCallback(Handler.java:605) at android.os.Handler.dispatchMessage(Handler.java:92) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:4340) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551) at dalvik.system.NativeStart.main(Native Method) java.lang.Exception: Sub list_select signature does not match expected signature. java.lang.Exception: Sub list_select signature does not match expected signature. at anywheresoftware.b4a.BA.raiseEvent2(BA.java:171) at anywheresoftware.b4a.BA.raiseEvent(BA.java:153) at aria.gp.listview.array.adapter.CustomArrayAdapter$3.onClick(CustomArrayAdapter.java:151) at android.view.View.performClick(View.java:3480) at android.view.View$PerformClick.run(View.java:13983) at android.os.Handler.handleCallback(Handler.java:605) at android.os.Handler.dispatchMessage(Handler.java:92) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:4340) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551) at dalvik.system.NativeStart.main(Native Method) java.lang.Exception: Sub list_select signature does not match expected signature. java.lang.Exception: Sub list_checkchange signature does not match expected signature. at anywheresoftware.b4a.BA.raiseEvent2(BA.java:171) at anywheresoftware.b4a.BA.raiseEvent(BA.java:153) at aria.gp.listview.array.adapter.CustomArrayAdapterWithCheckBox$1.onCheckedChanged(CustomArrayAdapterWithCheckBox.java:113) at android.widget.CompoundButton.setChecked(CompoundButton.java:125) at android.widget.CompoundButton.toggle(CompoundButton.java:87) at android.widget.CompoundButton.performClick(CompoundButton.java:99) at android.view.View$PerformClick.run(View.java:13983) at android.os.Handler.handleCallback(Handler.java:605) at android.os.Handler.dispatchMessage(Handler.java:92) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:4340) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551) at dalvik.system.NativeStart.main(Native Method) java.lang.Exception: Sub list_checkchange signature does not match expected signature. java.lang.Exception: Sub list_select signature does not match expected signature. at anywheresoftware.b4a.BA.raiseEvent2(BA.java:171) at anywheresoftware.b4a.BA.raiseEvent(BA.java:153) at aria.gp.listview.array.adapter.CustomArrayAdapter$3.onClick(CustomArrayAdapter.java:151) at android.view.View.performClick(View.java:3480) at android.view.View$PerformClick.run(View.java:13983) at android.os.Handler.handleCallback(Handler.java:605) at android.os.Handler.dispatchMessage(Handler.java:92) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:4340) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551) at dalvik.system.NativeStart.main(Native Method) java.lang.Exception: Sub list_select signature does not match expected signature.
اینم اسکرین شات ها
لینک ارسال
به اشتراک گذاری در سایت های دیگر
2 پاسخ به این سوال تاکنون داده شده است
ارسالهای توصیه شده
بایگانی شده
این موضوع بایگانی و قفل شده و دیگر امکان ارسال پاسخ نیست.