数据获取
获取当天零点的毫秒值:
Date date = new Date();
Time time = new Time();
time.set(date.getTime()); //也可以是time.setToNow();// 设置当前时间
time.hour = 0;
time.minute = 0;
time.second = 0;
firstMillis = time.toMillis(true);
|
|
|
|
View view = View.inflate(context, R.layout.item_conversation, parent); //参数三:parent的意义 01-20 12:05:29.741: E/AndroidRuntime(3596): java.lang.UnsupportedOperationException: addView(View, LayoutParams) is not supported in AdapterView |