fix inconsistent avatar border radius

This commit is contained in:
sk
2023-08-25 17:19:29 +02:00
parent 71f4f089b6
commit cac030ffed
2 changed files with 3 additions and 2 deletions

View File

@@ -258,6 +258,8 @@ public class ProfileFragment extends LoaderFragment implements OnBackPressedList
list=content.findViewById(R.id.metadata); list=content.findViewById(R.id.metadata);
rolesView=content.findViewById(R.id.roles); rolesView=content.findViewById(R.id.roles);
avatarBorder.setOutlineProvider(OutlineProviders.roundedRect(26));
avatarBorder.setClipToOutline(true);
avatar.setOutlineProvider(OutlineProviders.roundedRect(24)); avatar.setOutlineProvider(OutlineProviders.roundedRect(24));
avatar.setClipToOutline(true); avatar.setClipToOutline(true);

View File

@@ -62,8 +62,7 @@
android:layout_alignParentStart="true" android:layout_alignParentStart="true"
android:layout_marginStart="12dp" android:layout_marginStart="12dp"
android:layout_marginTop="-44dp" android:layout_marginTop="-44dp"
android:background="@drawable/profile_ava_bg" android:background="?colorM3Surface">
android:outlineProvider="@null">
<ImageView <ImageView
android:id="@+id/avatar" android:id="@+id/avatar"