android 圆角方法之一

playerView.setOutlineProvider(new ViewOutlineProvider() {
            @Override
            public void getOutline(View view, Outline outline) {
                outline.setRoundRect(0, 0, view.getWidth(), view.getHeight(), 15);
            }
        });

        playerView.setClipToOutline(true);

 

posted on 2023-11-16 22:44  wp7ers  阅读(38)  评论(0编辑  收藏  举报