当前位置:网站首页>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
边栏推荐
- 传奇登录器提示连接服务器失败是怎么回事?怎么解决?
- 移动app性能测试有哪些需要进行?性能测试报告如何收费?
- 【NLP】NLP全路径学习推荐
- Leetcode 96. 不同的二叉搜索樹
- 常见的自动化测试框架有哪些?上海软件测试公司安利
- 【Multisim仿真】差分放大电路2
- Handling work ticket system
- buuctf [PHP]XDebug RCE
- Unity typewriter to automatically roll text to the bottom of the text box
- What are the common automated test frameworks? Shanghai software testing company Amway
猜你喜欢

On distributed transaction

智慧校园安全通道及视频监控解决方案

Google proposed the super pre training model coca, and the accuracy of fine-tuning top-1 on Imagenet reached 91%! SOTA on multiple downstream tasks!

Leetcode 96. 不同的二叉搜索樹

apache atlas 快速入门

深度神经网络每秒分类近20亿张图像,新型类脑光学分类器芯片登上Nature
![[Netease Yunxin] in depth analysis of the design of](/img/17/7c0b7db01310f8dd31e9021f8d5516.png)
[Netease Yunxin] in depth analysis of the design of "circle group" relationship system | series of articles on "circle group" technology

Apple邮箱配置QQ邮箱,163邮箱,edu邮箱,gmail邮箱,获取gmail日历

im即时通讯开发:进程被杀底层原理、APP应对被杀技巧
![Buuctf [glassfish] arbitrary file reading](/img/37/e3c127f2f2ba97c5ca0b6cf01cf9ab.png)
Buuctf [glassfish] arbitrary file reading
随机推荐
Periodically brush the data in the database and synchronize only the modified fields
On distributed transaction
10 competitive airpods Pro products worth your choice
What is the p value of a gene?
聊聊消息中间件(1),AMQP那些事儿
Kotlin练手,以登录为例,Anko简单使用
一些编码Tips
No spitting
CL210OpenStack操作的故障排除--常见核心问题的故障排除
mTabLayout. setOnTabSelectedListener is deprecated
Neuron Newsletter 2022 - 05 | ajout de 2 entraînements Sud et 1 Application Nord, mise en œuvre de l'extension personnalisée par Modbus TCP
不吐不快
Some words from ShareIt group
How to configure multiple data sources
buuctf [Jupyter]notebook-rce
智慧校园安全通道及视频监控解决方案
【操作教程】如何正确使用海康demo工具配置通道上线?
Shape color gradient, fillet, half fillet, border, fill
NanoMQ Newsletter 2022-05|v0.8.0 发布,新增 WebHook 拓展接口和连接认证 API
Let resources flow freely in the cloud and locally