Я создаю ImageItem в промежуточной форме, однако, когда текст переносится на следующую строку, изображение смещается вверх и текст появляется в новой строке.Любые идеи, как этого избежать?
Пример:
*Image*
this is a a test, hello
world, this is a test
Мне нужно, чтобы это было что-то вроде этого:
*Image* this is a test,
hello word, this is a test
или
this is a test, hello
*Image* world, this is a test
hello world
Мой метод:
protected Item createItemWithIcon(String str, Image icon)
{
Item item = null;
item = new ImageItem(str, icon, Item.LAYOUT_VCENTER, "", Item.HYPERLINK);
form.append(item);
return item;
}