Giter VIP home page Giter VIP logo

Comments (7)

ShkurtiA avatar ShkurtiA commented on May 18, 2024

I have the same problem, I studied the ButtonRectangle.class but I could not find a way how to solve that. I think the problem consists with the fact that this class extends a class which extends RelativeLayout. I managed to set padding by removing from comment some lines that were commented in this class, which handle the padding that you set from XML.
My problem is that there is an unwanted padding top and bottom for my button. The only way that i could remove this padding was by changing my button height from wrap_content to a fixed dp height.
But this is a workaround that I need to fix in the right way.

from materialdesignlibrary.

navasmdc avatar navasmdc commented on May 18, 2024

Hi, sorry this is a pending bug to fix, I tried fix it, but I couldn't because set padding by XML don't working very well in the custom views, I'll try fix it.

from materialdesignlibrary.

mauriciogior avatar mauriciogior commented on May 18, 2024

Maybe materialdesign:paddingStart and materialdesign:paddingEnd?

from materialdesignlibrary.

navasmdc avatar navasmdc commented on May 18, 2024

But these attributes only work in version 11 or higher

from materialdesignlibrary.

Inoy1st avatar Inoy1st commented on May 18, 2024

Maybe, at this point of development, it will be enough to use margin and Height / Width for Button?

from materialdesignlibrary.

sharathp avatar sharathp commented on May 18, 2024

+1,

are there any workarounds for this padding bug? Thanks

from materialdesignlibrary.

ShkurtiA avatar ShkurtiA commented on May 18, 2024

check my answer, I hope it helps you :)

from materialdesignlibrary.

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.