I'm trying to put a shadow (just a regular ImageView) right below the screen, this way when the user drag the view up, it will be able to see the shadow.
How should I setup the margin, etc.
My current setup is:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_gravity="top"
android:layout_marginBottom="-10dp"
android:minHeight="200dp" >
<EditText
android:id="@+id/edit_content"
android:layout_width="match_parent"
android:layout_height="fill_parent"
android:layout_gravity="top"
android:layout_marginBottom="10dp"
android:background="#00000000"
android:ems="10"
android:gravity="top"
android:inputType="textMultiLine"
android:lineSpacingExtra="3sp"
android:padding="20dp" />
<ImageView
android:layout_width="match_parent"
android:layout_height="10dp"
android:padding="10dp"
android:layout_alignParentBottom="true"
android:src="@drawable/some_shadow"/>
Doing it this way the ImageView is on the bottom of the screen, but what I need is to have it right below the screen by its height. (So it's top is aligned with screen's bottom).
Any advice?