mirror of
https://gitee.com/houstudio/Cdroid.git
synced 2024-11-30 03:08:12 +08:00
fix View's paddingXXX
This commit is contained in:
parent
6a253605fd
commit
8de9536abe
@ -263,8 +263,8 @@ View::View(Context*ctx,const AttributeSet&attrs){
|
||||
leftPaddingDefined = true;
|
||||
rightPaddingDefined = true;
|
||||
}else{
|
||||
int horz=attrs.getDimensionPixelSize("paddingHorizontal",0);
|
||||
int vert=attrs.getDimensionPixelSize("paddingVertical",0);
|
||||
int horz=attrs.getDimensionPixelSize("paddingHorizontal",-1);
|
||||
int vert=attrs.getDimensionPixelSize("paddingVertical",-1);
|
||||
if(horz>=0){
|
||||
leftPadding = rightPadding = horz;
|
||||
leftPaddingDefined = rightPaddingDefined = true;
|
||||
|
Loading…
Reference in New Issue
Block a user