Question

I have this custom class ...

public class DrawView extends ImageView

When I set the setImageBitmap(bitmap) inside of the DrawView constructor
The EditText ends up behind the ImageView and ImageView fill the screen.
how should I change my layout to place EditText under the ImageView

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
   android:orientation="vertical"
   android:layout_width="fill_parent"
   android:layout_height="fill_parent"
>
<com.hasse.move.DrawView
   android:id="@+id/mainView"
   android:layout_width="wrap_content"
   android:layout_height="wrap_content"
 />
<EditText android:id="@+id/addtext"
   android:layout_height="wrap_content"
   android:layout_width="fill_parent"
   android:layout_below="@+id/mainView"
   android:text="aaa"
/>
</RelativeLayout>

No correct solution

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top