06-16-2014 10:24 AM
I wanted my drop down to have multiple lines in one option.
But that is not possible, so i implemented custom picker and put 2 label in the same,
so that i can split my text string and show it on them, but again the height of custom picker does not expand.
Is there any way to increase the height of one row of the custom picker?
Attached is the screenshot of my output.
here is what i do in createItem()
VisualNode* PickerItemProvider::createItem(Picker* pickerList, int columnIndex)
Container * returnItem = Container::create().background(Color::Yellow) ;
Label * lineOne = Label::create().objectName("desc");
Label * lineTwo = Label::create().objectName("asc");
Tried adjusting using preffered height/width and layouts.
Solved! Go to Solution.
06-16-2014 01:12 PM
06-17-2014 01:30 AM
How m i to go about that?
Drop downs didnt do the trick for me, thats why to customize my view (have 2 labels in one row) i went for custom pickers.
What next, f this is also failing to do the job??
06-17-2014 03:45 AM
Check the below link.
Create a sample project.
replace the downloaded unzipped assets folder with the sample one...
Test it and do customization accordingly
06-17-2014 05:22 AM
This does work.
The bottomline being DropDown and CustomPicker (with bb::cascades:ickerProvider) cannot be used for multiline Options, and we will have to implement multiline picker using a list view, image views etc., from scratch as suggested by the post above.