diff --git a/Houseclub/src/main/java/me/grishka/houseclub/fragments/InChannelFragment.java b/Houseclub/src/main/java/me/grishka/houseclub/fragments/InChannelFragment.java index f5d9d377..b7fee383 100644 --- a/Houseclub/src/main/java/me/grishka/houseclub/fragments/InChannelFragment.java +++ b/Houseclub/src/main/java/me/grishka/houseclub/fragments/InChannelFragment.java @@ -5,11 +5,13 @@ import android.content.DialogInterface; import android.content.res.Configuration; import android.graphics.Bitmap; +import android.graphics.Outline; import android.graphics.drawable.ColorDrawable; import android.graphics.drawable.Drawable; import android.os.Bundle; import android.view.View; import android.view.ViewGroup; +import android.view.ViewOutlineProvider; import android.widget.Button; import android.widget.ImageButton; import android.widget.ImageView; @@ -87,6 +89,19 @@ public int getSpanSize(int position){ return 12; } }); + list.setOutlineProvider(new ViewOutlineProvider() { + @Override + public void getOutline(View view, Outline outline) { + outline.setRoundRect( + 0, + 0, + view.getWidth(), + view.getHeight() + V.dp(36), + V.dp(36) + ); + } + }); + list.setClipToOutline(true); list.setLayoutManager(lm); list.setPadding(0, V.dp(16), 0, V.dp(16)); list.setClipToPadding(false); diff --git a/Houseclub/src/main/res/drawable/gray_rounded_background.xml b/Houseclub/src/main/res/drawable/gray_rounded_background.xml new file mode 100644 index 00000000..4f52b9d1 --- /dev/null +++ b/Houseclub/src/main/res/drawable/gray_rounded_background.xml @@ -0,0 +1,10 @@ + + + + + + + + + \ No newline at end of file diff --git a/Houseclub/src/main/res/layout/in_channel.xml b/Houseclub/src/main/res/layout/in_channel.xml index 6daac209..4516cc8b 100644 --- a/Houseclub/src/main/res/layout/in_channel.xml +++ b/Houseclub/src/main/res/layout/in_channel.xml @@ -1,63 +1,77 @@ - - - - - - - - - - - -