0
我在开始使用Androidplot时遇到问题。我基本上都是Java和Android应用程序开发的新手,所以如果这是一个愚蠢的问题,请耐心等待。Androidplot入门问题
在这一点上,我只是试图在布局上显示一个情节,但是当我添加一个Androidplot元素时,我的应用崩溃了。
这是我的特殊布局
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".PlotActivity" >
<com.androidplot.xy.XYPlot
android:id="@+id/XYPlot"
android:layout_width="100px"
android:layout_height="100px"
androidPlot.title="Data"
androidPlot.domainLabel="Domain"
androidPlot.rangeLabel="Range"
/>
</LinearLayout>
XML如果我拿出androidplot元素,应用程序切换到这种布局成功,但是当我添加的元素,它崩溃。关联的活动只将布局切换到这个布局,而不包含其他内容。
public class PlotActivity extends Activity {
protected void onCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
setContentView(R.layout.plot_layout);
}
任何想法可能是什么问题?
提前致谢!
查看崩溃报告的日志。了解如何阅读堆栈跟踪...如果您需要此帮助,则需要发布日志报告。 – Ifor