refactor: Increasing the corner radius of statuses and accounts in the notification section
This commit is contained in:
@@ -111,11 +111,11 @@ public class AccountCardStatusDisplayItem extends StatusDisplayItem{
|
|||||||
rejectWrap=findViewById(R.id.reject_btn_wrap);
|
rejectWrap=findViewById(R.id.reject_btn_wrap);
|
||||||
|
|
||||||
View card=findViewById(R.id.card);
|
View card=findViewById(R.id.card);
|
||||||
card.setOutlineProvider(OutlineProviders.roundedRect(6));
|
card.setOutlineProvider(OutlineProviders.roundedRect(12));
|
||||||
card.setClipToOutline(true);
|
card.setClipToOutline(true);
|
||||||
avatar.setOutlineProvider(OutlineProviders.roundedRect(12));
|
avatar.setOutlineProvider(OutlineProviders.roundedRect(12));
|
||||||
avatar.setClipToOutline(true);
|
avatar.setClipToOutline(true);
|
||||||
cover.setOutlineProvider(OutlineProviders.roundedRect(3));
|
cover.setOutlineProvider(OutlineProviders.roundedRect(12));
|
||||||
cover.setClipToOutline(true);
|
cover.setClipToOutline(true);
|
||||||
actionButton.setOnClickListener(this::onActionButtonClick);
|
actionButton.setOnClickListener(this::onActionButtonClick);
|
||||||
acceptButton.setOnClickListener(this::onFollowRequestButtonClick);
|
acceptButton.setOnClickListener(this::onFollowRequestButtonClick);
|
||||||
|
|||||||
@@ -67,13 +67,13 @@ public class InsetStatusItemDecoration extends RecyclerView.ItemDecoration{
|
|||||||
paint.setColor(bgColor);
|
paint.setColor(bgColor);
|
||||||
rect.left=V.dp(12);
|
rect.left=V.dp(12);
|
||||||
rect.right=list.getWidth()-V.dp(12);
|
rect.right=list.getWidth()-V.dp(12);
|
||||||
rect.inset(V.dp(4), V.dp(4));
|
rect.intersect(V.dp(4), V.dp(4), V.dp(4), V.dp(-4));
|
||||||
c.drawRoundRect(rect, V.dp(4), V.dp(4), paint);
|
c.drawRoundRect(rect, V.dp(12), V.dp(12), paint);
|
||||||
paint.setStyle(Paint.Style.STROKE);
|
paint.setStyle(Paint.Style.STROKE);
|
||||||
paint.setStrokeWidth(V.dp(1));
|
paint.setStrokeWidth(V.dp(1));
|
||||||
paint.setColor(borderColor);
|
paint.setColor(borderColor);
|
||||||
rect.inset(paint.getStrokeWidth()/2f, paint.getStrokeWidth()/2f);
|
rect.inset(paint.getStrokeWidth()/2f, paint.getStrokeWidth()/2f);
|
||||||
c.drawRoundRect(rect, V.dp(4), V.dp(4), paint);
|
c.drawRoundRect(rect, V.dp(12), V.dp(12), paint);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user