I've created a class which i use to draw some graphs, the class extends View, and it looks just like here How to draw a line in android.
Inside an activity, I show it with this
drawView = new DrawView(this);
drawView.setBackgroundColor(Color.WHITE);
setContentView(drawView);
But when I add the ScrollView
in the LinearLayout in xml of the activity, it doesn't work, I mean I can't scroll down, like there is no ScrollView
.
What may be the problem?
And this is the xml code
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/background_image"
android:orientation="vertical" >
</LinearLayout>
</ScrollView>