整理资源文件

This commit is contained in:
董宏宇
2020-08-01 17:16:13 +08:00
parent e693f96d41
commit 556b5f22d7
11 changed files with 7 additions and 64 deletions

View File

@@ -41,7 +41,7 @@ public class V2XFatigueDrivingVH extends V2XBaseViewHolder<V2XEventShowEntity> {
public V2XFatigueDrivingVH(ViewGroup viewGroup) {
super(LayoutInflater.from(viewGroup.getContext())
.inflate(R.layout.window_fatigue_driving, viewGroup, false));
.inflate(R.layout.item_v2x_fatigue_driving, viewGroup, false));
mTvAddress = itemView.findViewById(R.id.tvAddress);
mTvAddressDistance = itemView.findViewById(R.id.tvAddressDistance);
mIvToNav = itemView.findViewById(R.id.ivToNav);

View File

@@ -43,7 +43,7 @@ public class V2XIllegalParkVH extends V2XBaseViewHolder<V2XEventShowEntity> {
public V2XIllegalParkVH(ViewGroup viewGroup) {
super(LayoutInflater.from(viewGroup.getContext())
.inflate(R.layout.window_illegal_parking, viewGroup, false));
.inflate(R.layout.item_v2x_illegal_parking, viewGroup, false));
mAddressTv = itemView.findViewById(R.id.tvAddress);
mIllegalNumTv = itemView.findViewById(R.id.tvIllegalNum);

View File

@@ -1,15 +1,11 @@
package com.mogo.module.v2x.listener;
import android.view.Gravity;
import android.view.LayoutInflater;
import com.mogo.module.v2x.R;
import com.mogo.module.v2x.V2XServiceManager;
import com.mogo.module.common.entity.V2XPushMessageEntity;
import com.mogo.module.v2x.V2XServiceManager;
import com.mogo.module.v2x.entity.net.V2XGiveLike;
import com.mogo.module.v2x.utils.ADASUtils;
import com.mogo.module.v2x.utils.ToastUtils;
import com.mogo.service.connection.IMogoOnMessageListener;
import com.mogo.utils.TipToast;
import com.mogo.utils.logger.Logger;
import static com.mogo.module.v2x.V2XConst.MODULE_NAME;
@@ -40,11 +36,9 @@ public class V2XMessageListener_401009 implements IMogoOnMessageListener<V2XGive
v2XAlarmMessage.setExpireTime(20000);
v2XAlarmMessage.setSceneId("000000");
ADASUtils.broadcastToADAS_TTS(V2XServiceManager.getContext(), v2XAlarmMessage);
TipToast.tip(message.getResult());
} catch (Exception e) {
e.printStackTrace();
}
ToastUtils.setGravity(Gravity.CENTER, 0, 0);
ToastUtils.showCustomLong(LayoutInflater.from(V2XServiceManager.getContext()).inflate(R.layout.toast_view_feedback_img_text, null));
}
}

View File

@@ -60,7 +60,7 @@ public class V2XPushLiveCarWindow extends RelativeLayout implements IV2XWindow<V
public void initView(Context context) {
Logger.w(MODULE_NAME, "初始化直播小窗口View。。。。。");
LayoutInflater.from(context).inflate(R.layout.window_push_live_video, this);
LayoutInflater.from(context).inflate(R.layout.item_v2x_push_live_video, this);
// 详情列表
mV2XLiveGSYVideoView = findViewById(R.id.videoPlayer);
mIvReportHead = findViewById(R.id.ivReportHead);

View File

@@ -97,7 +97,7 @@ public class V2XRoadLiveCarWindow extends RelativeLayout
private void initView(Context context) {
Logger.w(MODULE_NAME, "V2X===初始化道路直播视图");
// 填充布局
LayoutInflater.from(context).inflate(R.layout.window_road_live_car_detail, this);
LayoutInflater.from(context).inflate(R.layout.item_v2x_road_live_car_detail, this);
mTvEventStubClose = findViewById(R.id.tvEventStubClose);
mRecyclerView = findViewById(R.id.rvRoadEventList);