我試圖在滾動視圖內創建一個achartengine圖表,但它不會顯示!它只是顯示一個黑屏,但不會崩潰或任何東西。事情是,如果我只是改變我的標籤到圖表顯示就好。在我的Java代碼中,我確實有renderer.setInScroll(true);用於圖表渲染器。這是我的XML的問題?LinearLayout achartengine圖表不顯示在滾動視圖
這裏是我的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>
(目前在滾動型的唯一事情就是我計劃加入更多的元素,使滾動必要的圖表,我只是希望它顯示第一)
此外,我試圖顯示它有和沒有包裹linearlayout,這是相同的結果。
但是後來我把這個scollview不滾動 – 2014-12-22 03:38:19