- 授权协议: Apache
- 开发语言: Java
- 操作系统: Android
- 软件首页: https://github.com/wangjiegulu/AndroidParcelablePlugin
- 软件文档: https://github.com/wangjiegulu/AndroidParcelablePlugin
软件介绍
AndroidParcelablePlugin 是为 Android Parcelable 提供的 Intellij IDEA(Android Studio) 插件。
实现 Parcelable 接口:
package com.wangjie.idea.plugin;
public class Person{
private int id;
private String name;
private Float height;
private Double weight;
private Byte gender;
private Boolean deleted;
private Long birth;
}生成:
package com.wangjie.idea.plugin;
import android.os.*;
public class Person implements Parcelable {
public static final Parcelable.Creator<Person> CREATOR = new Parcelable.Creator<Person>() {
@Override
public Person[] newArray(int size) {
return new Person[size];
}
@Override
public Person createFromParcel(Parcel in) {
return new Person(in);
}
};
private int id;
private String name;
private Float height;
private Double weight;
private Byte gender;
private Boolean deleted;
private Long birth;
public Person(Parcel in) {
id = in.readInt();
name = in.readString();
height = in.readFloat();
weight = in.readDouble();
gender = in.readByte();
deleted = 1 == in.readByte();
birth = in.readLong();
}
@Override
public void writeToParcel(Parcel out, int flags) {
out.writeInt(id);
out.writeString(name);
out.writeFloat(height);
out.writeDouble(weight);
out.writeByte(gender);
out.writeByte((byte) (deleted ? 1 : 0));
out.writeLong(birth);
}
@Override
public int describeContents() {
return 0;
}
}
About Face 4: 交互设计精髓
[美] 艾伦·库伯、[美] 罗伯特·莱曼、[美] 戴维·克罗宁、[美] 克里斯托弗·诺埃塞尔 / 倪卫国、刘松涛、杭敏、薛菲 / 电子工出版社 / 2015-10 / 118.00元
《About Face 4: 交互设计精髓》是《About Face 3:交互设计精髓》的升级版,此次升级把全书的结构重组优化,更加精练和易用;更新了一些适合当下时代的术语和实例,文字全部重新编译,更加清晰易读;增加了更多目标导向设计过程的细节,更新了现行实践,重点增加 移动和触屏平台交互设计,其实《About Face 4: 交互设计精髓》多数内容适用于多种平台。 《About F......一起来看看 《About Face 4: 交互设计精髓》 这本书的介绍吧!
