Skip to content

Instantly share code, notes, and snippets.

@xuwei-k
xuwei-k / A.scala
Created April 30, 2012 02:49
scala android Parcelable
import android.os.{Parcel,Parcelable}
class A(in:Parcel) extends android.os.Parcelable{
override def describeContents():Int = 0
override def writeToParcel(out:Parcel,flag:Int){
}
val CREATOR:Parcelable.Creator[A] = new Parcelable.Creator[A]() {