简体   繁体   中英

android cardview onclick to display more details

I'm working on an android rest client application, and i, now can retreive data from a local server but i'm willing to display more data when a cardview from my recycler view is clicked. So if anyone has an idea on how to do it, or a tutorial please share it.

hmmm i think this is will help you when click into card view

   holder.lnrLayout.setOnClickListener(new View.OnClickListener(){
        public void onClick(View v) {
            intent.putExtra("movie_year",getDataAdapter1.getMovie_year()) ;
            v.getContext().startActivity(intent);
        }
    });

}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM