Marshmallow RelativeLayout behaves strange with alignBaseline

后端 未结 1 320
庸人自扰
庸人自扰 2021-01-02 05:47

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

1条回答
  •  孤城傲影
    2021-01-02 06:33

    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"

    Below API11 you can overwrite getBaseLine().

    Update to Android Support Library 23.2.1, this may solve your problem.

    0 讨论(0)
提交回复
热议问题