Home
last modified time | relevance | path

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

/developers/build/prebuilts/androidtv/leanback/app/src/main/java/com/example/android/tvleanback/presenter/
DCardPresenter.java50 ImageCardView cardView = new ImageCardView(parent.getContext()) { in onCreateViewHolder() local
58 cardView.setFocusable(true); in onCreateViewHolder()
59 cardView.setFocusableInTouchMode(true); in onCreateViewHolder()
60 updateCardBackgroundColor(cardView, false); in onCreateViewHolder()
61 return new ViewHolder(cardView); in onCreateViewHolder()
75 ImageCardView cardView = (ImageCardView) viewHolder.view; in onBindViewHolder() local
79 cardView.setTitleText(movie.getTitle()); in onBindViewHolder()
80 cardView.setContentText(movie.getStudio()); in onBindViewHolder()
81 cardView.setMainImageDimensions(CARD_WIDTH, CARD_HEIGHT); in onBindViewHolder()
86 .into(cardView.getMainImageView()); in onBindViewHolder()
[all …]
/developers/samples/android/ui/views/CardView/kotlinApp/Application/src/main/java/com/example/android/cardview/
DCardViewFragment.kt37 @VisibleForTesting lateinit var cardView: CardView variable in com.example.android.cardview.CardViewFragment
55 cardView = view.findViewById(R.id.cardview) in onViewCreated()
61 cardView.radius = progress.toFloat() in onViewCreated()
73 cardView.elevation = progress.toFloat() in onViewCreated()
/developers/build/prebuilts/gradle/CardView/kotlinApp/Application/src/main/java/com/example/android/cardview/
DCardViewFragment.kt37 @VisibleForTesting lateinit var cardView: CardView variable in com.example.android.cardview.CardViewFragment
55 cardView = view.findViewById(R.id.cardview) in onViewCreated()
61 cardView.radius = progress.toFloat() in onViewCreated()
73 cardView.elevation = progress.toFloat() in onViewCreated()
/developers/build/prebuilts/androidtv/leanback/app/src/main/java/com/example/android/leanback/
DCardPresenter.java82 ImageCardView cardView = new ImageCardView(mContext); in onCreateViewHolder() local
83 cardView.setFocusable(true); in onCreateViewHolder()
84 cardView.setFocusableInTouchMode(true); in onCreateViewHolder()
85 cardView.setBackgroundColor(mContext.getResources().getColor(R.color.fastlane_background)); in onCreateViewHolder()
86 return new ViewHolder(cardView); in onCreateViewHolder()
/developers/build/prebuilts/gradle/CardView/kotlinApp/Application/tests/src/com/example/android/cardview/
DSampleTests.kt57 assertEquals(radius, fragment.cardView.radius) in testRadiusSeekbarChangesRadiusOfCardView()
65 assertEquals(elevation, fragment.cardView.elevation) in testElevationSeekbarChangesElevationOfCardView()
/developers/samples/android/ui/views/CardView/kotlinApp/Application/tests/src/com/example/android/cardview/
DSampleTests.kt57 assertEquals(radius, fragment.cardView.radius) in testRadiusSeekbarChangesRadiusOfCardView()
65 assertEquals(elevation, fragment.cardView.elevation) in testElevationSeekbarChangesElevationOfCardView()
/developers/build/prebuilts/gradle/BatchStepSensor/Application/src/main/java/com/example/android/batchstepsensor/cardstream/
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
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()
/developers/build/prebuilts/gradle/AutofillFramework/kotlinApp/Application/src/main/java/com/example/android/autofillframework/app/
DNavigationItem.kt29 import kotlinx.android.synthetic.main.navigation_item.view.cardView
63 cardView.setOnClickListener(l) in setNavigationButtonClickListener()
/developers/samples/android/input/autofill/AutofillFramework/kotlinApp/Application/src/main/java/com/example/android/autofillframework/app/
DNavigationItem.kt29 import kotlinx.android.synthetic.main.navigation_item.view.cardView
63 cardView.setOnClickListener(l) in setNavigationButtonClickListener()
/developers/build/templates/CardStream/_MODULE_/src/template/java/_PACKAGE_/cardstream/
DCardStreamLinearLayout.java.ftl207 * @param cardView a card view
210 public void addCard(View cardView, boolean canDismiss) {
211 if (cardView.getParent() == null) {
212 initCard(cardView, canDismiss);
214 ViewGroup.LayoutParams param = cardView.getLayoutParams();
218 super.addView(cardView, -1, param);
438 private void initCard(View cardView, boolean canDismiss) {
439 resetAnimatedView(cardView);
440 cardView.setOnTouchListener(mTouchListener);
442 mFixedViewList.add(cardView);
DCard.java.ftl487 ViewGroup cardView = (ViewGroup) inflater.inflate(mCard.mLayoutId,
491 View viewTitle = cardView.findViewById(R.id.card_title);
500 View viewDesc = cardView.findViewById(R.id.card_content);
505 cardView.findViewById(R.id.card_content).setVisibility(View.GONE);
509 ViewGroup actionArea = (ViewGroup) cardView.findViewById(R.id.card_actionarea);
515 initializeActionViews(inflater, cardView, actionArea);
517 mCard.mCardView = cardView;
518 mCard.mOverlayView = cardView.findViewById(R.id.card_overlay);
538 * @param cardView
541 private void initializeActionViews(LayoutInflater inflater, ViewGroup cardView,
/developers/build/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/view/widget/
DNavigationItem.java87 CardView outerView = rootView.findViewById(R.id.cardView); in NavigationItem()
/developers/samples/android/input/autofill/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/view/widget/
DNavigationItem.java87 CardView outerView = rootView.findViewById(R.id.cardView); in NavigationItem()