public class GfyCardView
extends CardView
Constructor and Description |
---|
GfyCardView(android.content.Context context) |
GfyCardView(android.content.Context context,
android.util.AttributeSet attrs) |
GfyCardView(android.content.Context context,
android.util.AttributeSet attrs,
int defStyleAttr) |
Modifier and Type | Method and Description |
---|---|
protected void |
onCreateView() |
protected void |
onMeasure(int widthMeasureSpec,
int heightMeasureSpec) |
protected void |
onSizeChanged(int w,
int h,
int oldw,
int oldh) |
void |
setAspectRatio(float aspectRatio) |
void |
setAspectRatioFromGfycat(Gfycat gfycat) |
void |
setAspectRatioFromSize(int width,
int height) |
void |
setFlattenByWidth(boolean flattenByWidth) |
void |
setRadius(float radius) |
protected void |
sharedConstructor(android.util.AttributeSet attrs) |
public GfyCardView(android.content.Context context)
public GfyCardView(android.content.Context context, android.util.AttributeSet attrs)
public GfyCardView(android.content.Context context, android.util.AttributeSet attrs, int defStyleAttr)
public void setRadius(float radius)
protected void onSizeChanged(int w, int h, int oldw, int oldh)
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec)
public void setAspectRatioFromGfycat(Gfycat gfycat)
public void setFlattenByWidth(boolean flattenByWidth)
public void setAspectRatioFromSize(int width, int height)
public void setAspectRatio(float aspectRatio)
protected void onCreateView()
protected void sharedConstructor(android.util.AttributeSet attrs)