Comments (7)
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.
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.
Maybe materialdesign:paddingStart
and materialdesign:paddingEnd
?
from materialdesignlibrary.
But these attributes only work in version 11 or higher
from materialdesignlibrary.
Maybe, at this point of development, it will be enough to use margin and Height / Width for Button?
from materialdesignlibrary.
+1,
are there any workarounds for this padding bug? Thanks
from materialdesignlibrary.
check my answer, I hope it helps you :)
from materialdesignlibrary.
Related Issues (20)
- Ripple Speed
- Failed to resolve: com.android.support:support-v4:22.0 HOT 1
- Failed to resolve: com.github.vajro:MaterialDesignLibrary:1.6 HOT 2
- Attribute "rippleColor" already defined with incompatible format. HOT 4
- Move invalidate() to onTouchEvent() from onDraw() in the Slider.java
- Text size on differen phones
- An error occurred when I used ButtonFloat HOT 3
- issue in package that can not b installed
- Cannot solve symbol @drawable/ic_action_new
- Reset ProgressbarCircularIndeterminate
- java.lang.NullPointerException ButtonFlat
- import com.gc.materialdesign.views.checkView; , setCheckedNoAnim(**) & setChecked() not working
- Error where variables are not public in com.gc.materialdesign.views.* and therefore cannot be accessed from outside the package HOT 1
- It's always show Gradle:Download https://jitpack.io/com/github/navasmdc/MaterialDesign-1.5.pom HOT 3
- AndroidX HOT 4
- Migrated to AndroidX, can't build anymore
- Import library as a module in my project HOT 1
- Xfnfnf
- Type in your language with Gboard HOT 2
- Hi HOT 2
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 materialdesignlibrary.