创建实体模型: namespace Test.Models { public class Student { public string ID { get; set; } public string Name { get; set; } } } 使用: using System; using System.Data; using System.Collections.Generic; namespace Test { public partial class Default : System.W
dongyangzhang android gridview画分割线,如图: 1.先上图: 2.具体实现代码: public class LineGridView extends GridView { public LineGridView(Context context) { super(context); // TODO Auto-generated constructor stub } public LineGridView(Context context, AttributeSet at
1.PopupWindow是一个可以显示在当前Activity之上的浮动容器,PopupWindow弹出的位置是能够改变的,按照有无偏移量,可以分为无偏移和有便宜两种:按照参照对象的不同又可以分为两种:相对某个控件(Anchor锚点)的位置和在父容器内部的相对位置. 显示PopupWindow的方法: showAsDropDown(Viewanchor) //相对某个控件的位置(正下方),无偏移 showAsDropDown(Viewanchor, int xoff, int yoff) //相
设置不要在控间中滑动: public class DeliverGridView extends GridView { public DeliverGridView(Context context, AttributeSet attrs) { super(context, attrs); } public DeliverGridView(Context context) { super(context); } public DeliverGridView(Context context, Att