WheelView
WheelView copied to clipboard
not Fit all screens
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?
@LukeDeighton Can you help?
` 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.