当前位置:网站首页>Cardview usage and properties
Cardview usage and properties
2022-06-10 13:30:00 【yechaoa】
Very simple to use , Not many attributes , There are few commonly used , It comes with shadows and rounded corners
compile 'com.android.support:cardview-v7:25.3.1'<android.support.v7.widget.CardView
android:id="@+id/cardView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="10dp"
android:foreground="?android:attr/selectableItemBackground"
app:cardBackgroundColor="#1296db"
app:cardCornerRadius="10dp"
app:cardElevation="10dp"
app:contentPadding="10dp">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:text="@string/card_view"
android:textColor="#fff"/>
</android.support.v7.widget.CardView>Two common attributes :
app:cardBackgroundColor Set the background color
app:contentPadding Set contents padding
other :
app:cardCornerRadius This is to set the fillet size app:cardElevation This is the setup z The shadow of the axis app:cardMaxElevation This is the setup z The maximum height of the shaft app:cardUseCompatPadding Whether to use CompatPadding app:cardPreventCornerOverlap Whether to use PreventCornerOverlap app:contentPaddingLeft Set the left side of the content padding app:contentPaddingTop Set the top of the content padding app:contentPaddingRight Set the right side of the content padding app:contentPaddingBottom Set the bottom of the content padding
边栏推荐
- Comparison of two BigDecimal data types, addition, subtraction, multiplication and division, and formatting
- buuctf [PHP]inclusion
- Ultra detailed ffmpeg installation and simple use tutorial
- Performance test plan (plan) template
- 常见的自动化测试框架有哪些?上海软件测试公司安利
- TextInputLayout使用详解
- apache atlas 快速入门
- [untitled]
- Error:top-left corner pixel must be either opaque white or transparent.
- Ten easy-to-use cross browser testing tools to share, good things worth collecting
猜你喜欢

Introduction to assembly language - Summary

If I write the for loop again, I will hammer myself

2022 ciscn preliminary satool

On distributed transaction
![buuctf [PHP]inclusion](/img/02/d328ed84e4641c09c5b1eba3ac6ea9.png)
buuctf [PHP]inclusion

Simple integration of client go gin six list watch two (about the improvement of RS, pod and deployment)

【操作教程】如何正确使用海康demo工具配置通道上线?

3. 网页开发工具 VS Code
![[deep learning] the credit card fraud anomaly detection based on the deep learning autoencoder is very effective](/img/69/505707755e6b003d90cdb07e61914a.jpg)
[deep learning] the credit card fraud anomaly detection based on the deep learning autoencoder is very effective

Multithreading killer ---countdownlatch & cyclicbarrier
随机推荐
Qt: 访问其他窗体中的控件
解决VMware Workstation安装VMware Tools显示灰色的办法
Periodically brush the data in the database and synchronize only the modified fields
[spark] (task8) pipeline channel establishment in sparkml
启牛能开户吗,在APP上可以直接开通券商安全吗
不吐不快
[yellow code] SVN version control tutorial
Site investigation system
常见的自动化测试框架有哪些?上海软件测试公司安利
Google Earth Engine(GEE)——基于s2影像的实时全球10米土地利用/土地覆盖(LULC)数据集
buuctf [PHP]inclusion
32. Simple test of raspberry pie serial port communication and ultrasonic module ranging
【Multisim仿真】差分放大电路2
Recommend an efficient IO component - okio
小笔记-简单但够用系列_yapi 返回参数 data 应当是 object 类型问题解决记录
Buuctf [glassfish] arbitrary file reading
Talk about message oriented middleware (1) and AMQP
Some coding tips
CVPR2022|AConvNetforthe2020s&如何设计神经网络总结
Pychart installation tutorial