android cardview
来源:互联网 发布:光纤三端口环形器原理 编辑:程序博客网 时间:2024/05/24 04:32
public class CardView extends FrameLayout implements CardViewDelegate
添加 的特殊属性
* @attr ref android.support.v7.cardview.R.styleable#CardView_cardBackgroundColor * @attr ref android.support.v7.cardview.R.styleable#CardView_cardCornerRadius * @attr ref android.support.v7.cardview.R.styleable#CardView_cardElevation * @attr ref android.support.v7.cardview.R.styleable#CardView_cardMaxElevation * @attr ref android.support.v7.cardview.R.styleable#CardView_cardUseCompatPadding * @attr ref android.support.v7.cardview.R.styleable#CardView_cardPreventCornerOverlap * @attr ref android.support.v7.cardview.R.styleable#CardView_contentPadding * @attr ref android.support.v7.cardview.R.styleable#CardView_contentPaddingLeft * @attr ref android.support.v7.cardview.R.styleable#CardView_contentPaddingTop * @attr ref android.support.v7.cardview.R.styleable#CardView_contentPaddingRight * @attr ref android.support.v7.cardview.R.styleable#CardView_contentPaddingBottom
<?xml version="1.0" encoding="utf-8"?><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:paddingBottom="@dimen/activity_vertical_margin" android:paddingLeft="@dimen/activity_horizontal_margin" android:paddingRight="@dimen/activity_horizontal_margin" android:paddingTop="@dimen/activity_vertical_margin" tools:context="com.andyidea.guidedemo.RecycleViewActivity"> <android.support.v7.widget.CardView android:layout_width="match_parent" android:layout_height="match_parent" android:contextClickable="false" android:elevation="5dp" android:focusable="true" app:contentPadding="10dp" app:cardCornerRadius="8dp"> <android.support.v7.widget.RecyclerView android:id="@+id/rv" android:layout_width="match_parent" android:layout_height="match_parent" android:elevation="10dp"></android.support.v7.widget.RecyclerView> </android.support.v7.widget.CardView></RelativeLayout>
使用特殊属性
app:contentPadding=”10dp”
app:cardCornerRadius=”8dp”
0 0
- android cardview
- Android CardView
- Android RecyclerView And CardView
- Android 5.0 CardView 应用
- Android开发--CardView使用
- Android开发--CardView使用
- Android CardView和Palette
- Android CardView简单使用方法
- Android CardView 简介
- Android CardView使用详解
- Android 5.0 CardView 笔记
- android 5.0之cardview
- Android CardView使用详解
- Android CardView的使用
- Android --- Recyclerview and Cardview
- android MaterialDesign之CardView
- android 控件 卡片 CardView
- Android CardView 的使用
- C++代码优化
- iOS开发笔记--连续跳转上层页面
- web压力测试工具siege和http_load
- java解析和读取JSON
- 入门训练 圆的面积
- android cardview
- iOS的三种多线程技术
- IOS 多媒体加载 视频加载 MPMoviePlayerController
- Excel - 数据验证 - 制作下拉菜单
- AndroidStudio快捷键
- App installation failed解决办法
- Hibernate关于的Timestamp的问题
- 完成OSG3.4编译环境
- App权限问题