Android Question Help troubleshooting listview example

Beja

Expert
Licensed User
Longtime User
Hello all!
I want to reproduce a problem that I couldn't solve or explain.
Since yesterday I am not able to understand why this problem doesn't go away.
It is about the customlistview example by Erel, that I modified but had some runtime problems after the modification.
the example is published here:
http://www.b4x.com/android/forum/th...xible-list-based-on-scrollview.19567/#content
Any volunteer need to be working on Windows 8.1 and b4a 3.82
The result is shown on the attached secreenshot that was posted with the example.

What I need you guys to help me with is:
1- The example has two lsv1 and lsv3.. please remove lsv1
2- remove any reference to the lsv1 and to the buttons.
3- make sure there is no view in the bal file (abstract designer) that's referenced anywhere in the code window.
3- delete the bal file
4- uncomment the Activity.Loadlayout line from activity create.

Compile and run the App.

My results are:
It compiled and run without any problem, but when worked on it:
1- I Checked one checkview.. the view was checked (True)
2- but immediately thereafter, a message comes up saying layout file should be loaded.
3- I can check as many views as I wish, but each time this annoying message comes up.
4- the message in (3) above replaced the normal msgbox that supposed to pop-up each time
and say "Item..... is checked" or something like that.
Note in the attached image the check boxes that I checked are showing checked.

Thank you in advance!
 

Attachments

  • error2.jpg
    79.8 KB · Views: 168
Last edited:

Beja

Expert
Licensed User
Longtime User
Please see the picture above
The runtime is asking me to first initialize a view called "View"! but there is no view in the project with the name "View"
 
Upvote 0

mangojack

Expert
Licensed User
Longtime User
Hi Beja .. Running win7 . Followed your instructions, removed all refs to "Clv1" Compiled and ran example .. no problems here ..
are you trying to say you believe this problem only shows in Win 8.1 ?

I think the message is saying .. an object has not been initialized of type 'View'
 
Upvote 0

Beja

Expert
Licensed User
Longtime User
Hi mangojack and thanks for taking the time to test this.

** an object has not been initialized of type 'View'**

That's correct mangojack.. I am puzzled and don't know the source of this error message.
I (solved) the problem by hiding clv1 (visible = false) but this is not a good practice.
 
Upvote 0

mangojack

Expert
Licensed User
Longtime User
I (solved) the problem by hiding clv1 (visible = false) but this is not a good practice.

No it is not .... do you want my copy of CLV with references to Clv1 and layout removed for comparison ..
You must of tweaked / added something else surely ?
 
Upvote 0

Beja

Expert
Licensed User
Longtime User
sure.. thanks for sharing.. I hope will work for me in Win 8.1, so let's try it.
Thanks in advance
 
Upvote 0

mangojack

Expert
Licensed User
Longtime User
Beja .. Klaus has solved your problem. I missed the bit about also removing the buttons. Having done so would have thrown the same error here,
as the Checkbox now becomes the second view in the Panel ... view(1)
 
Upvote 0

Beja

Expert
Licensed User
Longtime User
Yes mangojack, thanks to both of you. I thought it was a bigger issue and that's why I opened a new thread.. it was my fault.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…