I am trying to develop a block representation with inputs and outputs. The main ideia is:
- A user can add outputs/inputs
- A user can edit the ouputs/inputs added
So we have something like this:
I managed to build a dynamic canvas that changes when the user presses one of the buttons (the painted area grows).
The problem starts when the canvas is bigger than screen height. The result is something like this:
Notice that I have a scroll view. However it seems that scrollview puts everything in black. My xml file is something like this:
<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:fillViewport="true">
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<pt.mypackage.BlockCanvas
android:layout_width="fill_parent"
android:layout_height="wrap_content" />
<EditText
... />
<Button
... />
<Button
... />
</RelativeLayout>
</ScrollView>