Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not Fit all screens #61

Open
MagedAlNaamani opened this issue Jul 29, 2018 · 2 comments
Open

not Fit all screens #61

MagedAlNaamani opened this issue Jul 29, 2018 · 2 comments

Comments

@MagedAlNaamani
Copy link

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
Copy link
Author

@LukeDeighton Can you help?

@chiragmalik943
Copy link

chiragmalik943 commented Jan 29, 2019

` 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants