On Android 6.0 Marshmallow the positioning of an EditText in relation to an ImageView in a RelativeLayout with the attributes baseline and layout_alignBaseline does not work
This is bug reported on https://code.google.com/p/android/issues/detail?id=73697&thanks=73697
Since API11 you can simply use android:baselineAlignBottom="true"
android:baselineAlignBottom="true"
Below API11 you can overwrite getBaseLine().
getBaseLine()
Update to Android Support Library 23.2.1, this may solve your problem.