...
|
...
|
@@ -29,6 +29,7 @@ import com.yinhebairong.clasmanage.utils.CalendarStringtUtil; |
|
|
import com.yinhebairong.clasmanage.view.DebugLog;
|
|
|
import com.yinhebairong.clasmanage.view.pickerwheelview.builder.TimePickerBuilder;
|
|
|
import com.yinhebairong.clasmanage.view.pickerwheelview.listener.OnTimeSelectListener;
|
|
|
import com.yinhebairong.clasmanage.view.pickerwheelview.utils.MyDataFormatUtil;
|
|
|
import com.yinhebairong.clasmanage.view.pickerwheelview.view.TimePickerView;
|
|
|
|
|
|
import java.text.SimpleDateFormat;
|
...
|
...
|
@@ -57,6 +58,8 @@ public class Hd_Rv_Fragment extends BaseFragment { |
|
|
RecyclerView dataRv;
|
|
|
@BindView(R.id.tv_time)
|
|
|
TextView tv_time;
|
|
|
@BindView(R.id.tv_week)
|
|
|
TextView tv_week;
|
|
|
@BindView(R.id.refresh_layout)
|
|
|
SmartRefreshLayout refresh_layout;
|
|
|
Jxt_Hd_Adapter jxt_zy_adapter;
|
...
|
...
|
@@ -97,11 +100,13 @@ public class Hd_Rv_Fragment extends BaseFragment { |
|
|
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd", Locale.CHINA);
|
|
|
String dateString = simpleDateFormat.format(calendar.getTime());
|
|
|
tv_time.setText(dateString);
|
|
|
tv_week.setText(MyDataFormatUtil.dateToWeek(dateString));
|
|
|
|
|
|
mTimePicker3 = new TimePickerBuilder(getActivity(), new OnTimeSelectListener() {
|
|
|
@Override
|
|
|
public void onTimeSelect(String date, View v) {
|
|
|
tv_time.setText(date);
|
|
|
tv_week.setText(MyDataFormatUtil.dateToWeek(date));
|
|
|
setParam(1);
|
|
|
}
|
|
|
}).setType(new boolean[]{true, true, true, false, false, false}).isDialog(false).setFormat("yyyy-MM-dd").setSelectChangeListener().
|
...
|
...
|
|