We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
How can I set custom width and height for the PlayPauseView ?
The text was updated successfully, but these errors were encountered:
Change the dimens, and remove
@Override protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { super.onMeasure(widthMeasureSpec, heightMeasureSpec); final int size = Math.min(getMeasuredWidth(), getMeasuredHeight()); setMeasuredDimension(size, size); }
At least it fixed it on Lollipop. `
Sorry, something went wrong.
Simple Change this
to this
@Override protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { super.onMeasure(widthMeasureSpec, heightMeasureSpec); float pixels = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 56, getResources().getDisplayMetrics()); int size= Math.round(pixels); setMeasuredDimension(size,size); }
the the "56" is the amount of dp you want the view to have at height and width
No branches or pull requests
How can I set custom width and height for the PlayPauseView ?
The text was updated successfully, but these errors were encountered: