Search in sources :

Example 6 with Movie

use of com.shizhefei.test.models.enties.Movie in project MVCHelper by LuckyJayce.

the class MovieDetailAdapter method onBindMovieViewHolder.

private void onBindMovieViewHolder(ViewHolder holder, int position) {
    MovieViewHolder viewHolder = (MovieViewHolder) holder;
    Movie movie = mData.getValue1();
    viewHolder.description.setText(movie.getDescription());
    viewHolder.name.setText(movie.getName());
    viewHolder.time.setText(movie.getTime());
}
Also used : Movie(com.shizhefei.test.models.enties.Movie)

Aggregations

Movie (com.shizhefei.test.models.enties.Movie)6 ArrayList (java.util.ArrayList)3 Data3 (com.shizhefei.mvc.data.Data3)2 Discuss (com.shizhefei.test.models.enties.Discuss)2 LinearLayoutManager (android.support.v7.widget.LinearLayoutManager)1 RecyclerView (android.support.v7.widget.RecyclerView)1 MovieDetailDataSource (com.shizhefei.test.models.datasource.MovieDetailDataSource)1 MovieDetailAdapter (com.shizhefei.test.view.adapters.MovieDetailAdapter)1 PtrClassicFrameLayout (in.srain.cube.views.ptr.PtrClassicFrameLayout)1 List (java.util.List)1