Comments (8)
How about just modifying the barDist
float in PlayPauseDrawable
's Draw(Canvas canvas)
override?
I substracted one pixel and the gap is gone.
// The current distance between the two pause bars.
float barDist = Lerp(mPauseBarDistance, 0, progressAdjusted) - 1;
from adp-path-morph-play-to-pause.
Its problem with pause_bar_height from resources, on some devices with density not full number (like 1.5, 1.3 etc) show little line like this:
On devices with density like 2.0, 3.0 etc its ok.
Try combine with values: pause_bar_height, pause_bar_distance, pause_bar_width.
This values i tested and works ok:
<dimen name="pause_bar_width">8dp</dimen>
<dimen name="pause_bar_distance">6dp</dimen>
<dimen name="pause_bar_height">24dp</dimen>
from adp-path-morph-play-to-pause.
Is there any news on this? I made a standalone version which scales accordingly to the bounds and does not need any resources and sometimes I have this thin line as well:
https://github.com/Ph1b/MaterialAudiobookPlayer/blob/master/audiobook/src/main/java/de/ph1b/audiobook/uitools/PlayPauseDrawable.java
from adp-path-morph-play-to-pause.
I tried to change the pause_bar_height value but nothing is changing ...
I am using a Nexus 6 which should have also not full number ( I think 3.6 ).
@kenumir could you help me?
from adp-path-morph-play-to-pause.
Try change drawable size. Drawing animations depends from drawable size and dimens from XML.
from adp-path-morph-play-to-pause.
so any one found a solution , I have the same probleme tested on LG G2 4.4.2
from adp-path-morph-play-to-pause.
Same here on LG Nexus 5, thought was a shadow from the mPaint object but after clear seems that it wasn't.
Anyone did found out ?
from adp-path-morph-play-to-pause.
@oli-g-sk your solution worked perfectly! thanks!
from adp-path-morph-play-to-pause.
Related Issues (9)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adp-path-morph-play-to-pause.