I am trying to create an achartengine diagram in scrollview, but it will not display! It just shows a black screen, but not a glitch or something else. The fact is that if I just changed my tag to graphic displays, just fine. And in my Java code, I have renderer.setInScroll (true); for charting. Is this a problem with my xml?
Here is my xml:
<?xml version="1.0" encoding="utf-8"?> <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > <LinearLayout android:layout_height="wrap_content" android:layout_width="fill_parent" android:orientation="vertical" > <LinearLayout android:id="@+id/trendchart" android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="vertical" /> </LinearLayout> </ScrollView>
(Currently, the only thing in ScrollView is a chart in which I plan to add more elements to make scrolling necessary, I just want it to be displayed first)
I also tried to display it with or without linearlayout wrapping, and this is the same result.
android xml scrollview android-linearlayout achartengine
Vinc
source share