public static final int INVALID_POSITION

  代表无效的位置。有效值的范围是 0 到当前适配器项目数减 1 。
  常量值: -1 (0xffffffff)
  android api 中文 (73)—— AdapterView

不得不提的 android:clipToPadding和android:clipChildren

参考文章
android:clipToPadding和android:clipChildren

keyword :
googlesamples/android-topeka学习笔记(三)-----undone_第1张图片
googlesamples/android-topeka学习笔记(三)-----undone_第2张图片
clipToPadding就是说控件的绘制区域是否在padding里面的,true的情况下如果你设置了padding那么绘制的区域就往里 缩,clipChildren是指子控件是否超过padding区域,这两个属性默认是true的,所以在设置了padding情况下,默认滚动是在 padding内部的,要达到上面的效果主要把这两个属性设置了false那么这样子控件就能画到padding的区域了。

<ListView  android:layout_gravity="center_vertical" android:id="@+id/list" android:clipChildren="false" android:clipToPadding="false" android:paddingTop="50dip" android:layout_width="match_parent" android:layout_height="match_parent">

Actionbar半透明就不详细说了,只要设置actionbarOverlay为true并为ActionBar设置一个半透明的background即可.

这个属性RecyclerView也有,是同样的意思。

用android:clipChildren来实现红心变大特效
这个博客有误,

image3只要设置了动画都能变大,
和clipToPadding ,android:clipChildren这两个属性无关,

不信可以复制他的代码自己做个demo删删看.

Linearlayout 根本没有这两个属性…….

android5.x之Palette调色板

android5.x之Palette调色板
googlesamples/android-topeka学习笔记(三)-----undone_第3张图片

Android5.0之Palette简单实用
googlesamples/android-topeka学习笔记(三)-----undone_第4张图片

更多相关文章

  1. TextView中ellipsize属性 + 走马灯效果
  2. View类的XML属性、相关方法及说明
  3. android:configChanges属性
  4. ImageView的scaletype属性
  5. Android新控件MotionLayout介绍(三)
  6. android:configChanges属性总结
  7. 后台动态添加布局文件、控件与动态设置属性

随机推荐

  1. android Camera架构介绍
  2. Android的线程使用来更新UI----Thread、H
  3. Android中RelativeLayout各个属性的含义
  4. Android使用Presentation进行双屏开发
  5. Android之Handler用法总结
  6. 使用Android(安卓)Studio下载Android(安
  7. android网络编程——使用Android中的网络
  8. Android(安卓)体系结构介绍
  9. Android的源代码结构
  10. Android应用程序目录结构分析