Giter VIP home page Giter VIP logo

Comments (8)

oli-g-sk avatar oli-g-sk commented on August 18, 2024 4

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.

kenumir avatar kenumir commented on August 18, 2024

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:
play_btn

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.

PaulWoitaschek avatar PaulWoitaschek commented on August 18, 2024

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.

pimato avatar pimato commented on August 18, 2024

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.

kenumir avatar kenumir commented on August 18, 2024

Try change drawable size. Drawing animations depends from drawable size and dimens from XML.

from adp-path-morph-play-to-pause.

diabloo avatar diabloo commented on August 18, 2024

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.

maxoumime avatar maxoumime commented on August 18, 2024

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.

Pranoy1c avatar Pranoy1c commented on August 18, 2024

@oli-g-sk your solution worked perfectly! thanks!

from adp-path-morph-play-to-pause.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.