Skip to content
New issue

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 to change padding of ButtonRectangle #45

Open
isaactalx opened this issue Nov 25, 2014 · 7 comments
Open

how to change padding of ButtonRectangle #45

isaactalx opened this issue Nov 25, 2014 · 7 comments

Comments

@isaactalx
Copy link

I want to change the radius and padding of the ButtonRectange in Xml but it doesn't work

@ShkurtiA
Copy link

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.

@navasmdc
Copy link
Owner

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.

@mauriciogior
Copy link

Maybe materialdesign:paddingStart and materialdesign:paddingEnd?

@navasmdc
Copy link
Owner

But these attributes only work in version 11 or higher

@Inoy1st
Copy link

Inoy1st commented Jan 16, 2015

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

@sharathp
Copy link

+1,

are there any workarounds for this padding bug? Thanks

@ShkurtiA
Copy link

check my answer, I hope it helps you :)

xcelder added a commit that referenced this issue Nov 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants