/development/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/cards/presenters/ |
D | SideInfoCardPresenter.java | 42 final BaseCardView cardView = new BaseCardView(getContext(), null, in onCreateView() local 44 cardView.setFocusable(true); in onCreateView() 45 cardView.addView(LayoutInflater.from(getContext()).inflate(R.layout.side_info_card, null)); in onCreateView() 46 return cardView; in onCreateView() 50 public void onBindViewHolder(Card card, BaseCardView cardView) { in onBindViewHolder() argument 51 ImageView imageView = (ImageView) cardView.findViewById(R.id.main_image); in onBindViewHolder() 64 TextView primaryText = (TextView) cardView.findViewById(R.id.primary_text); in onBindViewHolder() 67 TextView secondaryText = (TextView) cardView.findViewById(R.id.secondary_text); in onBindViewHolder() 70 TextView extraText = (TextView) cardView.findViewById(R.id.extra_text); in onBindViewHolder()
|
D | ImageCardViewPresenter.java | 55 public void onBindViewHolder(Card card, final ImageCardView cardView) { in onBindViewHolder() argument 56 cardView.setTag(card); in onBindViewHolder() 57 cardView.setTitleText(card.getTitle()); in onBindViewHolder() 58 cardView.setContentText(card.getDescription()); in onBindViewHolder() 63 Picasso.with(getContext()).load(resourceId).into(cardView.getMainImageView()); in onBindViewHolder()
|
D | AbstractCardPresenter.java | 46 T cardView = onCreateView(); in onCreateViewHolder() local 47 return new ViewHolder(cardView); in onCreateViewHolder() 59 public void onUnbindViewHolder(T cardView) { in onUnbindViewHolder() argument 77 public abstract void onBindViewHolder(Card card, T cardView); in onBindViewHolder() argument
|
D | SingleLineCardPresenter.java | 33 @Override public void onBindViewHolder(Card card, ImageCardView cardView) { in onBindViewHolder() argument 34 super.onBindViewHolder(card, cardView); in onBindViewHolder() 35 cardView.setInfoAreaBackgroundColor(card.getFooterColor()); in onBindViewHolder()
|
D | TextCardPresenter.java | 37 public void onBindViewHolder(Card card, TextCardView cardView) { in onBindViewHolder() argument 38 cardView.updateUi(card); in onBindViewHolder()
|
D | CharacterCardPresenter.java | 36 public void onBindViewHolder(Card card, CharacterCardView cardView) { in onBindViewHolder() argument 37 cardView.updateUi(card); in onBindViewHolder()
|
/development/samples/devbytes/animation/CardFlip/src/com/example/android/cardflip/ |
D | CardFlip.java | 170 public void rotateCardView(final CardView cardView, int stack, float velocityX, in rotateCardView() argument 186 mLayout.bringChildToFront(cardView); in rotateCardView() 189 leftStack.add(cardView); in rotateCardView() 190 cardView.flipRightToLeft(leftStack.size() - 1, (int)velocityX); in rotateCardView() 202 mLayout.bringChildToFront(cardView); in rotateCardView() 205 rightStack.add(cardView); in rotateCardView() 206 cardView.flipLeftToRight(rightStack.size() - 1, (int)velocityX); in rotateCardView() 249 CardView cardView = cards.get(i); in rotateCards() local 250 animations.add(cardView.getRotationAnimator(i, corner, isRotatingOut, false)); in rotateCards() 251 mLayout.bringChildToFront(cardView); in rotateCards() [all …]
|
/development/samples/browseable/BatchStepSensor/src/com.example.android.batchstepsensor/cardstream/ |
D | CardStreamLinearLayout.java | 210 public void addCard(View cardView, boolean canDismiss) { in addCard() argument 211 if (cardView.getParent() == null) { in addCard() 212 initCard(cardView, canDismiss); in addCard() 214 ViewGroup.LayoutParams param = cardView.getLayoutParams(); in addCard() 218 super.addView(cardView, -1, param); in addCard() 438 private void initCard(View cardView, boolean canDismiss) { in initCard() argument 439 resetAnimatedView(cardView); in initCard() 440 cardView.setOnTouchListener(mTouchListener); in initCard() 442 mFixedViewList.add(cardView); in initCard()
|
D | Card.java | 487 ViewGroup cardView = (ViewGroup) inflater.inflate(mCard.mLayoutId, in build() local 491 View viewTitle = cardView.findViewById(R.id.card_title); in build() 500 View viewDesc = cardView.findViewById(R.id.card_content); in build() 505 cardView.findViewById(R.id.card_content).setVisibility(View.GONE); in build() 509 ViewGroup actionArea = (ViewGroup) cardView.findViewById(R.id.card_actionarea); in build() 515 initializeActionViews(inflater, cardView, actionArea); in build() 517 mCard.mCardView = cardView; in build() 518 mCard.mOverlayView = cardView.findViewById(R.id.card_overlay); in build() 541 private void initializeActionViews(LayoutInflater inflater, ViewGroup cardView, in initializeActionViews() argument
|
/development/samples/Support7Demos/src/com/example/android/supportv7/widget/touch/ |
D | DragAndDropActivity.java | 92 touchVH.cardView.setCardBackgroundColor(getResources().getColor(android.R.color.white)); 100 touchVH.cardView.setCardBackgroundColor(getResources().getColor(R.color.card_aquatic));
|
D | SwipeToDismissActivity.java | 106 touchVH.cardView.setCardBackgroundColor(getResources().getColor(android.R.color.white)); in clearView() 115 touchVH.cardView.setCardBackgroundColor(getResources().getColor(R.color.card_aquatic)); in onSelectedChanged()
|
D | ItemTouchHelperActivity.java | 233 public final CardView cardView; 239 cardView = (CardView) itemView;
|