作者 朱振飞

add

... ... @@ -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().
... ...
... ... @@ -48,7 +48,7 @@
android:background="@null"
android:hint="请输入账号"
android:maxLines="1"
android:text="13888680699"
android:text="15825260252"
android:textColor="@color/color_bdc4ce"
android:textSize="@dimen/sp_16" />
... ...
... ... @@ -27,11 +27,19 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/dp_8"
android:text="2019-10-17 周三"
android:text="2019-10-17"
android:textColor="@color/color_3d444d"
android:textSize="@dimen/sp_15"
android:textStyle="bold" />
<TextView
android:id="@+id/tv_week"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/dp_8"
android:text=""
android:textColor="@color/color_3d444d"
android:textSize="@dimen/sp_15"
android:textStyle="bold" />
<View
android:layout_width="@dimen/dp_0"
android:layout_height="wrap_content"
... ...