/frameworks/support/leanback/src/androidTest/java/androidx/leanback/widget/ |
D | BaseCardViewTest.java | 84 BaseCardView cardView = new BaseCardView(InstrumentationRegistry.getContext()); in infoOver_InfoVisibleAlways() local 85 View main = new View(cardView.getContext()); in infoOver_InfoVisibleAlways() 87 cardView.addView(main); in infoOver_InfoVisibleAlways() 88 View info = new View(cardView.getContext()); in infoOver_InfoVisibleAlways() 92 cardView.addView(info); in infoOver_InfoVisibleAlways() 93 cardView.setCardType(BaseCardView.CARD_TYPE_INFO_OVER); in infoOver_InfoVisibleAlways() 94 cardView.setInfoVisibility(BaseCardView.CARD_REGION_VISIBLE_ALWAYS); in infoOver_InfoVisibleAlways() 96 measureAndLayout(cardView, 500, 500); in infoOver_InfoVisibleAlways() 100 cardView.setActivated(true); in infoOver_InfoVisibleAlways() 101 assertFalse(cardView.isLayoutRequested()); in infoOver_InfoVisibleAlways() [all …]
|
/frameworks/support/cardview/src/main/java/androidx/cardview/widget/ |
D | CardViewApi21Impl.java | 29 public void initialize(CardViewDelegate cardView, Context context, in initialize() argument 32 cardView.setCardBackground(background); in initialize() 34 View view = cardView.getCardView(); in initialize() 37 setMaxElevation(cardView, maxElevation); in initialize() 41 public void setRadius(CardViewDelegate cardView, float radius) { in setRadius() argument 42 getCardBackground(cardView).setRadius(radius); in setRadius() 50 public void setMaxElevation(CardViewDelegate cardView, float maxElevation) { in setMaxElevation() argument 51 getCardBackground(cardView).setPadding(maxElevation, in setMaxElevation() 52 cardView.getUseCompatPadding(), cardView.getPreventCornerOverlap()); in setMaxElevation() 53 updatePadding(cardView); in setMaxElevation() [all …]
|
D | CardViewBaseImpl.java | 80 public void initialize(CardViewDelegate cardView, Context context, in initialize() argument 84 background.setAddPaddingForCorners(cardView.getPreventCornerOverlap()); in initialize() 85 cardView.setCardBackground(background); in initialize() 86 updatePadding(cardView); in initialize() 97 public void updatePadding(CardViewDelegate cardView) { in updatePadding() argument 99 getShadowBackground(cardView).getMaxShadowAndCornerPadding(shadowPadding); in updatePadding() 100 cardView.setMinWidthHeightInternal((int) Math.ceil(getMinWidth(cardView)), in updatePadding() 101 (int) Math.ceil(getMinHeight(cardView))); in updatePadding() 102 cardView.setShadowPadding(shadowPadding.left, shadowPadding.top, in updatePadding() 107 public void onCompatPaddingChanged(CardViewDelegate cardView) { in onCompatPaddingChanged() argument [all …]
|
D | CardViewImpl.java | 27 void initialize(CardViewDelegate cardView, Context context, ColorStateList backgroundColor, in initialize() argument 30 void setRadius(CardViewDelegate cardView, float radius); in setRadius() argument 32 float getRadius(CardViewDelegate cardView); in getRadius() argument 34 void setElevation(CardViewDelegate cardView, float elevation); in setElevation() argument 36 float getElevation(CardViewDelegate cardView); in getElevation() argument 40 void setMaxElevation(CardViewDelegate cardView, float maxElevation); in setMaxElevation() argument 42 float getMaxElevation(CardViewDelegate cardView); in getMaxElevation() argument 44 float getMinWidth(CardViewDelegate cardView); in getMinWidth() argument 46 float getMinHeight(CardViewDelegate cardView); in getMinHeight() argument 48 void updatePadding(CardViewDelegate cardView); in updatePadding() argument [all …]
|
/frameworks/support/samples/SupportLeanbackJank/src/main/java/com/google/android/leanbackjank/presenter/ |
D | CardPresenter.java | 51 ImageCardView cardView = new ImageCardView(parent.getContext()) { in onCreateViewHolder() local 60 cardView.setFocusable(true); in onCreateViewHolder() 61 cardView.setFocusableInTouchMode(true); in onCreateViewHolder() 62 return new ViewHolder(cardView); in onCreateViewHolder() 69 final ImageCardView cardView = (ImageCardView) viewHolder.view; in onBindViewHolder() local 70 cardView.setTitleText(videoInfo.getTitle()); in onBindViewHolder() 71 cardView.setContentText(videoInfo.getStudio()); in onBindViewHolder() 72 cardView.setMainImageDimensions(mCardWidth, mCardHeight); in onBindViewHolder() 73 cardView.setBackgroundColor(mDefaultBackgroundColor); in onBindViewHolder() 75 Glide.with(cardView.getContext()) in onBindViewHolder() [all …]
|
/frameworks/base/tests/UiBench/src/com/android/test/uibench/leanback/ |
D | CardPresenter.java | 51 ImageCardView cardView = (ImageCardView) viewHolder.view; in onBindViewHolder() local 52 cardView.setTitleText(photoItem.getTitle()); in onBindViewHolder() 53 BitmapLoader.loadBitmap(cardView.getMainImageView(), photoItem.getId(), in onBindViewHolder() 59 ImageCardView cardView = (ImageCardView) viewHolder.view; in onUnbindViewHolder() local 60 BitmapLoader.cancel(cardView.getMainImageView()); in onUnbindViewHolder()
|
/frameworks/support/samples/ViewPager2Demos/src/main/java/com/example/androidx/viewpager2/ |
D | CardActivity.java | 72 public CardViewHolder(CardView cardView) { in CardViewHolder() argument 73 super(cardView.getView()); in CardViewHolder() 74 mCardView = cardView; in CardViewHolder()
|
D | CardFragmentActivity.java | 73 CardView cardView = new CardView(getLayoutInflater(), container); in onCreateView() local 74 cardView.bind(Card.fromBundle(getArguments())); in onCreateView() 75 return cardView.getView(); in onCreateView()
|
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/app/ |
D | DetailsTestSupportFragment.java | 47 ImageCardView cardView = new ImageCardView(getActivity()); 48 cardView.setFocusable(true); 49 cardView.setFocusableInTouchMode(true); 50 return new ViewHolder(cardView);
|
D | DetailsTestFragment.java | 50 ImageCardView cardView = new ImageCardView(getActivity()); 51 cardView.setFocusable(true); 52 cardView.setFocusableInTouchMode(true); 53 return new ViewHolder(cardView);
|
/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/widget/touch/ |
D | DragAndDropActivity.java | 91 touchVH.cardView.setCardBackgroundColor( 100 touchVH.cardView.setCardBackgroundColor(
|
D | SwipeToDismissActivity.java | 101 touchVH.cardView.setCardBackgroundColor( in clearView() 110 touchVH.cardView.setCardBackgroundColor( in onSelectedChanged()
|
D | ItemTouchHelperActivity.java | 238 public final CardView cardView; 244 cardView = (CardView) itemView;
|