WheelView icon indicating copy to clipboard operation
WheelView copied to clipboard

not Fit all screens

Open MagedAlNaamani opened this issue 6 years ago • 2 comments

Hello,

I try to make the wheelView fit any screen in android but I fail any help?

The problem I face there is a fix radius for the circle and I try to do same as BBC iPlayer Radio. Is there any work around solutions?

MagedAlNaamani avatar Jul 29 '18 04:07 MagedAlNaamani

@LukeDeighton Can you help?

MagedAlNaamani avatar Jul 31 '18 15:07 MagedAlNaamani

` DisplayMetrics displayMetrics = new DisplayMetrics(); getWindowManager().getDefaultDisplay().getMetrics(displayMetrics); int width = displayMetrics.widthPixels;

    wheelView.setLayoutParams(new RelativeLayout.LayoutParams(width,width));
    wheelView.setWheelRadius(width/2);
    wheelView.requestLayout();`

Try this, it will take the width of the screen and set the width of layout equal to that, and radius of the wheel will be half of the width of the screen. I know it's kind too late.

chiragmalik943 avatar Jan 29 '19 07:01 chiragmalik943