Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
serializable を実装していないクラスのオブジェクトを保存するにはどうすればよいですか?
例: View Class オブジェクト
クラスを拡張して、自分のクラスをシリアライズ可能に実装できます。
public class MyClassSerializable extends AClass implements Serializable { //... }
注:thx @MoshErsan、これはViewクラスでは機能しDrawableませんSerializable。代わりにビュー パラメーターをシリアル化し、これらのパラメーターを使用してビューを再作成する必要があります。
View
Drawable
Serializable