@@ -67,10 +67,10 @@ public class CheckRunningWaterStep1Activity extends AppActivity implements OnRef | |||
new SearchCarInfoUtils(this,new SearchCarInfoUtils.OnCustomReqCallback() { | |||
@Override | |||
public void request(String vehicleId,EditText et) { | |||
public void request(String vehicleId) { | |||
binding.rlStatusRefresh.setVisibility(View.VISIBLE); | |||
curVehicleId = vehicleId; | |||
etSearch = et; | |||
//etSearch = et; | |||
getList(); | |||
} | |||
}); |
@@ -46,8 +46,8 @@ public class EditCarInfoStep1Activity extends AppActivity { | |||
binding.LLUserInfo.setVisibility(View.GONE); | |||
new SearchCarInfoUtils(this, new SearchCarInfoUtils.OnCustomReqCallback() { | |||
@Override | |||
public void request(String vehicleId, EditText et) { | |||
etSearch = et; | |||
public void request(String vehicleId) { | |||
//etSearch = et; | |||
curVehicleId = vehicleId; | |||
getCarInfo(); | |||
} |
@@ -0,0 +1,110 @@ | |||
package com.huntersun.vkyes.etcopencard.project.ui.activity.after; | |||
import android.view.View; | |||
import com.huntersun.vkyes.etcopencard.databinding.ActivityEquipmentLossReportStep1Binding; | |||
import com.huntersun.vkyes.etcopencard.databinding.ActivityStartStopEtcBinding; | |||
import com.huntersun.vkyes.etcopencard.project.api.Result; | |||
import com.huntersun.vkyes.etcopencard.project.api.bean.ResultBean; | |||
import com.huntersun.vkyes.etcopencard.project.utils.FunHelper; | |||
import com.huntersun.vkyes.etcopencard.project.utils.SearchCarInfoUtils; | |||
import com.huntersun.vkyes.etcopencard.src.aop.SingleClick; | |||
import com.huntersun.vkyes.etcopencard.src.app.AppActivity; | |||
/** | |||
* Date :2023-03-28 | |||
* Description:挂失/解挂第一步 | |||
*/ | |||
public class EquipmentLossReportStep1Activity extends AppActivity { | |||
private ActivityEquipmentLossReportStep1Binding binding; | |||
private ResultBean.BizContent curBizContent; | |||
private String opeartion = "1"; //操作 1-卡挂失, 2-牵挂失, 3-卡签挂失, 4-卡解挂 ,5-签解挂 | |||
@Override | |||
protected View getLayoutView() { | |||
binding = ActivityEquipmentLossReportStep1Binding.inflate(getLayoutInflater()); | |||
return binding.getRoot(); | |||
} | |||
@Override | |||
protected void initView() { | |||
binding.LLSearchResult.setVisibility(View.GONE); | |||
binding.LLBottom.setVisibility(View.GONE); | |||
new SearchCarInfoUtils(getIntent().getStringExtra("vehiclePlate"), getIntent().getStringExtra("vehiclePlateColor"),this, new SearchCarInfoUtils.OnSearchResultClick() { | |||
@Override | |||
public void onSearchResultSuccess(ResultBean.BizContent bizContent) { | |||
curBizContent = bizContent; | |||
setDataToView(); | |||
} | |||
@Override | |||
public void onSearchResultFail(Result result) { | |||
binding.LLSearchResult.setVisibility(View.GONE); | |||
binding.LLBottom.setVisibility(View.GONE); | |||
} | |||
}); | |||
//挂失 | |||
binding.btnStop.setOnClickListener(new View.OnClickListener() { | |||
@Override | |||
@SingleClick | |||
public void onClick(View view) { | |||
} | |||
}); | |||
//解挂 | |||
binding.btnStart.setOnClickListener(new View.OnClickListener() { | |||
@Override | |||
@SingleClick | |||
public void onClick(View view) { | |||
} | |||
}); | |||
} | |||
private void setDataToView(){ | |||
if (curBizContent == null) return; | |||
binding.LLSearchResult.setVisibility(View.VISIBLE); | |||
binding.LLBottom.setVisibility(View.VISIBLE); | |||
binding.LLCardInfo.setVisibility(View.GONE); | |||
binding.LLObuInfo.setVisibility(View.GONE); | |||
binding.tvOrderId.setText(curBizContent.getOrderId()); | |||
binding.tvUserName.setText(FunHelper.isEmpty(curBizContent.getCustomerName()) ? "" : curBizContent.getCustomerName()); | |||
binding.tvCardType.setText(FunHelper.isEmpty(curBizContent.getCustomerIdtype()) ? "" : curBizContent.getCustomerIdtype()); | |||
binding.tvCardNum.setText(FunHelper.isEmpty(curBizContent.getCustomerIdnum()) ? "" : curBizContent.getCustomerIdnum()); | |||
binding.tvVehiclePlate.setText(FunHelper.isEmpty(curBizContent.getVehiclePlate()) ? "" : curBizContent.getVehiclePlate()); | |||
binding.tvColor.setText(FunHelper.isEmpty(curBizContent.getVehiclePlateColorStr()) ? "" : curBizContent.getVehiclePlateColorStr()); | |||
binding.tvCarType.setText(FunHelper.isEmpty(curBizContent.getType()) ? "" : FunHelper.getCarTypeName(curBizContent.getType())); | |||
if (curBizContent.getCardStatus().equals("11")){//停用状态-需启用 | |||
binding.btnStart.setEnabled(true); | |||
binding.btnStop.setEnabled(false); | |||
}else{//启用-需办理停用 | |||
binding.btnStart.setEnabled(false); | |||
binding.btnStop.setEnabled(true); | |||
} | |||
//显示卡信息 | |||
if (!FunHelper.isEmpty(curBizContent.getCardId())){ | |||
binding.LLCardInfo.setVisibility(View.VISIBLE); | |||
binding.tvCardIdInfo.setText(FunHelper.isEmpty(curBizContent.getCardId()) ? "卡号:" : "卡号:" + curBizContent.getCardId()); | |||
binding.tvCardTypeInfo.setText(FunHelper.isEmpty(curBizContent.getIsValueCard()) ? "卡类型:" : "卡类型:" + (curBizContent.getIsValueCard().equals("1") ? "记账卡" : "储值卡")); | |||
binding.tvCardStatusInfo.setText(FunHelper.isEmpty(curBizContent.getCardStatus()) ? "卡状态:" : "卡状态:" + FunHelper.getETCStatusName(Integer.parseInt(curBizContent.getCardStatus()))); | |||
} | |||
//显示签信息 | |||
if (!FunHelper.isEmpty(curBizContent.getObuId())){ | |||
binding.LLObuInfo.setVisibility(View.VISIBLE); | |||
binding.tvOBUIdInfo.setText(FunHelper.isEmpty(curBizContent.getObuId()) ? "OBU:" : "OBU:" + curBizContent.getObuId()); | |||
binding.tvOBUTypeInfo.setText(FunHelper.isEmpty(curBizContent.getObuStatus()) ? "OBU状态:" : "OBU状态:" + FunHelper.getOBUStatusName(Integer.parseInt(curBizContent.getObuStatus()))); | |||
} | |||
} | |||
@Override | |||
protected void initData() { | |||
} | |||
} |
@@ -146,7 +146,7 @@ public class ReplaceEtcStep5Activity extends AppActivity { | |||
private void submit(){ | |||
Map<String, String> params = new HashMap<>(); | |||
params.put("id", applyData.getId()); | |||
params.put("id", FunHelper.isEmpty(applyData.getId()) ? "" : applyData.getId()); | |||
params.put("configId", Constants.PAY_CONFIG_ID); | |||
params.put("sendStatus", String.valueOf(receiveMethod)); //对于业务员端来说这个字段和收货方式字段是相反的 | |||
params.put("receiveMethod", String.valueOf(sendStatus)); //对于业务员端来说这个字段和邮寄方式字段是相反的 |
@@ -444,6 +444,7 @@ public class FunHelper { | |||
只是关闭软键盘 | |||
*/ | |||
public static void closeKeyboard(View view) { | |||
if (view == null) return; | |||
InputMethodManager manager = (InputMethodManager) view.getContext() | |||
.getSystemService(Context.INPUT_METHOD_SERVICE); | |||
manager.hideSoftInputFromWindow(view.getWindowToken(), 0); |
@@ -18,6 +18,8 @@ import com.huntersun.vkyes.etcopencard.project.api.bean.EnumBean; | |||
import com.huntersun.vkyes.etcopencard.project.api.bean.IFCode; | |||
import com.huntersun.vkyes.etcopencard.project.api.bean.ResultBean; | |||
import com.huntersun.vkyes.etcopencard.src.app.AppActivity; | |||
import com.parkingwang.keyboard.PopupKeyboard; | |||
import com.parkingwang.keyboard.view.InputView; | |||
import java.util.HashMap; | |||
import java.util.Map; | |||
@@ -29,11 +31,14 @@ import retrofit2.Response; | |||
* Description:车辆信息搜索工具类 | |||
*/ | |||
public class SearchCarInfoUtils { | |||
private PopupKeyboard mPopupKeyboard; | |||
private AppActivity mContext; | |||
private OnSearchResultClick callback; | |||
private OnCustomReqCallback reqCallback; | |||
private ClearEditText etSearch; | |||
//private ClearEditText etSearch; | |||
private InputView inputView; | |||
private LinearLayout LLQuote; | |||
private Button btnSearch; | |||
private Button btnBlue, btnYellow, btnBlack, btnWhite, btnYellowGreen, btnGreen; | |||
@@ -108,7 +113,9 @@ public class SearchCarInfoUtils { | |||
} | |||
public void initId() { | |||
etSearch = mContext.findViewById(R.id.etSearch); | |||
//etSearch = mContext.findViewById(R.id.etSearch); | |||
inputView = mContext.findViewById(R.id.inputView); | |||
LLQuote = mContext.findViewById(R.id.LLQuote); | |||
btnSearch = mContext.findViewById(R.id.btnSearch); | |||
btnBlue = mContext.findViewById(R.id.btnBlue); | |||
btnYellow = mContext.findViewById(R.id.btnYellow); | |||
@@ -130,9 +137,11 @@ public class SearchCarInfoUtils { | |||
btnYellowGreen.setOnClickListener(this::initClick); | |||
btnGreen.setOnClickListener(this::initClick); | |||
btnSearch.setOnClickListener(this::initClick); | |||
//回显信息并走查询接口 | |||
if (!TextUtils.isEmpty(vehiclePlate) && !TextUtils.isEmpty(PlateColor)) { | |||
etSearch.setText(vehiclePlate); | |||
//etSearch.setText(vehiclePlate); | |||
inputView.updateNumber(vehiclePlate); | |||
View view = btnBlue; | |||
switch (PlateColor) { | |||
case "0": //蓝色 | |||
@@ -156,6 +165,29 @@ public class SearchCarInfoUtils { | |||
} | |||
initClick(view); | |||
} | |||
initInputView(); | |||
} | |||
private void initInputView(){ | |||
mPopupKeyboard = new PopupKeyboard(mContext.getContext(), mContext); | |||
mPopupKeyboard.attach(inputView, mContext); | |||
inputView.set8thVisibility(true); | |||
inputView.addOnFieldViewSelectedListener(index -> { | |||
if (index == 7) { | |||
if (LLQuote.getVisibility() == View.VISIBLE) { | |||
LLQuote.setVisibility(View.GONE); | |||
} else { | |||
LLQuote.setVisibility(View.VISIBLE); | |||
mContext.post(() -> { | |||
mPopupKeyboard.dismiss(mContext); | |||
if (!TextUtils.isEmpty(inputView.getEndText())) { | |||
inputView.removeLastCharOfNumber(); | |||
} | |||
}); | |||
} | |||
} | |||
}); | |||
} | |||
private void initClick(View view) { | |||
@@ -188,13 +220,13 @@ public class SearchCarInfoUtils { | |||
vehiclePlateColor = 5; | |||
} else if (view == btnSearch) { | |||
if (FunHelper.isEmpty(FunHelper.getText(etSearch))) { | |||
if (FunHelper.isEmpty(inputView.getNumber())) { | |||
ToastUtils.show("车牌号不能为空"); | |||
return; | |||
} | |||
if (!FunHelper.isRightVehiclePlate(FunHelper.getText(etSearch))) { | |||
etSearch.startAnimation(AnimationUtils.loadAnimation(mContext, R.anim.shake_anim)); | |||
if (!FunHelper.isRightVehiclePlate(inputView.getNumber())) { | |||
inputView.startAnimation(AnimationUtils.loadAnimation(mContext, R.anim.shake_anim)); | |||
ToastUtils.show("车牌号码输入有误"); | |||
return; | |||
} | |||
@@ -205,23 +237,23 @@ public class SearchCarInfoUtils { | |||
private void doSearch() { | |||
if (callback != null) { | |||
callback.onVehicleId(FunHelper.getText(etSearch) + "_" + vehiclePlateColor); | |||
callback.onVehicleId(inputView.getNumber() + "_" + vehiclePlateColor); | |||
} | |||
if (reqCallback != null) { | |||
reqCallback.request(FunHelper.getText(etSearch) + "_" + vehiclePlateColor, etSearch); | |||
reqCallback.request(inputView.getNumber() + "_" + vehiclePlateColor); | |||
return; | |||
} | |||
mContext.showDialog("订单信息查询中..."); | |||
Map<String, String> params = new HashMap<>(); | |||
params.put("vehicleId", FunHelper.getText(etSearch) + "_" + vehiclePlateColor); | |||
params.put("vehicleId", inputView.getNumber() + "_" + vehiclePlateColor); | |||
params.put("orderStep", orderStep); | |||
params.put("orderStatus", orderStatus); | |||
MyRetrofit.newInstance(reqCode, params, new MyRetrofit.ReturnResult() { | |||
@Override | |||
public void onSuccess(ResultBean resultBean, ResultBean.BizContent bizContent) { | |||
FunHelper.closeKeyboard(etSearch); | |||
//FunHelper.closeKeyboard(etSearch); | |||
mContext.hideDialog(); | |||
//设置车牌颜色文字 | |||
bizContent.setVehiclePlateColorStr(EnumBean.backValue(bizContent.getVehiclePlateColor(), EnumBean.VehicleColorArray)); | |||
@@ -233,7 +265,7 @@ public class SearchCarInfoUtils { | |||
@Override | |||
public void onError(Response<Result> resp) { | |||
mContext.hideDialog(); | |||
FunHelper.closeKeyboard(etSearch); | |||
//FunHelper.closeKeyboard(etSearch); | |||
if (callback != null) { | |||
callback.onSearchResultFail(resp.body()); | |||
} | |||
@@ -252,6 +284,6 @@ public class SearchCarInfoUtils { | |||
//自定义请求 | |||
public interface OnCustomReqCallback { | |||
void request(String vehicleId, EditText et); | |||
void request(String vehicleId); | |||
} | |||
} |
@@ -0,0 +1,345 @@ | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |||
xmlns:app="http://schemas.android.com/apk/res-auto" | |||
style="@style/MatchWrap.Vertical" | |||
android:background="@color/background_color"> | |||
<com.hjq.bar.TitleBar | |||
android:id="@+id/title" | |||
android:layout_width="match_parent" | |||
android:layout_height="wrap_content" | |||
android:background="@color/white" | |||
app:leftIcon="@mipmap/back_black" | |||
app:lineVisible="false" | |||
app:title="挂失/解挂" | |||
app:titleColor="@color/black" /> | |||
<androidx.core.widget.NestedScrollView | |||
android:layout_below="@+id/title" | |||
style="@style/MatchWrap"> | |||
<LinearLayout style="@style/MatchWrap.Vertical" | |||
android:paddingBottom="@dimen/dp_80"> | |||
<include layout="@layout/layout_vehicleplate"/> | |||
<!--搜索结果--> | |||
<LinearLayout | |||
android:id="@+id/LLSearchResult" | |||
android:visibility="gone" | |||
style="@style/MatchWrap.Vertical"> | |||
<TextView | |||
style="@style/WrapWrap" | |||
android:paddingLeft="@dimen/dp_15" | |||
android:paddingTop="@dimen/dp_15" | |||
android:paddingRight="@dimen/dp_15" | |||
android:text="基础信息" | |||
android:textColor="@color/color_333333" | |||
android:textSize="@dimen/sp_16" | |||
android:textStyle="bold" /> | |||
<!--基础信息--> | |||
<LinearLayout | |||
style="@style/MatchWrap.Vertical" | |||
android:layout_marginHorizontal="@dimen/dp_15" | |||
android:layout_marginTop="@dimen/dp_10" | |||
android:background="@drawable/bg_white_radius" | |||
android:padding="@dimen/dp_15"> | |||
<LinearLayout style="@style/MatchWrap.Horizontal"> | |||
<TextView | |||
style="@style/black02TextStyle14" | |||
android:layout_width="0dp" | |||
android:layout_height="wrap_content" | |||
android:layout_weight="1" | |||
android:text="订单编号" /> | |||
<TextView | |||
android:id="@+id/tvOrderId" | |||
style="@style/blackTextStyle14" | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:text="" /> | |||
</LinearLayout> | |||
<LinearLayout | |||
style="@style/MatchWrap.Horizontal" | |||
android:layout_marginTop="@dimen/dp_12"> | |||
<TextView | |||
style="@style/black02TextStyle14" | |||
android:layout_width="0dp" | |||
android:layout_height="wrap_content" | |||
android:layout_weight="1" | |||
android:text="用户名称" /> | |||
<TextView | |||
android:id="@+id/tvUserName" | |||
style="@style/blackTextStyle14" | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:text="" /> | |||
</LinearLayout> | |||
<LinearLayout | |||
style="@style/MatchWrap.Horizontal" | |||
android:layout_marginTop="@dimen/dp_12"> | |||
<TextView | |||
style="@style/black02TextStyle14" | |||
android:layout_width="0dp" | |||
android:layout_height="wrap_content" | |||
android:layout_weight="1" | |||
android:text="用户证件类型" /> | |||
<TextView | |||
android:id="@+id/tvCardType" | |||
style="@style/blackTextStyle14" | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:text="" /> | |||
</LinearLayout> | |||
<LinearLayout | |||
style="@style/MatchWrap.Horizontal" | |||
android:layout_marginTop="@dimen/dp_12"> | |||
<TextView | |||
style="@style/black02TextStyle14" | |||
android:layout_width="0dp" | |||
android:layout_height="wrap_content" | |||
android:layout_weight="1" | |||
android:text="用户证件号" /> | |||
<TextView | |||
android:id="@+id/tvCardNum" | |||
style="@style/blackTextStyle14" | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:text="" /> | |||
</LinearLayout> | |||
<LinearLayout | |||
style="@style/MatchWrap.Horizontal" | |||
android:layout_marginTop="@dimen/dp_12"> | |||
<TextView | |||
style="@style/black02TextStyle14" | |||
android:layout_width="0dp" | |||
android:layout_height="wrap_content" | |||
android:layout_weight="1" | |||
android:text="订单车牌号" /> | |||
<TextView | |||
android:id="@+id/tvVehiclePlate" | |||
style="@style/blackTextStyle14" | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:text="" /> | |||
</LinearLayout> | |||
<LinearLayout | |||
style="@style/MatchWrap.Horizontal" | |||
android:layout_marginTop="@dimen/dp_12"> | |||
<TextView | |||
style="@style/black02TextStyle14" | |||
android:layout_width="0dp" | |||
android:layout_height="wrap_content" | |||
android:layout_weight="1" | |||
android:text="车牌颜色" /> | |||
<TextView | |||
android:id="@+id/tv_color" | |||
style="@style/blackTextStyle14" | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:text="" /> | |||
</LinearLayout> | |||
<LinearLayout | |||
style="@style/MatchWrap.Horizontal" | |||
android:layout_marginTop="@dimen/dp_12"> | |||
<TextView | |||
style="@style/black02TextStyle14" | |||
android:layout_width="0dp" | |||
android:layout_height="wrap_content" | |||
android:layout_weight="1" | |||
android:text="收费车型" /> | |||
<TextView | |||
android:id="@+id/tvCarType" | |||
style="@style/blackTextStyle14" | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" /> | |||
</LinearLayout> | |||
</LinearLayout> | |||
<!--卡信息--> | |||
<LinearLayout | |||
android:id="@+id/LLCardInfo" | |||
android:visibility="gone" | |||
style="@style/MatchWrap.Vertical"> | |||
<TextView | |||
style="@style/WrapWrap" | |||
android:paddingLeft="@dimen/dp_15" | |||
android:paddingTop="@dimen/dp_15" | |||
android:paddingRight="@dimen/dp_15" | |||
android:text="卡信息" | |||
android:textColor="@color/color_333333" | |||
android:textSize="@dimen/sp_16" | |||
android:textStyle="bold" /> | |||
<LinearLayout | |||
style="@style/MatchWrap.Vertical" | |||
android:layout_marginHorizontal="@dimen/dp_15" | |||
android:layout_marginVertical="@dimen/dp_10" | |||
android:background="@drawable/bg_white_radius" | |||
android:paddingHorizontal="@dimen/dp_20" | |||
android:paddingVertical="@dimen/dp_15"> | |||
<LinearLayout | |||
style="@style/MatchWrap.Horizontal" | |||
android:background="@drawable/bg_card_obu_info" | |||
android:gravity="center_vertical" | |||
android:paddingTop="@dimen/dp_15" | |||
android:paddingLeft="@dimen/dp_15" | |||
android:paddingBottom="@dimen/dp_15" | |||
android:paddingRight="@dimen/dp_5"> | |||
<ImageView | |||
style="@style/WrapWrap" | |||
android:layout_width="@dimen/dp_67" | |||
android:layout_height="@dimen/dp_46" | |||
android:src="@mipmap/icon_card" /> | |||
<LinearLayout | |||
style="@style/MatchWrap.Vertical" | |||
android:layout_marginLeft="@dimen/dp_15"> | |||
<TextView | |||
android:id="@+id/tvCardIdInfo" | |||
style="@style/MatchWrap" | |||
android:text="卡号:" | |||
android:textColor="@color/common_accent_color" | |||
android:textSize="@dimen/sp_13" /> | |||
<TextView | |||
android:id="@+id/tvCardTypeInfo" | |||
style="@style/MatchWrap" | |||
android:layout_marginTop="@dimen/dp_2" | |||
android:text="卡类型:" | |||
android:textColor="@color/common_accent_color" | |||
android:textSize="@dimen/sp_13" /> | |||
<TextView | |||
android:id="@+id/tvCardStatusInfo" | |||
style="@style/MatchWrap" | |||
android:layout_marginTop="@dimen/dp_2" | |||
android:text="卡状态:" | |||
android:textColor="@color/common_accent_color" | |||
android:textSize="@dimen/sp_13" /> | |||
</LinearLayout> | |||
</LinearLayout> | |||
</LinearLayout> | |||
</LinearLayout> | |||
<!--OBU设备信息--> | |||
<LinearLayout | |||
android:id="@+id/LLObuInfo" | |||
android:visibility="gone" | |||
style="@style/MatchWrap.Vertical"> | |||
<TextView | |||
style="@style/WrapWrap" | |||
android:paddingLeft="@dimen/dp_15" | |||
android:paddingTop="@dimen/dp_15" | |||
android:paddingRight="@dimen/dp_15" | |||
android:text="OBU设备信息" | |||
android:textColor="@color/color_333333" | |||
android:textSize="@dimen/sp_16" | |||
android:textStyle="bold" /> | |||
<LinearLayout | |||
style="@style/MatchWrap.Vertical" | |||
android:layout_marginHorizontal="@dimen/dp_15" | |||
android:layout_marginVertical="@dimen/dp_10" | |||
android:background="@drawable/bg_white_radius" | |||
android:paddingHorizontal="@dimen/dp_20" | |||
android:paddingVertical="@dimen/dp_15"> | |||
<LinearLayout | |||
style="@style/MatchWrap.Horizontal" | |||
android:background="@drawable/bg_card_obu_info" | |||
android:gravity="center_vertical" | |||
android:padding="@dimen/dp_15"> | |||
<ImageView | |||
style="@style/WrapWrap" | |||
android:layout_width="@dimen/dp_67" | |||
android:layout_height="@dimen/dp_46" | |||
android:src="@mipmap/icon_obu" /> | |||
<LinearLayout | |||
style="@style/MatchWrap.Vertical" | |||
android:layout_marginLeft="@dimen/dp_15"> | |||
<TextView | |||
android:id="@+id/tvOBUIdInfo" | |||
style="@style/MatchWrap" | |||
android:text="OBU:" | |||
android:textColor="@color/common_accent_color" | |||
android:textSize="@dimen/sp_13" /> | |||
<TextView | |||
android:id="@+id/tvOBUTypeInfo" | |||
style="@style/MatchWrap" | |||
android:layout_marginTop="@dimen/dp_2" | |||
android:text="OBU状态:" | |||
android:textColor="@color/common_accent_color" | |||
android:textSize="@dimen/sp_13" /> | |||
</LinearLayout> | |||
</LinearLayout> | |||
</LinearLayout> | |||
</LinearLayout> | |||
</LinearLayout> | |||
</LinearLayout> | |||
</androidx.core.widget.NestedScrollView> | |||
<LinearLayout | |||
android:id="@+id/LLBottom" | |||
style="@style/MatchWrap.Horizontal" | |||
android:gravity="center" | |||
android:layout_alignParentBottom="true" | |||
android:paddingVertical="@dimen/dp_10" | |||
android:background="@color/background_color" | |||
android:paddingHorizontal="@dimen/dp_15"> | |||
<Button | |||
android:id="@+id/btnStop" | |||
style="@style/FullBtnStyle" | |||
android:layout_width="0dp" | |||
android:layout_weight="1" | |||
android:layout_height="@dimen/dp_40" | |||
android:layout_alignParentBottom="true" | |||
android:layout_centerHorizontal="true" | |||
android:layout_gravity="center" | |||
android:text="挂失" | |||
android:textSize="@dimen/sp_15" /> | |||
<Button | |||
android:id="@+id/btnStart" | |||
style="@style/FullBtnStyle" | |||
android:layout_width="0dp" | |||
android:layout_weight="1" | |||
android:layout_height="@dimen/dp_40" | |||
android:layout_alignParentBottom="true" | |||
android:layout_centerHorizontal="true" | |||
android:layout_gravity="center" | |||
android:layout_marginLeft="@dimen/dp_50" | |||
android:text="解挂" | |||
android:textSize="@dimen/sp_15" /> | |||
</LinearLayout> | |||
</RelativeLayout> |
@@ -1,11 +1,12 @@ | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |||
xmlns:tools="http://schemas.android.com/tools" | |||
xmlns:app="http://schemas.android.com/apk/res-auto" | |||
style="@style/MatchWrap.Vertical" | |||
android:layout_marginHorizontal="@dimen/dp_15"> | |||
<!--搜索框--> | |||
<LinearLayout | |||
<!--<LinearLayout | |||
style="@style/MatchWrap.Horizontal" | |||
android:layout_marginVertical="@dimen/dp_15" | |||
android:gravity="center"> | |||
@@ -46,13 +47,54 @@ | |||
android:text="搜索" | |||
android:layout_marginLeft="@dimen/dp_20" | |||
android:textSize="@dimen/sp_12" /> | |||
</LinearLayout> | |||
</LinearLayout>--> | |||
<LinearLayout | |||
style="@style/MatchWrap.Vertical" | |||
android:background="@drawable/bg_white_radius" | |||
android:layout_marginTop="@dimen/dp_15" | |||
android:padding="@dimen/dp_15"> | |||
<LinearLayout | |||
style="@style/MatchWrap.Horizontal" | |||
android:layout_marginBottom="@dimen/dp_15" | |||
android:gravity="center_vertical"> | |||
<FrameLayout | |||
style="@style/AutoWrap"> | |||
<com.parkingwang.keyboard.view.InputView | |||
android:id="@+id/inputView" | |||
android:layout_width="match_parent" | |||
android:layout_height="@dimen/dp_38" | |||
app:pwkInputTextSize="@dimen/sp_18" /> | |||
<LinearLayout | |||
android:id="@+id/LLQuote" | |||
android:layout_width="@dimen/dp_38" | |||
android:layout_height="match_parent" | |||
android:layout_gravity="right" | |||
android:background="@drawable/pwk_input_item_border_gray4" | |||
android:gravity="center" | |||
android:orientation="vertical"> | |||
<TextView | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:text="+" | |||
android:textColor="#10D09D" /> | |||
<TextView | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:layout_marginTop="@dimen/dp_3" | |||
android:text="新能源" | |||
android:textColor="#10D09D" | |||
android:textSize="@dimen/sp_8" /> | |||
</LinearLayout> | |||
</FrameLayout> | |||
</LinearLayout> | |||
<LinearLayout | |||
android:layout_width="match_parent" | |||
android:layout_height="wrap_content" | |||
@@ -193,5 +235,17 @@ | |||
</LinearLayout> | |||
</LinearLayout> | |||
<Button | |||
android:id="@+id/btnSearch" | |||
style="@style/BtnShortStyle" | |||
android:layout_width="@dimen/dp_80" | |||
android:layout_height="@dimen/dp_30" | |||
android:layout_marginTop="@dimen/dp_10" | |||
android:layout_gravity="center_vertical|right" | |||
android:text="搜索" | |||
android:layout_marginLeft="@dimen/dp_5" | |||
android:textSize="@dimen/sp_12" /> | |||
</LinearLayout> | |||
</LinearLayout> |