Activitypublic class MainActivity extends Activity { private GridView mPhotoWall; private PhotoWallAdapter mAdapter; @Override protected void onCreate... ...
分类:
系统相关 时间:
2016-06-28 21:50:30
阅读次数:
247
QML中对于数据的存储和显示使用模型/视图框架。 1. QML数据模型 视图项目(如ListView、GridView和Repeater等)需要使用数据模型来为其提供数据进行显示。这些项目通常也需要一个委托(delegate)组件来为模型中的每一个条目创建一个实例。模型可以是静态的,也可以进行动态的 ...
分类:
其他好文 时间:
2016-06-28 18:15:21
阅读次数:
172
第一部分 个性化控件(View)
主要介绍那些不错个性化的View,包括ListView、ActionBar、Menu、ViewPager、Gallery、GridView、ImageView、ProgressBar、TextView、ScrollView、TimeView、TipView、FlipView、ColorPickView、GraphView、UI Style等等。
、其他
一、...
分类:
移动开发 时间:
2016-06-28 13:10:01
阅读次数:
645
一、ListView 一个ListView通常有两个职责。 (1)将数据填充到布局。 (2)处理用户的选择点击等操作。 一个ListView的创建需要3个元素。 (1)ListView中的每一行View的布局。(里面可以包括图片,按钮,文字等等自定义的想要展示的内容。) (2)填入View的数据或者 ...
分类:
其他好文 时间:
2016-06-28 12:21:51
阅读次数:
285
这个可以拖动的gridview继承于gridview,所以,用法和gridview一样,
代码如下:
public class DragGridView extends GridView {
private long dragResponseMS = 700; // item长按响应的时间
private int mDragPosition;// 正在拖拽的position
...
分类:
其他好文 时间:
2016-06-28 11:05:00
阅读次数:
167
void gridView_CustomColumnDisplayText(object sender, DevExpress.XtraGrid.Views.Base.CustomColumnDisplayTextEventArgs e) { if (e.Column.FieldName == "G ...
分类:
其他好文 时间:
2016-06-27 15:22:02
阅读次数:
710
1 public class WebGridView:GridView 2 { 3 属性#region 属性 4 /**//// <summary> 5 /// 是否启用或者禁止多列排序 6 /// </summary> 7 [ 8 Description("是否启用多列排序功能"), 9 Cate ...
分类:
编程语言 时间:
2016-06-27 12:18:33
阅读次数:
185
android:clipToPadding 如果设置为true,表示在Padding位置不绘制,默认为true,于是可以理解为绘制的时候保留padding。 当listview gridview scrollview 设置android:clipToPadding = false时,向上滑动时Pad ...
分类:
移动开发 时间:
2016-06-26 23:54:23
阅读次数:
477
//导出excel按钮事件 protected void Button1_Click(object sender, EventArgs e) { Export("application/ms-excel", "农田环境数据.xls"); } //导出word按钮事件 protected void B ...
文/Flying_Einstein(简书作者)
前言:
实现垂直方向的单列表来说,使用UITableView足以;若是需要构建横向滑动列表、gridView等直线型布局,则使用UICollectionView+UICollectionViewFlowLayout搭建最合适;更复杂的布局,则可以使用UICollectionView+自定义Layout来实现。
译文: UIC...
分类:
移动开发 时间:
2016-06-24 16:02:26
阅读次数:
554