Commit 4e0cebc
张家伟
fix:[修复bug:设置上下左右边框时,会有多余的空格]
描述:{
分析:在setLayerInset时,如果是需要显示的边框,也设置了指定的宽度,导致那个方位多了一个width的空白
方案:在setLayerInset时,如果是需要显示的边框,应该设置为0
}1 parent 391a1e6 commit 4e0cebc
File tree
2 files changed
+8
-8
lines changed- libraryx/src/main/java/com/noober/background
- library/src/main/java/com/noober/background
2 files changed
+8
-8
lines changedLines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
293 | 293 | | |
294 | 294 | | |
295 | 295 | | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
| |||
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
| |||
0 commit comments