Search code examples
androidlistlayoutpadding

Android studio one item in list padding


I need to move my list down.

<RelativeLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content">
    android:layout_marginTop="50dp">

It applies margin to every element on the list. I only need it to be applied to first element of the list


Solution

  • Instead of adding margin to your list item, try adding margin to your rootview i.e listview or recyclerview whichever you are using