Home
last modified time | relevance | path

Searched refs:cardView (Results 1 – 12 of 12) sorted by relevance

/development/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/cards/presenters/
DSideInfoCardPresenter.java42 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()
DImageCardViewPresenter.java55 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()
DAbstractCardPresenter.java46 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
DSingleLineCardPresenter.java33 @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()
DTextCardPresenter.java37 public void onBindViewHolder(Card card, TextCardView cardView) { in onBindViewHolder() argument
38 cardView.updateUi(card); in onBindViewHolder()
DCharacterCardPresenter.java36 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/
DCardFlip.java170 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/
DCardStreamLinearLayout.java210 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()
DCard.java487 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/
DDragAndDropActivity.java92 touchVH.cardView.setCardBackgroundColor(getResources().getColor(android.R.color.white));
100 touchVH.cardView.setCardBackgroundColor(getResources().getColor(R.color.card_aquatic));
DSwipeToDismissActivity.java106 touchVH.cardView.setCardBackgroundColor(getResources().getColor(android.R.color.white)); in clearView()
115 touchVH.cardView.setCardBackgroundColor(getResources().getColor(R.color.card_aquatic)); in onSelectedChanged()
DItemTouchHelperActivity.java233 public final CardView cardView;
239 cardView = (CardView) itemView;