Coder Social home page Coder Social logo

Comments (5)

cortinico avatar cortinico commented on May 18, 2024 4

Hey @tsaulic @druby-luke
So you can tweak the icon margin just by providing an override to the default_icon_margin resource in your app (the default is 16dp).

So just add this in your dimens.xml:

<resources>
    <dimen name="default_icon_margin">0dp</dimen>
</resources>

To have something like:
Screenshot 2019-04-29 at 15 26 51

And this:

<resources>
    <dimen name="default_icon_margin">100dp</dimen>
</resources>

To have something like:
Screenshot 2019-04-29 at 15 25 42

This should be enough to solve your issue.
If you need more fine grain control we should probably add an extra attribute to control it, but I'd love to do it only if there are more requests for this specific feature.

from slidetoact.

tsaulic avatar tsaulic commented on May 18, 2024 1

I would also love this feature.

Hey @tsaulic can you be a bit more specific?
What exactly are you trying to achieve?

Oh, just wanted to be able to specify the size of the icon when I use for example
app:area_margin="0"
and my app:slider_height="" is anything under 42dp, the icon often is almost invisible, like in the screenshot provided by @druby-luke in an above post.

I got around it by providing app:slider_height="42dp" which is the minimum size for it to look good, but it would be ideal if I could, for example, set it to 24dp and tweak the scaling of icon/container via a different property.

Thanks for responding!

from slidetoact.

cortinico avatar cortinico commented on May 18, 2024

I would like a attribute to manually set the DP for the icon arrow.
this would be awesome for lower value slider_height like 40dp.

@druby-luke do you have a screenshot for what you would love to achieve?
So far as I understand, you would love to have the arrow even if the slider is small right?

from slidetoact.

tsaulic avatar tsaulic commented on May 18, 2024

I would also love this feature.

from slidetoact.

cortinico avatar cortinico commented on May 18, 2024

I would also love this feature.

Hey @tsaulic can you be a bit more specific?
What exactly are you trying to achieve?

from slidetoact.

Related Issues (20)

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.