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 setting / displaying in Fragment correctly #10

Open
casillic opened this issue Dec 4, 2013 · 1 comment
Open

Not setting / displaying in Fragment correctly #10

casillic opened this issue Dec 4, 2013 · 1 comment

Comments

@casillic
Copy link

casillic commented Dec 4, 2013

I can use circularSeekBar in a fragment which is displayed in via an activity fine. (The first fragment displayed.)
I have a problem when it is not the first fragment that is displayed. E.g.
If I had another Fragment displaying and I replace it with the one that contains the circularSeekBar. The circularSeekBar is display but not correctly. It appears it is not fully updated. I can touch it and then it corrects itself. What can I do to correct this. It appears it needs some type of refresh.

@casillic
Copy link
Author

casillic commented Dec 6, 2013

Okay, I've found the problem:
Change the onMeasure(int widthMeasureSpec, int heightMeasureSpec) as follows:

@OverRide
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec)
{
super.onMeasure(widthMeasureSpec, heightMeasureSpec);

    width = View.MeasureSpec.getSize(widthMeasureSpec);
    height = View.MeasureSpec.getSize(heightMeasureSpec);

neogucky pushed a commit to neogucky/AndroidCircularSeekBar that referenced this issue Nov 24, 2014
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

1 participant