Skip to content

Instantly share code, notes, and snippets.

@RitvikMandyam
RitvikMandyam / BUILD
Created May 19, 2021 04:10
MediaPipe Holistic Tracking for Android
# Copyright 2019 The MediaPipe Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
public class BindingRecyclerAdapter extends RecyclerView.Adapter {
private List<Item> items;
public static class BindingHolder extends RecyclerView.ViewHolder {
private ViewDataBinding binding;
public BindingHolder(View rowView) {
super(rowView);
binding = DataBindingUtil.bind(rowView);
}