增加 巡检拍照
parent
f896ff9d90
commit
0b7833ac35
@ -0,0 +1,63 @@
|
||||
package com.example.beijing_daxing;
|
||||
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
import androidx.databinding.DataBindingUtil;
|
||||
|
||||
import android.os.Bundle;
|
||||
import android.view.View;
|
||||
import android.widget.Toast;
|
||||
|
||||
import com.example.beijing_daxing.adapter.CheckListAdapter;
|
||||
import com.example.beijing_daxing.base.BaseActivity;
|
||||
import com.example.beijing_daxing.base.MyRecultCall;
|
||||
import com.example.beijing_daxing.base.MyResult;
|
||||
import com.example.beijing_daxing.been.Stock;
|
||||
import com.example.beijing_daxing.databinding.ActivityCheckListBinding;
|
||||
import com.example.beijing_daxing.uitls.SharedPreferencesUtils;
|
||||
import com.google.gson.reflect.TypeToken;
|
||||
import com.lzy.okgo.OkGo;
|
||||
import com.lzy.okgo.model.Response;
|
||||
import com.uhf.api.cls.Reader;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class CheckListActivity extends BaseActivity {
|
||||
private CheckListAdapter checkListAdapter;
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
ActivityCheckListBinding binding = DataBindingUtil.setContentView(this, R.layout.activity_check_list);
|
||||
checkListAdapter = new CheckListAdapter(this);
|
||||
binding.setAdapter(checkListAdapter);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void sanRfid(List<Reader.TAGINFO> epcs) {
|
||||
|
||||
}
|
||||
|
||||
public void check_start(View view) {
|
||||
OkGo.<MyResult>post(url + "/xj/createTask")
|
||||
.params("user", SharedPreferencesUtils.getstring("user", ""))
|
||||
.execute(new MyRecultCall(dialog, this) {
|
||||
@Override
|
||||
public void onSuccess(Response<MyResult> response) {
|
||||
super.onSuccess(response);
|
||||
var body = response.body();
|
||||
if (body.getCode() == 0) {
|
||||
// list = gson.fromJson(body.getData().toString(), new TypeToken<List<Stock>>() {
|
||||
// }.getType());
|
||||
// if (list == null || list.isEmpty()) {
|
||||
// Toast.makeText(CheckActivity.this, "没有维护巡检区域", Toast.LENGTH_SHORT).show();
|
||||
// return;
|
||||
// }
|
||||
// adapter.setList(list);
|
||||
// adapter.notifyDataSetChanged();
|
||||
return;
|
||||
}
|
||||
// Toast.makeText(this, body.getMsg(), Toast.LENGTH_SHORT).show();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
package com.example.beijing_daxing;
|
||||
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
|
||||
import android.os.Bundle;
|
||||
|
||||
public class SetingPowerActivity extends AppCompatActivity {
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.activity_seting_power);
|
||||
}
|
||||
}
|
@ -0,0 +1,67 @@
|
||||
package com.example.beijing_daxing.adapter;
|
||||
|
||||
import android.content.Context;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.ViewGroup;
|
||||
|
||||
import androidx.databinding.DataBindingUtil;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
|
||||
import com.example.beijing_daxing.BR;
|
||||
import com.example.beijing_daxing.R;
|
||||
import com.example.beijing_daxing.base.AdapterClickCall;
|
||||
import com.example.beijing_daxing.been.Stock;
|
||||
import com.example.beijing_daxing.databinding.ItemCheckBinding;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author wanghao
|
||||
* @date 2024/1/19 14:32
|
||||
*/
|
||||
public class CheckListAdapter extends RecyclerView.Adapter<CheckListAdapter.MyViewHoder> {
|
||||
private Context context;
|
||||
private List<Stock> list;
|
||||
private LayoutInflater inflater;
|
||||
private AdapterClickCall call;
|
||||
public CheckListAdapter(Context context) {
|
||||
this.context = context;
|
||||
inflater = LayoutInflater.from(context);
|
||||
this.call=call;
|
||||
}
|
||||
|
||||
public void setList(List<Stock> list) {
|
||||
this.list = list;
|
||||
}
|
||||
|
||||
@Override
|
||||
public MyViewHoder onCreateViewHolder(ViewGroup parent, int viewType) {
|
||||
ItemCheckBinding binding = DataBindingUtil.inflate(inflater, R.layout.item_check, parent, false);
|
||||
return new MyViewHoder(binding);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onBindViewHolder(MyViewHoder holder, int position) {
|
||||
var binding = holder.getBinding();
|
||||
binding.setVariable(BR.item,list.get(position));
|
||||
binding.itemCheckClick.setOnClickListener(v -> call.clickItem(position));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getItemCount() {
|
||||
return list==null?0:list.size();
|
||||
}
|
||||
|
||||
public class MyViewHoder extends RecyclerView.ViewHolder {
|
||||
private ItemCheckBinding binding;
|
||||
|
||||
public MyViewHoder( ItemCheckBinding binding) {
|
||||
super(binding.getRoot());
|
||||
this.binding = binding;
|
||||
}
|
||||
|
||||
public ItemCheckBinding getBinding() {
|
||||
return binding;
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,78 @@
|
||||
package com.example.beijing_daxing.adapter;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
import android.content.Context;
|
||||
import android.graphics.Bitmap;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.ImageView;
|
||||
import android.widget.TextView;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
|
||||
|
||||
// import com.bumptech.glide.Glide;
|
||||
import com.bumptech.glide.Glide;
|
||||
import com.example.beijing_daxing.R;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Created by wangh on 2021/1/28-14:02。
|
||||
*/
|
||||
public class PictureAdapter extends RecyclerView.Adapter<PictureAdapter.MyViewHolder> {
|
||||
private Context context;
|
||||
private List<Bitmap> list;
|
||||
private LayoutInflater inflater;
|
||||
private ViewOnClickCall call;
|
||||
public interface ViewOnClickCall{
|
||||
void onclickCall(int position);
|
||||
}
|
||||
public PictureAdapter(Context context, ViewOnClickCall call) {
|
||||
this.context = context;
|
||||
this.call=call;
|
||||
inflater=LayoutInflater.from(context);
|
||||
}
|
||||
|
||||
public void setList(List<Bitmap> list) {
|
||||
this.list = list;
|
||||
}
|
||||
|
||||
@NonNull
|
||||
@Override
|
||||
public MyViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
|
||||
View v=inflater.inflate(R.layout.item_photo,parent,false);
|
||||
return new MyViewHolder(v);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onBindViewHolder(@NonNull MyViewHolder holder, @SuppressLint("RecyclerView") int position) {
|
||||
Bitmap info=list.get(position);
|
||||
|
||||
// holder.img.setImageBitmap(info);
|
||||
Glide.with(context).load(info).into( holder.img);
|
||||
holder.button.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
call.onclickCall(position);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getItemCount() {
|
||||
return list.size();
|
||||
}
|
||||
|
||||
class MyViewHolder extends RecyclerView.ViewHolder{
|
||||
private ImageView img;
|
||||
private TextView button;
|
||||
public MyViewHolder(@NonNull View itemView) {
|
||||
super(itemView);
|
||||
img=itemView.findViewById(R.id.item_photoImg);
|
||||
button=itemView.findViewById(R.id.item_photoButton);
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,100 @@
|
||||
package com.example.beijing_daxing.dialog;
|
||||
|
||||
import android.Manifest;
|
||||
import android.app.Dialog;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.content.pm.PackageManager;
|
||||
import android.graphics.Bitmap;
|
||||
import android.net.Uri;
|
||||
import android.os.Build;
|
||||
import android.os.Bundle;
|
||||
import android.provider.MediaStore;
|
||||
import android.util.Log;
|
||||
import android.view.View;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.core.app.ActivityCompat;
|
||||
import androidx.core.content.ContextCompat;
|
||||
import androidx.core.content.FileProvider;
|
||||
import androidx.recyclerview.widget.GridLayoutManager;
|
||||
import androidx.recyclerview.widget.LinearLayoutManager;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
|
||||
import com.example.beijing_daxing.adapter.PictureAdapter;
|
||||
import com.example.beijing_daxing.R;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @author wanghao
|
||||
* @date 2023/2/1 17:06
|
||||
*/
|
||||
public class TakePictureDialog extends Dialog implements PictureAdapter.ViewOnClickCall {
|
||||
|
||||
RecyclerView pictureRecyclerview;
|
||||
private Context context;
|
||||
private List<Bitmap> bitmaps;
|
||||
private List<File> files;
|
||||
private PictureAdapter adapter;
|
||||
private dialogReturnListSizeCall call;
|
||||
|
||||
public TakePictureDialog(@NonNull Context context) {
|
||||
super(context, R.style.dialog);
|
||||
this.context = context;
|
||||
adapter = new PictureAdapter(context, this);
|
||||
}
|
||||
|
||||
public void setCall(dialogReturnListSizeCall call) {
|
||||
this.call = call;
|
||||
}
|
||||
|
||||
public void setBitmaps(List<Bitmap> bitmaps, List<File> files) {
|
||||
this.bitmaps = bitmaps;
|
||||
this.files = files;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.dialog_picture);
|
||||
pictureRecyclerview = findViewById(R.id.picture_recyclerview);
|
||||
findViewById(R.id.confirm_back).setOnClickListener(v -> {
|
||||
call.returnListSize(bitmaps.size());
|
||||
dismiss();
|
||||
});
|
||||
pictureRecyclerview.setLayoutManager(new GridLayoutManager(context, 3));
|
||||
// LinearLayoutManager linearLayoutManager = new LinearLayoutManager(context);
|
||||
// linearLayoutManager.setOrientation(LinearLayoutManager.HORIZONTAL);
|
||||
// pictureRecyclerview.setLayoutManager(linearLayoutManager);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void show() {
|
||||
super.show();
|
||||
adapter.setList(bitmaps);
|
||||
pictureRecyclerview.setAdapter(adapter);
|
||||
Log.e("TAG", "show");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onclickCall(int position) {
|
||||
Log.e("TAG", "在dialog中删除的id:" + position);
|
||||
bitmaps.remove(position);
|
||||
files.get(position).delete();
|
||||
files.remove(position);
|
||||
adapter.notifyDataSetChanged();
|
||||
}
|
||||
|
||||
public interface dialogReturnListSizeCall {
|
||||
public void returnListSize(int size);
|
||||
}
|
||||
}
|
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<solid android:color="@color/red" />
|
||||
<corners android:radius="100dp" />
|
||||
|
||||
</shape>
|
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<corners android:radius="50dp"/>
|
||||
<solid android:color="#019789"/>
|
||||
</shape>
|
@ -0,0 +1,95 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools">
|
||||
|
||||
<data>
|
||||
<variable
|
||||
name="adapter"
|
||||
type="com.example.beijing_daxing.adapter.CheckListAdapter" />
|
||||
</data>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
|
||||
tools:context=".CheckListActivity">
|
||||
|
||||
<TextView
|
||||
style="@style/title_text"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="45dp"
|
||||
android:letterSpacing="0"
|
||||
android:text="待巡检机位列表" />
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:paddingLeft="5dp"
|
||||
android:paddingRight="5dp"
|
||||
android:layout_height="45dp">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/item_index"
|
||||
style="@style/item_text_style"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="match_parent"
|
||||
android:text="序号"
|
||||
/>
|
||||
|
||||
<View
|
||||
android:layout_width="2dp"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/white" />
|
||||
|
||||
|
||||
<TextView
|
||||
style="@style/item_text_style"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:text="机位码"
|
||||
/>
|
||||
|
||||
<View
|
||||
android:layout_width="2dp"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/white" />
|
||||
|
||||
<TextView
|
||||
|
||||
style="@style/item_text_style"
|
||||
android:layout_width="63dp"
|
||||
android:layout_height="match_parent"
|
||||
android:text="状态" />
|
||||
<View
|
||||
android:layout_width="2dp"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/white" />
|
||||
|
||||
<TextView
|
||||
|
||||
style="@style/item_text_style"
|
||||
android:layout_width="63dp"
|
||||
android:layout_height="match_parent"
|
||||
android:textColor="#E71717" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="450dp"
|
||||
android:adapter="@{adapter}"
|
||||
android:padding="10dp"
|
||||
android:layout_weight="1"
|
||||
android:background="@color/white"
|
||||
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" />
|
||||
|
||||
<Button
|
||||
style="@style/button_style"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="55dp"
|
||||
android:layout_margin="15dp"
|
||||
android:onClick="check_start"
|
||||
android:text="开始巡检" />
|
||||
</LinearLayout>
|
||||
</layout>
|
@ -0,0 +1,171 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
tools:context=".SetingPowerActivity">
|
||||
|
||||
<!-- <TextView
|
||||
style="@style/title_text"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="45dp"
|
||||
android:text="废品入库" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="45dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
style="@style/info_text"
|
||||
android:layout_width="110dp"
|
||||
android:layout_height="45dp"
|
||||
android:layout_gravity="center"
|
||||
android:text="入库功率:" />
|
||||
|
||||
<EditText
|
||||
style="@style/san_text"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="45dp"
|
||||
android:layout_gravity="center"
|
||||
android:text="@={vm.epc}" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="45dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
style="@style/info_text"
|
||||
android:layout_width="110dp"
|
||||
android:layout_height="45dp"
|
||||
android:layout_gravity="center"
|
||||
android:text="出库功率:" />
|
||||
|
||||
<TextView
|
||||
style="@style/info_text1"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="45dp"
|
||||
android:layout_gravity="center"
|
||||
android:text="@={vm.bichCode}" />
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="45dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
style="@style/info_text"
|
||||
android:layout_width="110dp"
|
||||
android:layout_height="45dp"
|
||||
android:layout_gravity="center"
|
||||
android:text="轮挡位置:" />
|
||||
|
||||
<TextView
|
||||
style="@style/info_text1"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="center"
|
||||
android:text="@={vm.location}" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="45dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
style="@style/info_text"
|
||||
android:layout_width="110dp"
|
||||
android:layout_height="45dp"
|
||||
android:layout_gravity="center"
|
||||
android:text="位置代码:" />
|
||||
|
||||
<TextView
|
||||
style="@style/info_text1"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="center"
|
||||
android:text="@={vm.locationCode}" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="45dp"
|
||||
android:layout_marginTop="10dp">
|
||||
|
||||
<TextView
|
||||
style="@style/info_text"
|
||||
android:layout_width="110dp"
|
||||
android:layout_height="45dp"
|
||||
android:layout_gravity="center"
|
||||
android:text="轮挡状态:" />
|
||||
|
||||
<TextView
|
||||
style="@style/info_text1"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="45dp"
|
||||
android:layout_gravity="center"
|
||||
android:text="@={vm.state}" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="45dp"
|
||||
android:layout_marginTop="10dp">
|
||||
|
||||
<TextView
|
||||
style="@style/info_text"
|
||||
android:layout_width="110dp"
|
||||
android:layout_height="45dp"
|
||||
android:layout_gravity="center"
|
||||
android:text="报废时间:" />
|
||||
|
||||
<TextView
|
||||
style="@style/info_text1"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="45dp"
|
||||
android:layout_gravity="center"
|
||||
android:text="@={vm.time}" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="45dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:background="@color/white">
|
||||
|
||||
<TextView
|
||||
style="@style/info_text"
|
||||
android:layout_width="110dp"
|
||||
android:layout_height="45dp"
|
||||
android:layout_gravity="center"
|
||||
android:background="@color/bg1"
|
||||
android:text="选择库位:" />
|
||||
|
||||
<Spinner
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="45dp"
|
||||
android:entries="@{vm.list}"
|
||||
android:onItemSelected="@{vm.selectLocation}"
|
||||
android:textAlignment="center" />
|
||||
</LinearLayout>
|
||||
|
||||
<Button
|
||||
style="@style/button_style"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="55dp"
|
||||
android:layout_margin="20dp"
|
||||
android:onClick="fpin_submit"
|
||||
android:text="废品入库" />-->
|
||||
</LinearLayout>
|
@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="450dp"
|
||||
android:background="@drawable/info_text_bg"
|
||||
android:orientation="vertical">
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/picture_recyclerview"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:padding="12dp" />
|
||||
<Button
|
||||
android:id="@+id/confirm_back"
|
||||
style="@style/button_style2"
|
||||
android:layout_width="150dp"
|
||||
android:layout_height="48dp"
|
||||
android:layout_margin="10dp"
|
||||
android:layout_gravity="center"
|
||||
android:text="关闭" />
|
||||
|
||||
|
||||
|
||||
</LinearLayout>
|
@ -0,0 +1,63 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layout xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<data>
|
||||
|
||||
</data>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_marginTop="5dp"
|
||||
android:layout_height="45dp"
|
||||
android:background="#EAEDFD">
|
||||
|
||||
|
||||
<TextView
|
||||
android:id="@+id/item_index"
|
||||
style="@style/item_text_style"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="match_parent"
|
||||
android:text="序号"
|
||||
/>
|
||||
|
||||
<View
|
||||
android:layout_width="2dp"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/white" />
|
||||
|
||||
|
||||
<TextView
|
||||
style="@style/item_text_style"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:text="机位码"
|
||||
/>
|
||||
|
||||
<View
|
||||
android:layout_width="2dp"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/white" />
|
||||
|
||||
<TextView
|
||||
|
||||
style="@style/item_text_style"
|
||||
android:layout_width="63dp"
|
||||
android:layout_height="30dp"
|
||||
android:layout_gravity="center"
|
||||
android:background="@drawable/state_y_bg"
|
||||
android:textColor="@color/white"
|
||||
android:text="状态" />
|
||||
<View
|
||||
android:layout_width="2dp"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/white" />
|
||||
|
||||
<TextView
|
||||
|
||||
style="@style/item_text_style"
|
||||
android:layout_width="63dp"
|
||||
android:layout_height="match_parent"
|
||||
android:textColor="#E71717" />
|
||||
</LinearLayout>
|
||||
</layout>
|
Binary file not shown.
After Width: | Height: | Size: 4.9 KiB |
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<paths xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<external-path
|
||||
name="my_images"
|
||||
path="."/>
|
||||
<!-- <files-path name="my_images" path="images/"/>-->
|
||||
</paths>
|
Loading…
Reference in New Issue