Skip to content
0:00 / 0:00

#recyclerview#androidanimations#viewholder

RecyclerView Animations and Behind the Scenes (Android Dev Summit 2015)

Android Developers

1.4M subscribers • 20 videos on Hallway

YouTube
  • Recommended by 2 people: 2 on Stack Overflow and its sister sites.
  • Presented by Chet Haase and Yigit Boyar, Android UI Toolkit Team
  • Made by the vendor. The company whose product it covers made or sponsored it.
  • May be out of date. Uploaded 10 years ago, in an area where tools change fast.

Advanced. Deep dive for people who know the field.

110K views10 years ago2 recommendations

Mobile developmentAndroid and Jetpack ComposePerformance and optimization

Chet Haase and Yigit Boyar explain the inner workings of RecyclerView animations and how to extend them in Android.

Chet Haase and Yigit Boyar go into details of how RecyclerView animations work, what are the considerations and how you can extend them. Chet is the lead of the Android UI Toolkit team at Google, where he works on animations, graphics, and performance. Yigit works on building UI widgets and improving layout performance as part of Android UI Toolkit Team. Watch more talks from Android Dev Summit 2015 here: goo.gl/Gt9K97 Subscribe to the Android Developers channel at goo.gl/GEh1ds Music by Terra Monk: terramonk.com #androiddevsummit2015

Why it's here

2 people recommend this

What people say. Highly recommended by Android developers for understanding RecyclerView ViewHolder positions and click listener patterns.

Moments people linked to

dkarmazion Stack Overflow • Recommends

On “RecyclerView and java.lang.IndexOutOfBoundsException Invalid view holder adapter positionViewHolder”

You should not pass final int position to your anonymous new View.OnClickListener() Instead, use holder.getAdapterPosition() : private class GroceryAdapter extends RecyclerView.Adapter<GroceryHolder> { private List<Grocery> groceries; public GroceryAdapter(List<Grocery> groceries) { this.groceries = groceries; } @Override public GroceryHolder onCreateViewHolder(ViewGroup parent, int viewType){ LayoutInflater layoutInflater= LayoutInflater.from(GroceryActivity.this); View view=layoutInflater.inflate(R.layout.grocery_list_row, parent, false); holder = new GroceryHolder(view); return holder; } @Override public void onBindViewHolder(final GroceryHolder holder, int position){…
6View the answer

Miao1007on Stack Overflow • Recommends

On “Intents inside a Recycler View?”

Initial click listeners in your viewHolder. /** * see {@link <a href="link to this video Video</a>} */ public static class MyViewHolder extends RecyclerView.ViewHolder { public MyViewHolder(View itemView) { super(itemView); //TODO: findViewById or ButterKnife .... //set item view listener itemView.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View itemView) { if (getAdapterPosition() != RecyclerView.NO_POSITION) { Context c = itemView.getContext(); //TODO: startActivity } } }); //TODO: set other child views' listener .... } }
6View the answer