2

如何为卡片对象设置颜色?

有一些关于哪些是支持 html 标签的信息,但是我不知道如何使用它。

 Card m_InstructionCard new Card(this);
 String texto = getString(R.string.instruction_card_text);
 m_InstructionCard.setText(Html.fromHtml(texto));       
 m_InstructionCard.setTimestamp(R.string.instruction_card_info);
 m_InstructionCard.addImage(R.drawable.second_capture);

函数 setText 不支持跨越。我应该使用风格吗?有一些例子是如何做到的?因为我不能使用带有资源 xml 的卡片,所以我不知道该怎么做。

4

1 回答 1

0

Card.setText方法目前仅支持 unstyled Strings。如果您想查看其他功能,请在我们的问题跟踪器上提交增强请求。

于 2013-12-18T14:51:48.413 回答