[英]how i can delete extras margin in CardView inside RecyclerView
我如何刪除此額外保證金,我嘗試使用此答案但不起作用。
我的代碼CardView
< LinearLayout xmlns: android = "http://schemas.android.com/apk/res/android"
xmlns: card_view = "http://schemas.android.com/apk/res-auto"
xmlns: tools = "http://schemas.android.com/tools"
android: layout_width = "wrap_content"
android: layout_height = "wrap_content" >
< android.support.v7.widget.CardView
android: id = "@+id/cartaExposicion"
android: layout_width = "wrap_content"
android: layout_height = "300dp"
card_view: cardPreventCornerOverlap = "false" >
< ImageView
android: id = "@+id/imgExposicion"
android: layout_width = "wrap_content"
android: layout_height = "300dp"
android: src = "@mipmap/makuma_0salas" / >
< /android.support.v7.widget.CardView> < /LinearLayout>
編輯
我需要在Cardview中刪除空格
嘗試為名片視圖內容填充提供負值
card_view:contentPadding="-5dp"
如果要不均勻地去除襯墊。 嘗試為contentPaddingLeft,contentPaddingRight,contentPaddingBottom和contentPaddingTop指定不同的值。
希望這對您有用。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.