Custom List in blackberry? - blackberry

How to create Custom Listfield in blackberry like android.
image some Text1
some Text2
one image and its right side some text and below it also a text.

Custom ListField row with images and text this clearly says how to do this ...

Related

Text selected without showing the pins

Is there a way to programmatically select a text without showing the pins at the beginning and at the end of the selected text?
Example:
Although you should be more precise, I presume you just want to highlight some parts of the text with a background color. Therefore you can use NSAttributedString.
You can look up how to create an attributed String here and how to use background color on it here.

Customizing ExpandableView in QML

I am using ExpandableView in QML for Blackberry development.
I want to customize the ExpandableView .
For ex :
1.In below image (Screen shot of ExpandableView in collapsed stage) you can see text 'more' is shown when we use ExpandableView QML. which is displayed during collapsed stage, I want to change this default text to some other text
2.collapse(^) and expand image I want to change .
Is there any way to achieve this ?
According to the documentation, https://developer.blackberry.com/native/reference/cascades/bb__cascades__expandableview.html , there are no properties or methods for setting the text or the arrow images. So, not possible.

Corona sdk - displaying image inside a text body

I am using the corona sdk to create a list of items in a tableview, once and item is selected I then display a bio for that item, and also want to display an image.
I can do this fine, but how can I right align the image in the body of text and get the text like flow round the image? I am using native.newText to display the text.
Similar to having a right aligned image inside a tag in HTML.
You cannot do that automatically, you need to detect the image dimensions (I suggest using myImage.contentBounds ) then place the text near it as you wish.
In a app of mine we display a picture, some basic data, and a detailed description, what I do is put the picture, then place the basic data to its right, and then place the detailed description below both.

Multiple strings in LabelField or RichTextField in blackberry

I want to add multiple strings in the LabelField or RichTextField in my application. So that i'm able to control the font size of both the strings and also i'm able to click on this row to navigate.
eg.
Title
date
You can use RichTextField to have multiple strings with multiple fonts. Check the RichTextField class in the APIs
http://www.blackberry.com/developers/docs/3.7api/net/rim/device/api/ui/component/RichTextField.html

button with icon and title

in my screen , i want to create/add button with an icon and under this icon i want to write the title of this button
like this picture
Create a custom Field.
For instance, here is an idea of what to do. Your bitmap could alreay contain a label, or to have a String label freely "assignable" to this button you can extend that example (by adding the code to draw the label in paint(Graphics graphics), check the API of Graphics - it is possible to write a text on it).

Resources