fix inconsistent avatar border radius
This commit is contained in:
@@ -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);
|
||||||
|
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user