- 首頁 >
- 問答 >
-
編程語言 >
- android MaterialCardView的屬性有哪些
android MaterialCardView的屬性有哪些
小樊
83
2024-08-11 18:57:36
- cardBackgroundColor:設(shè)置卡片的背景顏色。
- cardCornerRadius:設(shè)置卡片的圓角半徑。
- cardElevation:設(shè)置卡片的陰影大小。
- cardMaxElevation:設(shè)置卡片的最大陰影大小。
- cardPreventCornerOverlap:設(shè)置是否防止卡片的圓角重疊。
- cardUseCompatPadding:設(shè)置是否使用兼容性填充。
- contentPadding:設(shè)置內(nèi)容區(qū)域的內(nèi)邊距。
- contentPaddingBottom:設(shè)置內(nèi)容區(qū)域底部的內(nèi)邊距。
- contentPaddingTop:設(shè)置內(nèi)容區(qū)域頂部的內(nèi)邊距。
- contentPaddingLeft:設(shè)置內(nèi)容區(qū)域左側(cè)的內(nèi)邊距。
- contentPaddingRight:設(shè)置內(nèi)容區(qū)域右側(cè)的內(nèi)邊距。
- strokeColor:設(shè)置邊框的顏色。
- strokeWidth:設(shè)置邊框的寬度。
- preventCornerOverlap:設(shè)置是否防止內(nèi)容區(qū)域的圓角重疊。