android 一个简单的CardView的 使用
来源:互联网 发布:杭州可赛锐尔网络诈骗 编辑:程序博客网 时间:2024/06/06 03:59
项目中要使用到CardView,就自己总结了一下CardView的使用方法。
0. libs要加上
android-support-v4.jar
android-support-v7-cardview.jar
1. 项目中要引用
android-sdk-windows\extras\android\support\v7\cardview 的工程项目
2. 在顶层layout上加上
xmlns:app="http://schemas.android.com/apk/res-auto"
如
<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"></LinearLayout >
3. 使用上如下:
app:cardBackgroundColor背景颜色
app:cardElevation阴影长度
app:cardCornerRadius圆角半径
<android.support.v7.widget.CardView android:id="@+id/cardview" android:layout_width="match_parent" android:layout_height="match_parent" app:cardBackgroundColor="#ff0000" app:cardCornerRadius="0dp" app:cardElevation="0dp">
0 0
- android 一个简单的CardView的 使用
- Android CardView的简单使用
- CardView的简单使用
- CardView的简单使用
- CardView的简单使用
- CardView的简单使用
- cardview的简单使用
- CardView的简单使用
- Android中CardView的简单使用
- Android CardView的使用
- Android CardView 的使用
- Android CardView的使用
- Android CardView 的使用
- Android L 新增UI控件:RecyclerView CardView的简单使用
- Android新特性之CardView的简单使用
- Android新特性之CardView的简单使用
- Android新特性之CardView的简单使用
- Android新特性之CardView的简单使用
- 更新插件的时候报错,及解决方法
- TextView的超链接
- 【学渣的奋斗之路】【汇编语言】 2.1~2.3
- 虚拟机上加载硬盘
- android有效解决加载大图片内存溢出的问题
- android 一个简单的CardView的 使用
- Commons-fileupload组件上传中文文件名乱码问题
- TCP长连接的思考和相关问题的实验_百万链接数测试_百万链接内核参数的调整
- C# 小叙 Encoding (一)
- 正则表达式–零宽断言详解
- 收集整理 UI 原理解析
- Session 生命周期
- ecshop添加类似于精品,新品,热销的模块
- VC批量拷贝,移动,删除文件---SHFileOperation