android:layout_alignParentBottom is ignored when used without explicit layout height as a row in ListView

前端 未结 4 1492
灰色年华
灰色年华 2021-02-13 15:40

When I use a RelativeLayout with either fill_parent or wrap_content as height and an element which specifies: android:layout_alignPa

4条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-13 16:17

    When you inflate the layout, use inflate(R.layout.whatever, parent, false), where parent is the ListView. If you don't do that (e.g., you pass null for the parent), RelativeLayout gets strange in list rows.

提交回复
热议问题