cheewr85 / Kotlin-Android-Basic

CodeLab 기반으로 기본기 다시보기
3 stars 0 forks source link

Parcelable #36

Closed cheewr85 closed 2 years ago

cheewr85 commented 2 years ago

[질문]

Parcelable과 데이터 처리에 있어서 직렬화 관련해서 정리해보기

cheewr85 commented 2 years ago
@Parcelize
data class MarsProperty (
       val id: String,
       @Json(name = "img_src") val imgSrcUrl: String,
       val type: String,
       val price: Double) : Parcelable {
<argument
   android:name="selectedProperty"
   app:argType="com.example.android.marsrealestate.network.MarsProperty"
   />

참고