android - Android Studio 应用程序开发中 Anychart 代码中的“私人访问”错误
问题描述
我正在将最新的 Anychart 代码尝试到我的 Android Studio 应用程序中,所有 riskMap.* 函数都有错误,提示提示说这些函数具有私有访问权限,因此无法使用,如何处理?谢谢。
import com.anychart.anychart.AnyChart;
import com.anychart.anychart.AnyChartView;
import com.anychart.anychart.HeatMap;
import com.anychart.anychart.SelectionMode;
import com.anychart.anychart.SolidFill;
import com.example.anygraphtest.R;
import java.util.ArrayList;
public class HeatMapChartActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_chart_common);
AnyChartView anyChartView = findViewById(R.id.any_chart_view);
//anyChartView.setProgressBar(findViewById(R.id.progress_bar));
HeatMap riskMap = AnyChart.heatMap();
riskMap.stroke("1 #fff");
riskMap.hovered()
.stroke("6 #fff")
.fill(new SolidFill("#545f69", 1d))
.labels("{ fontColor: '#fff' }");
riskMap.interactivity().selectionMode(SelectionMode.NONE);
riskMap.title().enabled(true);
riskMap.title()
.text("Risk Matrix in Project Server")
.padding(0d, 0d, 20d, 0d);
riskMap.labels().enabled(true);
......
}
}
解决方案
推荐阅读
- mysql - 如何在 mySQL raws 的累积范围中查找错误?
- ruby-on-rails - ActiveRecord:按关联的 has_many 记录计数分组
- python - 在 Python 中,如何使用“strip() for line in file”格式从文件中读取前 x 行?
- javascript - 如何解决 Parceljs 中的别名?
- ruby-on-rails - 资源解释为样式表,但使用 MIME 类型 text/plain 传输,Rails 5
- javascript - 待办事项列表中的 localStorage 有问题
- javascript - 向上滑动,同时溢出可见和隐藏
- excel - 仅循环通过选定合并范围的第一个单元格
- spring - Spring安全登录失败错误重定向并且没有错误消息
- python - Python - 在一段时间后执行函数?