57
/**
58
* 设置窗口显示
59
*
60
*
@param
x
61
*
@param
y
62
*/
63
private
void
windowDeploy(
int
x,
int
y)
64
{
65
window = getWindow();
66
//
window.setWindowAnimations(R.style.dialogWindowAnim);
67
window.setBackgroundDrawableResource(R.color.grey);
68
WindowManager.LayoutParams wl = window.getAttributes();
69
wl.x = x;
70
wl.y = y;
71
wl.alpha = 1f;
72
wl.gravity = Gravity.RIGHT;
73
window.setAttributes(wl);
74
//super.setCanceledOnTouchOutside(true);//单击空白处,隐藏 dialog
75
}
76
77
class
MyBaseAdapter
extends
BaseAdapter
78
{
79
private
List<String> dates;
80
private
Context context;
81
82
public
MyBaseAdapter(Context context, List<String> dates)
83
{
84
super
();
85
this
.context = context;
86
this
.dates = dates;
87
}
88
89
@Override
90
public
int
getCount()
91
{
92
//TODO Auto-generated method stub
93
return
dates.size();