|
|
@@ -17,6 +17,7 @@ import androidx.recyclerview.widget.RecyclerView;
|
|
|
import com.blankj.utilcode.util.TimeUtils;
|
|
|
import com.blankj.utilcode.util.ToastUtils;
|
|
|
|
|
|
+import java.text.ParseException;
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
|
|
|
|
@@ -83,7 +84,12 @@ public class ExposureDetailsContentAdapter extends RecyclerView.Adapter<Exposure
|
|
|
public void onBindViewHolder(@NonNull final ItemViewHolder itemViewHolder, int i) {
|
|
|
this.index = i;
|
|
|
if ("1".equals(type)){//现货头部左侧
|
|
|
- itemViewHolder.exposure_tvLeftTitle.setText(VIewUtils.getShowTime(datas.get(i).getCreatetime(),"MMdd HH:mm"));
|
|
|
+
|
|
|
+ try {
|
|
|
+ itemViewHolder.exposure_tvLeftTitle.setText(VIewUtils.getShowTime(datas.get(i).getCreatetime(),"MM-dd HH:mm", "yyyy-MM-dd HH:mm:ss"));
|
|
|
+ } catch (ParseException e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
itemViewHolder.exposure_tv_left_bottom_title.setText(getType(datas.get(i).getContracttype(),datas.get(i).getLogtype()));
|
|
|
}else if ("2".equals(type)){//期货头部左侧
|
|
|
itemViewHolder.exposure_tvLeftTitle.setText(datas.get(i).getGoodsname());
|