Home
last modified time | relevance | path

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

/frameworks/support/leanback/src/androidTest/java/androidx/leanback/widget/
DBaseCardViewTest.java84 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/
DCardViewApi21Impl.java29 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 …]
DCardViewBaseImpl.java80 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 …]
DCardViewImpl.java27 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/
DCardPresenter.java51 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/
DCardPresenter.java51 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/
DCardActivity.java72 public CardViewHolder(CardView cardView) { in CardViewHolder() argument
73 super(cardView.getView()); in CardViewHolder()
74 mCardView = cardView; in CardViewHolder()
DCardFragmentActivity.java73 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/
DDetailsTestSupportFragment.java47 ImageCardView cardView = new ImageCardView(getActivity());
48 cardView.setFocusable(true);
49 cardView.setFocusableInTouchMode(true);
50 return new ViewHolder(cardView);
DDetailsTestFragment.java50 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/
DDragAndDropActivity.java91 touchVH.cardView.setCardBackgroundColor(
100 touchVH.cardView.setCardBackgroundColor(
DSwipeToDismissActivity.java101 touchVH.cardView.setCardBackgroundColor( in clearView()
110 touchVH.cardView.setCardBackgroundColor( in onSelectedChanged()
DItemTouchHelperActivity.java238 public final CardView cardView;
244 cardView = (CardView) itemView;