Home > Mobile >  Android studio one item in list padding
Android studio one item in list padding

Time:11-03

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

CodePudding user response:

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

  • Related