美文网首页
CardView 去除内边距

CardView 去除内边距

作者: 河马过河 | 来源:发表于2024-07-01 16:16 被阅读0次
 <androidx.cardview.widget.CardView
        android:id="@+id/cv_media_icon"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginStart="@dimen/dp_18"
        android:layout_marginTop="@dimen/dp_16"
        app:cardCornerRadius="@dimen/dp_4"
        app:cardPreventCornerOverlap="true"
        app:cardUseCompatPadding="false"
        app:cardElevation="0dp"
        app:cardBackgroundColor="@color/transparent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent">

        <androidx.appcompat.widget.AppCompatImageView
            android:id="@+id/iv_media_icon"
            android:layout_width="@dimen/dp_42"
            android:layout_height="@dimen/dp_42"
            android:scaleType="centerCrop"
            tools:src="@android:drawable/btn_dialog" />
    </androidx.cardview.widget.CardView>

相关文章

  • 去除TextView内边距

    android:includeFontPadding="false"如下:

  • UITextView去除内边距

    去除 textView 左右边距: self.textView.textContainer.lineFragmen...

  • 去除TextView默认内边距

    今天遇到一个问题,由于TextView文本框较小,文本框内字体比较大,导致设置字体区中没有达到想要的效果,距下边比...

  • iOS 去除 UITextView 内边距

    去除 textView 左右边距: 去除 textView 上下边距:

  • Swift 去除 UITextView 内边距

  • 07-client属性

    clientWidth = 宽度 + 内边距offsetWidth = 宽度 + 内边距 + 边框 clientH...

  • CSS

    padding 顺时针方向 上内边距是 10px 右内边距是 5px 下内边距是 15px 左内边距是 20px

  • 内边距

    什么是内边距; 是指容器中的内容和容器上右下左之间的距离 什么是外边距; 只指标签和标签之间的距离 外边距在水平方...

  • 内边距

    内边距 1.内边距为边框和内容之间的内边距 2.格式 padding-top padding-right padd...

  • UITextView篇

    去除 UITextView 内边距 编辑时文本间隙 键盘添加完成按钮及事件 swift 使用 oc.h文件 .m文件

网友评论

      本文标题:CardView 去除内边距

      本文链接:https://www.haomeiwen.com/subject/mobmcjtx.html