【发布时间】:2017-11-03 19:51:37
【问题描述】:
我正在尝试使用来自this link的示例
我对代码做了一些小的修改,我使用的是片段而不是示例代码中的活动。现在,我遇到了line_point_formatter_with_labels.xml 和line_point_formatter_with_labels_2.xml 配置文件的问题。示例代码无法从文件中读取值。它发生在以下行:
LineAndPointFormatter series1Format =
new LineAndPointFormatter(getActivity(), R.xml.line_point_formatter_with_labels);
我有这样的错误
java.lang.NumberFormatException:无效的 int:“#00AA00”。
知道为什么会这样吗?
谢谢。
【问题讨论】:
标签: java android xml android-fragments androidplot