package Ġcom . example . wikipedia Ċ Ċ import Ġandroidx . appcompat . app . AppCompatActivity Ċ import Ġandroid . os . Bundle Ċ import Ġcom . bump tech . glide . G lide Ċ import Ġcom . example . wikipedia . data Class . Item Post Ċ import Ġcom . example . wikipedia . databinding . Activity Main 3 Binding Ċ import Ġcom . example . wikipedia . fragments . SEND _ DATA _ TO _ SECOND _ ACTIVITY Ċ Ċ class ĠMainActivity 3 Ġ: ĠAppCompatActivity () Ġ{ ĊĠĠĠ Ġlateinit Ġvar Ġbinding : ĠActivity Main 3 Binding ĊĠĠĠ Ġoverride Ġfun ĠonCreate ( savedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . onCreate ( savedInstanceState ) ĊĠĠĠĠĠĠĠ Ġbinding = ĠActivity Main 3 Binding . inflate ( layout Inflater ) ĊĠĠĠĠĠĠĠ ĠsetContentView ( binding . root ) ĊĠĠĠĠĠĠĠ Ġval Ġdata Post = intent . get Parcelable Extra < Item Post >( SEND _ DATA _ TO _ SECOND _ ACTIVITY ) ĊĠĠĠĠĠĠĠ Ġdata Post ?. let Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġshow Data ( data Post ) ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun Ġshow Data ( post : ĠItem Post ) Ġ{ ĊĠĠĠĠĠĠĠ ĠG lide . with ( this ). load ( post . url ). into ( binding . imageView 4 ) ĊĠĠĠ Ġ} Ċ }