Android widget—Gallery学习笔记
来源:互联网 发布:plc编程入门到精通 编辑:程序博客网 时间:2024/06/05 00:13
Gallery:
A view that shows items in a center-locked, horizontally scrolling list.
The default values for the Gallery assume you will be using Theme_galleryItemBackground
as the background for each View given to the Gallery from the Adapter. If you are not doing this, you may need to adjust some Gallery properties, such as the spacing.
Views given to the Gallery should use Gallery.LayoutParams
as their layout parameters type.
即,画廊,可以左右滑动,选中的项默认为居中。
重要属性:
android:animationDuration Sets how long a transition animation should run (in milliseconds) when layout has changed.
android:spacing 设置每个子项之间的距离
android:unselectedAlpha Sets the alpha on the items that are not selected.
示例1:
示例2:
- Android widget—Gallery学习笔记
- Android-- Gallery学习笔记
- android.widget.Gallery
- Android Widget学习笔记
- Android Widget学习笔记
- android widget——ViewFlipper 学习笔记
- Android widget——AutoCompleteTextView学习笔记
- Android widget——Chronometer学习笔记
- Android widget——Chronometer学习笔记
- Android widget——Timeicker 学习笔记
- Android Widget——GridView 学习笔记
- Android学习笔记之Gallery
- Android 学习笔记之Widget
- Android学习笔记--基本Widget
- android widget 学习笔记一
- Android学习笔记之Gallery(2)
- Android学习笔记(十四)Gallery画廊
- android.widget.Button cannot be cast to android.widget.Gallery
- Flex [Bindable] 以及使用方法
- 做事随想·时刻准备着
- 08年哈弗校长Faust给毕业生的演讲
- ASP常用函数详解
- 程序员的自我修养: 静态链接的过程
- Android widget—Gallery学习笔记
- linux 2.6 内核学习小结---硬件相关概念
- Java读取xml的四种方式
- String.split()用法的一点经验
- 长文章中插入分页符^进行分页
- String.split()用法的一点经验
- Lucene 的一个程序
- 创建虚拟机的过程
- s3c2440A的nandflash坏点心得