There is such a view

enter image description here

<ui.customWidgets.circleImageView.CircularImageView android:id="@+id/iv_home_screen_profile" android:layout_width="72dp" android:layout_height="72dp" android:layout_centerInParent="true" android:src="@drawable/ic_empty_prof_image" app:civ_border="true" app:civ_border_color="@android:color/white" app:civ_border_width="2dp" app:layout_constraintBottom_toTopOf="@+id/bv_home_screen" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="@+id/bv_home_screen"/> 

I need it to be shifted slightly up ...

Now it is clearly centered, and I need to move it up, so that most of it is above the line and smaller under it.

I try to set margins, but it does not give an effect when the top and bottom is fixed on the same point.

How to do it?

  • It’s impossible to see it without an additional view - YuriySPb
  • the bottom padding for a small image raises up, the top padding lowers it down, but this is more likely a crutch, besides the size of the widget changes - pavlofff

0