Codenameone 多列表未显示完整文本(代码名1)

Codenameone 多列表未显示完整文本(代码名1),codenameone,Codenameone,我正在使用一个多列表来显示来自web服务的一些结果,但是地址没有完全显示出来 请这个 第一个地址应该是“Jalan Gertak Merah,80000 Johor Bahru,Johor,Malaysia”,而不是“Jalan Gertak Merah,80” 我怎样才能纠正这个问题 这是我的代码: Style s = UIManager.getInstance().getComponentStyle("Button"); FontImage p = FontImage.createMater

我正在使用一个多列表来显示来自web服务的一些结果,但是地址没有完全显示出来

请这个

第一个地址应该是“Jalan Gertak Merah,80000 Johor Bahru,Johor,Malaysia”,而不是“Jalan Gertak Merah,80”

我怎样才能纠正这个问题

这是我的代码:

Style s = UIManager.getInstance().getComponentStyle("Button");
FontImage p = FontImage.createMaterial(FontImage.MATERIAL_PORTRAIT, s);
EncodedImage placeholder = EncodedImage.createFromImage(p.scaled(p.getWidth() * 3, p.getHeight() * 4), false);
f.setTitle("Tourist Attractions");
getattractive();
ArrayList arr = (ArrayList) response.get("results");
for (Object m : arr) {
    Map ma = (Map) m;
    address = (String) ma.get("formatted_address");
    name = (String) ma.get("name");
    icon = (String) ma.get("icon");
    data.add(createListEntry(name, address, icon));
}
DefaultListModel<Map<String, Object>> model = new DefaultListModel<>(data);
MultiList ml = new MultiList(model);
ml.getUnselectedButton().setIconName("icon_URLImage");
ml.getSelectedButton().setIconName("icon_URLImage");
ml.getUnselectedButton().setIcon(placeholder);
ml.getSelectedButton().setIcon(placeholder);
findContainer(f).add(BorderLayout.CENTER, ml);
c.addComponent(bn);
bn.addActionListener((ActionEvent evt) -> {
    System.exit(0);
});
findContainer(f).add(BorderLayout.SOUTH, c);
f.getComponentForm().revalidate();
Style s=UIManager.getInstance().getComponentStyle(“按钮”);
FontImage p=FontImage.createMaterial(FontImage.MATERIAL_肖像,s);
EncodedImage占位符=EncodedImage.createFromImage(p.scaled(p.getWidth()*3,p.getHeight()*4),false);
f、 片名(“旅游景点”);
获得吸引力();
ArrayList arr=(ArrayList)response.get(“结果”);
用于(对象m:arr){
Map ma=(Map)m;
地址=(字符串)ma.get(“格式化的_地址”);
name=(字符串)ma.get(“name”);
icon=(字符串)ma.get(“icon”);
添加(createListEntry(名称、地址、图标));
}
DefaultListModel=新的DefaultListModel(数据);
MultiList ml=新的MultiList(型号);
ml.getUnselectedButton().setIconName(“icon_URLImage”);
ml.getSelectedButton().setIconName(“图标图片”);
ml.getUnselectedButton().setIcon(占位符);
ml.getSelectedButton().setIcon(占位符);
findContainer(f).add(BorderLayout.CENTER,ml);
c、 添加组分(bn);
bn.addActionListener((ActionEvent evt)->{
系统出口(0);
});
findContainer(f).add(BorderLayout.SOUTH,c);
f、 getComponentForm().revalidate();

您希望如何更正此问题?增加屏幕尺寸?缩短文本?@ShaiAlmog感谢您的回复。我的意思是,有没有一种方法可以减小字体大小并使文本变为多行文字列表不支持这种情况?您希望如何纠正这种情况?增加屏幕尺寸?缩短文本?@ShaiAlmog感谢您的回复。我的意思是,有没有一种方法可以减小字体大小并使文本变为多行文字列表不支持这一点