package com.hussein.startup

import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import kotlinx.android.synthetic.main.activity_animal_info.*

class AnimalInfo : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_animal_info)

        val bundle:Bundle = intent.extras
        val name =bundle.getString("name")
        val des = bundle.getString("des")
        val image=bundle.getInt("image")
        ivAnimaImage.setImageResource(image)
        tvName.text=name
        tvDes.text=des
    }
}
