use of android.view.LayoutInflater in project android-advancedrecyclerview by h6ah4i.
the class VerticalSwipeableExampleAdapter method onCreateViewHolder.
@Override
public MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
final LayoutInflater inflater = LayoutInflater.from(parent.getContext());
final View v = inflater.inflate(R.layout.list_item_v, parent, false);
return new MyViewHolder(v);
}
use of android.view.LayoutInflater in project android-advancedrecyclerview by h6ah4i.
the class SwipeableWithButtonExampleAdapter method onCreateViewHolder.
@Override
public MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
final LayoutInflater inflater = LayoutInflater.from(parent.getContext());
final View v = inflater.inflate(R.layout.list_item_with_leave_behind_button, parent, false);
return new MyViewHolder(v);
}
use of android.view.LayoutInflater in project android-advancedrecyclerview by h6ah4i.
the class ExpandableDraggableSwipeableExampleAdapter method onCreateChildViewHolder.
@Override
public MyChildViewHolder onCreateChildViewHolder(ViewGroup parent, int viewType) {
final LayoutInflater inflater = LayoutInflater.from(parent.getContext());
final View v = inflater.inflate(R.layout.list_item_draggable, parent, false);
return new MyChildViewHolder(v);
}
use of android.view.LayoutInflater in project android-advancedrecyclerview by h6ah4i.
the class DraggableExampleItemAdapter method onCreateViewHolder.
@Override
public MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
final LayoutInflater inflater = LayoutInflater.from(parent.getContext());
final View v = inflater.inflate((viewType == 0) ? R.layout.list_item_draggable : R.layout.list_item2_draggable, parent, false);
return new MyViewHolder(v);
}
use of android.view.LayoutInflater in project android-advancedrecyclerview by h6ah4i.
the class DraggableGridExampleAdapter method onCreateViewHolder.
@Override
public MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
final LayoutInflater inflater = LayoutInflater.from(parent.getContext());
final View v = inflater.inflate(R.layout.list_grid_item, parent, false);
return new MyViewHolder(v);
}
Aggregations