AndroidCharts icon indicating copy to clipboard operation
AndroidCharts copied to clipboard

java.lang.ClassCastException: android.view.View cannot be cast to im.dacer.androidcharts.LineView

Open CXeon opened this issue 9 years ago • 1 comments

I use the LineView like this.

<HorizontalScrollView android:layout_width="match_parent" android:layout_height="0dp" android:layout_weight="0.7" android:id="@+id/horizontalScrollView" android:layout_alignParentRight="true"> <View android:layout_width="match_parent" android:layout_height="match_parent" class="im.dacer.androidcharts.LineView" android:id="@+id/line_temp"/> </HorizontalScrollView>

and in the MainActivity. lineTemp = (LineView) rootView.findViewById(R.id.line_temp);

but, suffer the issue.Would you help me?

CXeon avatar Sep 05 '16 09:09 CXeon

Use <....LineView instead of <View in xml an delete class="......"

francisnnumbi avatar Jun 06 '18 00:06 francisnnumbi