Android's RelativeLayout seems broken

前端 未结 2 471
灰色年华
灰色年华 2021-02-07 15:07

I\'m working on a layout where I use a ListView with RelativeLayout line items. The lineitems themselves are not displaying correctly.

The issue is that the txtVideoDur

相关标签:
2条回答
  • 2021-02-07 15:13

    This was answered in the comment of the accepted answer. Just to make it clear, this is the answer:

    Change

    li.inflate(R.layout.listitem_videolineitem, null);

    to

    li.inflate(R.layout.listitem_videolineitem, parent, false);

    0 讨论(0)
  • 2021-02-07 15:31

    How are you inflating your row views that are "buggy"? Can you provide a code snippet?

    Also, android:orientation="vertical" is not valid for RelativeLayout.

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