Upgrade to Pro — share decks privately, control downloads, hide ads and more …

kotlin season 1 - Part 16 Detail Page

TaeHwan
November 19, 2016

kotlin season 1 - Part 16 Detail Page

2016년 유데미 Kotlin 강의를 공개합니다.

동영상 : https://www.youtube.com/watch?v=0doRvDAcPeo

2회 분은 유데미에서 확인 가능합니다.
http://bit.ly/2UpaJUR

TaeHwan

November 19, 2016
Tweet

More Decks by TaeHwan

Other Decks in Education

Transcript

  1. ࢠ೒ ௏٘ח!!! • Sample Code GitHub ࠳۠஖ : 11-DetailPage •

    https://github.com/taehwandev/Kotlin-Udemy-Sample/tree/ 11-Add-Detail-Page ରࣁ؀ উ٘۽੉٘ ѐߊ ঱য ௏ౣܽ, द੘ೞӝ thdev.tech, 2016 2
  2. য়ט ೡ ࠗ࠙ • Detail ಕ੉૑ ୶оܳ ਤೠ API ୶о

    • Detail ಕ੉૑ী ؘ੉ఠ ੹׳ • ੌ߈ ؘ੉ఠ ֈӝӝ • Parcelable ରࣁ؀ উ٘۽੉٘ ѐߊ ঱য ௏ౣܽ, द੘ೞӝ thdev.tech, 2016 3
  3. Detail ಕ੉૑ ୶оܳ ਤೠ API ୶о • Flickr੄ flickr.photos.getInfoਸ ࢎਊೠ׮.

    • photoidܳ ֈѹࢲ ୊ܻೠ׮. • Sample PhotoId : 30943786501 ରࣁ؀ উ٘۽੉٘ ѐߊ ঱য ௏ౣܽ, द੘ೞӝ thdev.tech, 2016 5
  4. Intent ੹׳ extra • Intent putExtra(String name, int value) •

    Intent putExtra(String name, String value) • Intent putExtra(String name, Serializable value) • Intent putExtra(String name, Parcelable value) • ؊ ݆਷ ৘ח : https://developer.android.com/reference/ android/content/Intent.html#putExtra(java.lang.String, android.os.Parcelable[]) ରࣁ؀ উ٘۽੉٘ ѐߊ ঱য ௏ౣܽ, द੘ೞӝ thdev.tech, 2016 8
  5. Intent ੹׳ extra - Parcelable data class RecentPhotoItem(val id: String)

    : Parcelable { companion object { @JvmField val CREATOR: Parcelable.Creator<RecentPhotoItem> = object : Parcelable.Creator<RecentPhotoItem> { override fun createFromParcel(source: Parcel): RecentPhotoItem = RecentPhotoItem(source) override fun newArray(size: Int): Array<RecentPhotoItem?> = arrayOfNulls(size) } } constructor(source: Parcel) : this(source.readString()) override fun describeContents() = 0 override fun writeToParcel(dest: Parcel?, flags: Int) { dest?.writeString(id) } } ରࣁ؀ উ٘۽੉٘ ѐߊ ঱য ௏ౣܽ, द੘ೞӝ thdev.tech, 2016 11
  6. ଵҊ ੗ܐ • Intent • Parcelable • Parcelable Code Generator(for

    kotlin) ରࣁ؀ উ٘۽੉٘ ѐߊ ঱য ௏ౣܽ, द੘ೞӝ thdev.tech, 2016 16