Examples of ViewHolder


Examples of adiep.meemidroid.dialogs.listadapters.LazyAdapterMeemisList.ViewHolder

  @Override
  public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) {
    super.onCreateContextMenu(menu, v, menuInfo);
   
    AdapterContextMenuInfo TmpMenuInfo = (AdapterContextMenuInfo)menuInfo;
    ViewHolder TmpViewHolder = (ViewHolder)TmpMenuInfo.targetView.getTag();
   
    if (!TmpViewHolder.IsLoadOtherMeemi) {
      menu.add(ContextMenu.NONE, CM_SHOWUSERINFO, ContextMenu.NONE, R.string.MeemiListContextMenuShowUser);
      menu.add(ContextMenu.NONE, CM_SHOWCOMMENTS, ContextMenu.NONE, R.string.MeemiListContextMenuShowComments);
      menu.add(ContextMenu.NONE, CM_REPLAY, ContextMenu.NONE, R.string.MeemiListContextMenuReply);
View Full Code Here

Examples of adiep.meemidroid.dialogs.listadapters.LazyAdapterRepliesList.ViewHolder

  @Override
  public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) {
    super.onCreateContextMenu(menu, v, menuInfo);
   
    AdapterContextMenuInfo TmpMenuInfo = (AdapterContextMenuInfo)menuInfo;
    ViewHolder TmpViewHolder = (ViewHolder)TmpMenuInfo.targetView.getTag();
   
    if (!TmpViewHolder.IsLoadOtherReplies) {
      menu.add(ContextMenu.NONE, CM_SHOWUSERINFO, ContextMenu.NONE, R.string.MeemiListContextMenuShowUser);
     
      if (!TmpViewHolder.IsOriginalMeemi) {
View Full Code Here

Examples of adiep.meemidroid.dialogs.listadapters.LazyAdapterUsersList.ViewHolder

  @Override
  public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) {
    super.onCreateContextMenu(menu, v, menuInfo);
   
    AdapterContextMenuInfo TmpMenuInfo = (AdapterContextMenuInfo)menuInfo;
    ViewHolder TmpViewHolder = (ViewHolder)TmpMenuInfo.targetView.getTag();
   
    if (!TmpViewHolder.IsLoadOtherUsers) {
      menu.add(ContextMenu.NONE, CM_SHOWUSERINFO, ContextMenu.NONE, R.string.UserListContextMenuShow);
      menu.add(ContextMenu.NONE, CM_SENDPRIVATEMSG, ContextMenu.NONE, R.string.UserListContextMenuSend);
    }
View Full Code Here

Examples of android.support.v7.widget.RecyclerView.ViewHolder

    private static View findNextScrapView(List<ViewHolder> scrapList, Direction direction,
                                          int position) {
        final int scrapCount = scrapList.size();

        ViewHolder closest = null;
        int closestDistance = Integer.MAX_VALUE;

        for (int i = 0; i < scrapCount; i++) {
            final ViewHolder holder = scrapList.get(i);

            final int distance = holder.getPosition() - position;
            if ((distance < 0 && direction == Direction.END) ||
                    (distance > 0 && direction == Direction.START)) {
                continue;
            }
View Full Code Here

Examples of android.support.v7.widget.RecyclerView.ViewHolder

                    changes.clear();
                    mChangesList.remove(changes);
                }
            };
            if (removalsPending) {
                ViewHolder holder = changes.get(0).oldHolder;
                ViewCompat.postOnAnimationDelayed(holder.itemView, changer, getRemoveDuration());
            } else {
                changer.run();
            }
        }
View Full Code Here

Examples of android.support.v7.widget.RecyclerView.ViewHolder

        mPendingChanges.add(new ChangeInfo(oldHolder, newHolder, fromX, fromY, toX, toY));
        return true;
    }

    private void animateChangeImpl(final ChangeInfo changeInfo) {
        final ViewHolder holder = changeInfo.oldHolder;
        final View view = holder.itemView;
        final ViewHolder newHolder = changeInfo.newHolder;
        final View newView = newHolder != null ? newHolder.itemView : null;
        mChangeAnimations.add(changeInfo.oldHolder);

        final ViewPropertyAnimatorCompat oldViewAnim = ViewCompat.animate(view).setDuration(
                getChangeDuration());
View Full Code Here

Examples of android.support.v7.widget.RecyclerView.ViewHolder

            dispatchMoveFinished(item.holder);
            mPendingMoves.remove(i);
        }
        count = mPendingRemovals.size();
        for (int i = count - 1; i >= 0; i--) {
            ViewHolder item = mPendingRemovals.get(i);
            dispatchRemoveFinished(item);
            mPendingRemovals.remove(i);
        }
        count = mPendingAdditions.size();
        for (int i = count - 1; i >= 0; i--) {
            ViewHolder item = mPendingAdditions.get(i);
            View view = item.itemView;
            ViewCompat.setAlpha(view, 1);
            dispatchAddFinished(item);
            mPendingAdditions.remove(i);
        }
        count = mPendingChanges.size();
        for (int i = count - 1; i >= 0; i--) {
            endChangeAnimationIfNecessary(mPendingChanges.get(i));
        }
        mPendingChanges.clear();
        if (!isRunning()) {
            return;
        }

        int listCount = mMovesList.size();
        for (int i = listCount - 1; i >= 0; i--) {
            ArrayList<MoveInfo> moves = mMovesList.get(i);
            count = moves.size();
            for (int j = count - 1; j >= 0; j--) {
                MoveInfo moveInfo = moves.get(j);
                ViewHolder item = moveInfo.holder;
                View view = item.itemView;
                ViewCompat.setTranslationY(view, 0);
                ViewCompat.setTranslationX(view, 0);
                dispatchMoveFinished(moveInfo.holder);
                moves.remove(j);
                if (moves.isEmpty()) {
                    mMovesList.remove(moves);
                }
            }
        }
        listCount = mAdditionsList.size();
        for (int i = listCount - 1; i >= 0; i--) {
            ArrayList<ViewHolder> additions = mAdditionsList.get(i);
            count = additions.size();
            for (int j = count - 1; j >= 0; j--) {
                ViewHolder item = additions.get(j);
                View view = item.itemView;
                ViewCompat.setAlpha(view, 1);
                dispatchAddFinished(item);
                additions.remove(j);
                if (additions.isEmpty()) {
View Full Code Here

Examples of android.support.v7.widget.RecyclerView.ViewHolder

    private static View findNextScrapView(List<ViewHolder> scrapList, Direction direction,
                                          int position) {
        final int scrapCount = scrapList.size();

        ViewHolder closest = null;
        int closestDistance = Integer.MAX_VALUE;

        for (int i = 0; i < scrapCount; i++) {
            final ViewHolder holder = scrapList.get(i);

            final int distance = holder.getPosition() - position;
            if ((distance < 0 && direction == Direction.END) ||
                    (distance > 0 && direction == Direction.START)) {
                continue;
            }
View Full Code Here

Examples of app.ui.BusinessListArrayAdapter.ViewHolder

  public long getItemId(int position) {
    return position;
  }

  public View getView(int position, View convertView, ViewGroup parent) {
    ViewHolder holder;
   
    if (convertView == null){
      convertView = mInflater.inflate(R.layout.list_row_layout, null);
      holder = new ViewHolder();
      holder.title = (TextView) convertView.findViewById(R.id.row_title_text);
      holder.rateBar = (RatingBar) convertView.findViewById(R.id.row_rate_ratingbar);
      holder.distance = (TextView) convertView.findViewById(R.id.row_distance_text);
      holder.name = (TextView) convertView.findViewById(R.id.row_business_name_text);
      holder.moneyBar = (RatingBar) convertView.findViewById(R.id.row_moeny_ratingbar);
View Full Code Here

Examples of app.ui.BusinessListArrayAdapter.ViewHolder

  public long getItemId(int position) {
    return position;
  }

  public View getView(int position, View convertView, ViewGroup parent) {
    ViewHolder holder;
   
    if (convertView == null){
      convertView = mInflater.inflate(R.layout.list_row_layout, null);
      holder = new ViewHolder();
      holder.title = (TextView) convertView.findViewById(R.id.row_title_text);
      holder.rateBar = (RatingBar) convertView.findViewById(R.id.row_rate_ratingbar);
      holder.distance = (TextView) convertView.findViewById(R.id.row_distance_text);
      holder.name = (TextView) convertView.findViewById(R.id.row_business_name_text);
      holder.moneyBar = (RatingBar) convertView.findViewById(R.id.row_moeny_ratingbar);
View Full Code Here
TOP
Copyright © 2015 www.androidadb.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.