溫馨提示×

android MaterialCardView的屬性有哪些

小樊
83
2024-08-11 18:57:36
欄目: 編程語言

  1. cardBackgroundColor:設(shè)置卡片的背景顏色。
  2. cardCornerRadius:設(shè)置卡片的圓角半徑。
  3. cardElevation:設(shè)置卡片的陰影大小。
  4. cardMaxElevation:設(shè)置卡片的最大陰影大小。
  5. cardPreventCornerOverlap:設(shè)置是否防止卡片的圓角重疊。
  6. cardUseCompatPadding:設(shè)置是否使用兼容性填充。
  7. contentPadding:設(shè)置內(nèi)容區(qū)域的內(nèi)邊距。
  8. contentPaddingBottom:設(shè)置內(nèi)容區(qū)域底部的內(nèi)邊距。
  9. contentPaddingTop:設(shè)置內(nèi)容區(qū)域頂部的內(nèi)邊距。
  10. contentPaddingLeft:設(shè)置內(nèi)容區(qū)域左側(cè)的內(nèi)邊距。
  11. contentPaddingRight:設(shè)置內(nèi)容區(qū)域右側(cè)的內(nèi)邊距。
  12. strokeColor:設(shè)置邊框的顏色。
  13. strokeWidth:設(shè)置邊框的寬度。
  14. preventCornerOverlap:設(shè)置是否防止內(nèi)容區(qū)域的圓角重疊。

0