Tôi đang cố gắng tạo biểu đồ achartengine trong một scrollview nhưng nó sẽ không hiển thị! Nó chỉ cho thấy một màn hình màu đen, nhưng không sụp đổ hoặc bất cứ điều gì. Vấn đề là nếu tôi chỉ cần thay đổi thẻ của tôi để biểu đồ hiển thị tốt. Và trong mã Java của tôi, tôi có renderer.setInScroll (true); cho trình kết xuất biểu đồ. Đây có phải là vấn đề với xml của tôi không?Biểu đồ LinearLayout achartengine không hiển thị trong ScrollView
Đây là xml của tôi:
<?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>
(Hiện nay điều duy nhất trong scrollview là biểu đồ tôi có kế hoạch bổ sung thêm các yếu tố để làm cho di chuyển cần thiết, tôi chỉ muốn nó hiển thị đầu tiên)
Ngoài ra tôi đã cố gắng để hiển thị nó cả hai có và không có linearlayout gói và nó là kết quả tương tự.
Nhưng sau đó sau khi tôi đặt này scollview không di chuyển –