Lines Matching refs:position
364 final int position = holder.getAdapterPosition();
365 if (position == RecyclerView.NO_POSITION) {
369 mAdapter.notifyItemChanged(position);
395 private void removeAtPosition(int position) {
396 if(position < mItems.size()) {
397 mItems.remove(position);
398 mAdapter.notifyItemRemoved(position);
402 private void addAtPosition(int position, String text) {
403 if (position > mItems.size()) {
404 position = mItems.size();
406 mItems.add(position, text);
409 mAdapter.notifyItemInserted(position);
479 // (cached in previousViews). For each of these views, position it where
480 // it would go, according to its position relative to the visible
499 int position = params.getViewLayoutPosition();
501 if (position < mFirstPosition) {
502 newTop = view.getHeight() * (position - mFirstPosition);
505 (position - lastPosition);
700 public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {
701 String itemText = mData.get(position);