/frameworks/support/v7/cardview/api21/android/support/v7/widget/ |
CardViewApi21.java | 26 public void initialize(CardViewDelegate cardView, Context context, 29 cardView.setCardBackground(background); 31 View view = cardView.getCardView(); 34 setMaxElevation(cardView, maxElevation); 38 public void setRadius(CardViewDelegate cardView, float radius) { 39 getCardBackground(cardView).setRadius(radius); 47 public void setMaxElevation(CardViewDelegate cardView, float maxElevation) { 48 getCardBackground(cardView).setPadding(maxElevation, 49 cardView.getUseCompatPadding(), cardView.getPreventCornerOverlap()) [all...] |
/frameworks/support/v7/cardview/base/android/support/v7/widget/ |
CardViewImpl.java | 23 * Interface for platform specific CardView implementations. 26 void initialize(CardViewDelegate cardView, Context context, ColorStateList backgroundColor, 29 void setRadius(CardViewDelegate cardView, float radius); 31 float getRadius(CardViewDelegate cardView); 33 void setElevation(CardViewDelegate cardView, float elevation); 35 float getElevation(CardViewDelegate cardView); 39 void setMaxElevation(CardViewDelegate cardView, float maxElevation); 41 float getMaxElevation(CardViewDelegate cardView); 43 float getMinWidth(CardViewDelegate cardView); 45 float getMinHeight(CardViewDelegate cardView); [all...] |
/development/samples/browseable/CardView/ |
_index.jd | 2 page.tags="CardView Sample" 8 This sample demonstrates how to use CardView introduced in the support library for the
|
/frameworks/support/v7/cardview/eclair-mr1/android/support/v7/widget/ |
CardViewEclairMr1.java | 80 public void initialize(CardViewDelegate cardView, Context context, 84 background.setAddPaddingForCorners(cardView.getPreventCornerOverlap()); 85 cardView.setCardBackground(background); 86 updatePadding(cardView); 97 public void updatePadding(CardViewDelegate cardView) { 99 getShadowBackground(cardView).getMaxShadowAndCornerPadding(shadowPadding); 100 cardView.setMinWidthHeightInternal((int) Math.ceil(getMinWidth(cardView)), 101 (int) Math.ceil(getMinHeight(cardView))); 102 cardView.setShadowPadding(shadowPadding.left, shadowPadding.top [all...] |
/cts/tests/leanbackjank/app/src/android/leanbackjank/app/presenter/ |
CardPresenter.java | 30 * It contains an Image CardView 46 ImageCardView cardView = new ImageCardView(parent.getContext()) { 54 cardView.setFocusable(true); 55 cardView.setFocusableInTouchMode(true); 56 updateCardBackgroundColor(cardView, false); 57 return new ViewHolder(cardView); 71 ImageCardView cardView = (ImageCardView) viewHolder.view; 73 cardView.setTitleText(movie.getTitle()); 74 cardView.setContentText(movie.getStudio()); 75 cardView.setMainImageDimensions(CARD_WIDTH, CARD_HEIGHT) [all...] |
/frameworks/support/v7/cardview/src/android/support/v7/widget/ |
CardView.java | 28 import android.support.v7.cardview.R; 36 * CardView uses <code>elevation</code> property on Lollipop for shadows and falls back to a 39 * Due to expensive nature of rounded corner clipping, on platforms before Lollipop, CardView does 43 * Before Lollipop, CardView adds padding to its content and draws shadows to that area. This 47 * Since padding is used to offset content for shadows, you cannot set padding on CardView. 50 * the CardView and children of CardView. 52 * Note that, if you specify exact dimensions for the CardView, because of the shadows, its content 54 * specific resource values, you can avoid these changes. Alternatively, If you want CardView to add 58 * To change CardView's elevation in a backward compatible way, us [all...] |
/frameworks/support/v7/cardview/api/ |
22.0.0.txt | 3 public class CardView extends android.widget.FrameLayout { 4 ctor public CardView(android.content.Context); 5 ctor public CardView(android.content.Context, android.util.AttributeSet); 6 ctor public CardView(android.content.Context, android.util.AttributeSet, int);
|
22.1.0.txt | 3 public class CardView extends android.widget.FrameLayout { 4 ctor public CardView(android.content.Context); 5 ctor public CardView(android.content.Context, android.util.AttributeSet); 6 ctor public CardView(android.content.Context, android.util.AttributeSet, int);
|
22.2.0.txt | 3 public class CardView extends android.widget.FrameLayout { 4 ctor public CardView(android.content.Context); 5 ctor public CardView(android.content.Context, android.util.AttributeSet); 6 ctor public CardView(android.content.Context, android.util.AttributeSet, int);
|
22.2.1.txt | 3 public class CardView extends android.widget.FrameLayout { 4 ctor public CardView(android.content.Context); 5 ctor public CardView(android.content.Context, android.util.AttributeSet); 6 ctor public CardView(android.content.Context, android.util.AttributeSet, int);
|
23.0.0.txt | 3 public class CardView extends android.widget.FrameLayout { 4 ctor public CardView(android.content.Context); 5 ctor public CardView(android.content.Context, android.util.AttributeSet); 6 ctor public CardView(android.content.Context, android.util.AttributeSet, int);
|
23.1.0.txt | 3 public class CardView extends android.widget.FrameLayout { 4 ctor public CardView(android.content.Context); 5 ctor public CardView(android.content.Context, android.util.AttributeSet); 6 ctor public CardView(android.content.Context, android.util.AttributeSet, int);
|
23.1.1.txt | 3 public class CardView extends android.widget.FrameLayout { 4 ctor public CardView(android.content.Context); 5 ctor public CardView(android.content.Context, android.util.AttributeSet); 6 ctor public CardView(android.content.Context, android.util.AttributeSet, int);
|
current.txt | 3 public class CardView extends android.widget.FrameLayout { 4 ctor public CardView(android.content.Context); 5 ctor public CardView(android.content.Context, android.util.AttributeSet); 6 ctor public CardView(android.content.Context, android.util.AttributeSet, int);
|
/frameworks/support/v7/cardview/res/values/ |
attrs.xml | 18 <declare-styleable name="CardView"> 19 <!-- Background color for CardView. --> 21 <!-- Corner radius for CardView. --> 23 <!-- Elevation for CardView. --> 25 <!-- Maximum Elevation for CardView. --> 29 <!-- Add padding to CardView on v20 and before to prevent intersections between the Card content and rounded corners. --> 31 <!-- Inner padding between the edges of the Card and children of the CardView. --> 33 <!-- Inner padding between the left edge of the Card and children of the CardView. --> 35 <!-- Inner padding between the right edge of the Card and children of the CardView. --> 37 <!-- Inner padding between the top edge of the Card and children of the CardView. -- [all...] |
styles.xml | 18 <style name="Base.CardView" parent="android:Widget"> 26 <!-- On older platforms we do not explicitly set a background color and let CardView compute 28 <style name="CardView" parent="Base.CardView"> 31 <style name="CardView.Light"> 35 <style name="CardView.Dark">
|
/prebuilts/sdk/current/support/v7/cardview/res/values/ |
attrs.xml | 18 <declare-styleable name="CardView"> 19 <!-- Background color for CardView. --> 21 <!-- Corner radius for CardView. --> 23 <!-- Elevation for CardView. --> 25 <!-- Maximum Elevation for CardView. --> 29 <!-- Add padding to CardView on v20 and before to prevent intersections between the Card content and rounded corners. --> 31 <!-- Inner padding between the edges of the Card and children of the CardView. --> 33 <!-- Inner padding between the left edge of the Card and children of the CardView. --> 35 <!-- Inner padding between the right edge of the Card and children of the CardView. --> 37 <!-- Inner padding between the top edge of the Card and children of the CardView. -- [all...] |
styles.xml | 18 <style name="Base.CardView" parent="android:Widget"> 26 <!-- On older platforms we do not explicitly set a background color and let CardView compute 28 <style name="CardView" parent="Base.CardView"> 31 <style name="CardView.Light"> 35 <style name="CardView.Dark">
|
/frameworks/data-binding/extensions/baseAdapters/src/main/java/android/databinding/adapters/ |
CardViewBindingAdapter.java | 21 import android.support.v7.widget.CardView; 24 @BindingMethod(type = android.support.v7.widget.CardView.class, attribute = "cardCornerRadius", method = "setRadius"), 25 @BindingMethod(type = android.support.v7.widget.CardView.class, attribute = "cardMaxElevation", method = "setMaxCardElevation"), 26 @BindingMethod(type = android.support.v7.widget.CardView.class, attribute = "cardPreventCornerOverlap", method = "setPreventCornerOverlap"), 27 @BindingMethod(type = android.support.v7.widget.CardView.class, attribute = "cardUseCompatPadding", method = "setUseCompatPadding"), 32 public static void setContentPadding(CardView view, int padding) { 37 public static void setContentPaddingLeft(CardView view, int left) { 45 public static void setContentPaddingTop(CardView view, int top) { 53 public static void setContentPaddingRight(CardView view, int right) { 61 public static void setContentPaddingBottom(CardView view, int bottom) [all...] |
/developers/build/prebuilts/androidtv/leanback/app/src/main/java/com/example/android/tvleanback/presenter/ |
CardPresenter.java | 31 * It contains an Image CardView 50 ImageCardView cardView = new ImageCardView(parent.getContext()) { 58 cardView.setFocusable(true); 59 cardView.setFocusableInTouchMode(true); 60 updateCardBackgroundColor(cardView, false); 61 return new ViewHolder(cardView); 75 ImageCardView cardView = (ImageCardView) viewHolder.view; 79 cardView.setTitleText(movie.getTitle()); 80 cardView.setContentText(movie.getStudio()); 81 cardView.setMainImageDimensions(CARD_WIDTH, CARD_HEIGHT) [all...] |
/development/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/cards/presenters/ |
SideInfoCardPresenter.java | 42 final BaseCardView cardView = new BaseCardView(getContext(), null, 44 cardView.setFocusable(true); 45 cardView.addView(LayoutInflater.from(getContext()).inflate(R.layout.side_info_card, null)); 46 return cardView; 50 public void onBindViewHolder(Card card, BaseCardView cardView) { 51 ImageView imageView = (ImageView) cardView.findViewById(R.id.main_image); 64 TextView primaryText = (TextView) cardView.findViewById(R.id.primary_text); 67 TextView secondaryText = (TextView) cardView.findViewById(R.id.secondary_text); 70 TextView extraText = (TextView) cardView.findViewById(R.id.extra_text);
|
/frameworks/base/tests/UiBench/ |
Android.mk | 14 frameworks/support/v7/cardview/res \ 20 --extra-packages android.support.v7.cardview \ 26 android-support-v7-cardview \
|
/development/samples/devbytes/animation/CardFlip/src/com/example/android/cardflip/ |
CardFlip.java | 69 List<ArrayList<CardView>> mStackCards; 78 mStackCards = new ArrayList<ArrayList<CardView>>(); 79 mStackCards.add(new ArrayList<CardView>()); 80 mStackCards.add(new ArrayList<CardView>()); 117 CardView view = new CardView(this); 141 rotateCardsFullRotation(stack, CardView.Corner.BOTTOM_LEFT); 149 ArrayList<CardView> cardStack = mStackCards.get(stack); 170 public void rotateCardView(final CardView cardView, int stack, float velocityX [all...] |
/developers/build/prebuilts/gradle/CardView/.google/ |
packaging.yaml | 12 github: android-CardView Sample
|
/developers/samples/android/ui/views/CardView/ |
template-params.xml | 21 <name>CardView Sample</name> 23 <package>com.example.android.cardview</package> 30 <dependency>com.android.support:cardview-v7:24.0.0</dependency> 35 This sample demonstrates how to use CardView introduced in the support library for the
|