python748 / alternate-java-bridge-library

Automatically exported from code.google.com/p/alternate-java-bridge-library
Apache License 2.0
0 stars 0 forks source link

Allow the use of the method ListPicker.setLayout() WITHOUT needing to set a custom row layout #153

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
right now, if you want to use the ListPicker.setLayout option, and you don't 
specify a custom rowlayout, the app crashes.  I just want to use a standard 
listview in my custom layout, and it won't let me.

Original issue reported on code.google.com by bric...@gmail.com on 9 May 2013 at 5:25

GoogleCodeExporter commented 8 years ago
After reviewing the ListPickerActivity code, this appears to be a bug, not a 
feature enhancement, as the code looks to accept only setting a custom layout, 
but then crashes because there is no default row layout.

Ideally, from what I have seen, there are so many listview options, that 
basically whatever I want is there.  So the ability to customize the layout, 
but drop in a standard listview in that layout, would be very desireable.  For 
now, I don't see a workaround other than actually creating my custom row 
layout, which I will do, but I would love to see this problem fixed in the 
future. 

Thanks,

Original comment by bric...@gmail.com on 10 May 2013 at 1:31

GoogleCodeExporter commented 8 years ago
Actually, I can't work around this.  This is a bigger problem then I thought.  
As of now, the only way to use a custom listpicker, is to use the custom Row 
Layout options, which ONLY allows for 2 text fields and an image.  I need 2 
text fields and a checkbox (basically what you see in 
simple_list_item_multiple_choice or simple_list_item_activated_2.

As of now, I don't see a way to implement a workaround.

Original comment by bric...@gmail.com on 10 May 2013 at 1:57

GoogleCodeExporter commented 8 years ago
Some more info.  It looks like the problem lies in 2 places, the 
ListPickerActivity, which I can make adjustments too because at least for now, 
I HAVE to create my own class for this anyway, so i can make the adjustments.

The problem i can't help, is that both ListPickerActivity, and ListPicker, use 
the CustomListItem class, which is not flexible.  So for me to customize this, 
to use a checkbox instead of an image would mean also customizing ListPicker, 
and now I am into editing a lot of core files in the library.  this will get 
extremely messy.

Is there anyway you could at least adjust CustomListItem class to allow for use 
of a checkbox instead of an image file (ideally there should be MUCH more 
flexibility here, but that would at least give me something to work with for 
now)?

If CustomListItem can be made flexible, then i dont have to create my own class 
for CustomListItem and ListPicker, and ListPickerActivity, just 
ListPickerActivity.

Original comment by bric...@gmail.com on 10 May 2013 at 2:30

GoogleCodeExporter commented 8 years ago

Original comment by bric...@gmail.com on 12 Jul 2013 at 8:54