parent
33b9c50cc4
commit
55ad475b09
@ -0,0 +1,25 @@
|
||||
package com.android;
|
||||
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.view.View;
|
||||
import android.widget.Button;
|
||||
|
||||
public class DeliverActivity extends AppCompatActivity {
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.activity_delivery);
|
||||
Button new_addr = findViewById(R.id.btn_delivery_add);
|
||||
new_addr.setOnClickListener(new View.OnClickListener() {
|
||||
public void onClick(View v) {
|
||||
Intent intent = new Intent(DeliverActivity.this,
|
||||
DetailDeliveryActivity.class);
|
||||
startActivity(intent);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
package com.android;
|
||||
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
|
||||
import android.os.Bundle;
|
||||
|
||||
public class DetailDeliveryActivity extends AppCompatActivity {
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.activity_delivery_detail);
|
||||
}
|
||||
}
|
@ -0,0 +1,119 @@
|
||||
package com.android.model;
|
||||
|
||||
/**
|
||||
* Created by xmfy on 2018/1/16.
|
||||
*/
|
||||
public class Delivery {
|
||||
|
||||
private int id;
|
||||
private String account;
|
||||
private String receiver;
|
||||
private String phone;
|
||||
private String province;
|
||||
private String city;
|
||||
private String district;
|
||||
private String location;
|
||||
private Integer defaults;
|
||||
|
||||
public Delivery() {
|
||||
}
|
||||
|
||||
public Delivery(int id, String account, String receiver, String phone, String province, String city, String district, String location, Integer defaults) {
|
||||
this.id = id;
|
||||
this.account = account;
|
||||
this.receiver = receiver;
|
||||
this.phone = phone;
|
||||
this.province = province;
|
||||
this.city = city;
|
||||
this.district = district;
|
||||
this.location = location;
|
||||
this.defaults = defaults;
|
||||
}
|
||||
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(int id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getAccount() {
|
||||
return account;
|
||||
}
|
||||
|
||||
public void setAccount(String account) {
|
||||
this.account = account;
|
||||
}
|
||||
|
||||
public String getReceiver() {
|
||||
return receiver;
|
||||
}
|
||||
|
||||
public void setReceiver(String receiver) {
|
||||
this.receiver = receiver;
|
||||
}
|
||||
|
||||
public String getPhone() {
|
||||
return phone;
|
||||
}
|
||||
|
||||
public void setPhone(String phone) {
|
||||
this.phone = phone;
|
||||
}
|
||||
|
||||
public String getProvince() {
|
||||
return province;
|
||||
}
|
||||
|
||||
public void setProvince(String province) {
|
||||
this.province = province;
|
||||
}
|
||||
|
||||
public String getCity() {
|
||||
return city;
|
||||
}
|
||||
|
||||
public void setCity(String city) {
|
||||
this.city = city;
|
||||
}
|
||||
|
||||
public String getDistrict() {
|
||||
return district;
|
||||
}
|
||||
|
||||
public void setDistrict(String district) {
|
||||
this.district = district;
|
||||
}
|
||||
|
||||
public String getLocation() {
|
||||
return location;
|
||||
}
|
||||
|
||||
public void setLocation(String location) {
|
||||
this.location = location;
|
||||
}
|
||||
|
||||
public Integer getDefaults() {
|
||||
return defaults;
|
||||
}
|
||||
|
||||
public void setDefaults(Integer defaults) {
|
||||
this.defaults = defaults;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "Delivery{" +
|
||||
"id=" + id +
|
||||
", account='" + account + '\'' +
|
||||
", receiver='" + receiver + '\'' +
|
||||
", phone='" + phone + '\'' +
|
||||
", province='" + province + '\'' +
|
||||
", city='" + city + '\'' +
|
||||
", district='" + district + '\'' +
|
||||
", location='" + location + '\'' +
|
||||
", defaults=" + defaults +
|
||||
'}';
|
||||
}
|
||||
}
|
After Width: | Height: | Size: 2.5 KiB |
After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 2.6 KiB |
@ -0,0 +1,34 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<declare-styleable name="CustomToolBar">
|
||||
<attr name="left_btn_visible" format="boolean"/>
|
||||
<attr name="left_btn_src" format="reference|color"/>
|
||||
<attr name="left_tv_visible" format="boolean"/>
|
||||
<attr name="left_tv_text" format="string"/>
|
||||
<attr name="right_btn_visible" format="boolean"/>
|
||||
<attr name="right_btn_src" format="reference|color"/>
|
||||
<attr name="right_tv_visible" format="boolean"/>
|
||||
<attr name="right_tv_text" format="string"/>
|
||||
<attr name="title_visible" format="boolean"/>
|
||||
<attr name="title_text" format="string"/>
|
||||
<attr name="barBackground" format="color|reference"/>
|
||||
</declare-styleable>
|
||||
|
||||
<declare-styleable name="CircleImageView">
|
||||
<attr name="border_width" format="dimension" />
|
||||
<attr name="border_color" format="color" />
|
||||
</declare-styleable>
|
||||
|
||||
<!-- 自定义TextView -->
|
||||
<declare-styleable name="RichText">
|
||||
<attr name="drawable_src" format="reference" />
|
||||
<attr name="drawable_height" format="dimension" />
|
||||
<attr name="drawable_width" format="dimension" />
|
||||
<attr name="drawable_location">
|
||||
<enum name="left" value="1" />
|
||||
<enum name="top" value="2" />
|
||||
<enum name="right" value="3" />
|
||||
<enum name="bottom" value="4" />
|
||||
</attr>
|
||||
</declare-styleable>
|
||||
</resources>
|
Loading…
Reference in new issue