
the first two fields are the SMS applications from android ICS, the third one is mine.
i made this way:
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent" >
<EditText
android:id="@+id/searchfield"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_toLeftOf="@+id/newItem"/>
<ImageButton
android:id="@+id/newItem"
android:layout_height="40dip"
android:layout_width="40dip"
android:layout_alignParentTop="@+id/searchfield"
android:adjustViewBounds="true"
android:contentDescription="Add"
android:layout_alignParentRight="true"/>
</RelativeLayout>
and the image is setted this way:
Drawable img = getResources().getDrawable( R.drawable.light_send );
newItem.setBackgroundDrawable(img);
i'm getting a very bad drawn arrow, and i'm having problems creating the blue background on down. Am i missing something?