public class AnimateableViewBounds extends ViewOutlineProvider
BACKGROUND, BOUNDS, PADDED_BOUNDS
Constructor and Description |
---|
AnimateableViewBounds(View source,
int cornerRadius) |
Modifier and Type | Method and Description |
---|---|
float |
getAlpha() |
int |
getClipBottom()
Returns the bottom clip.
|
int |
getClipTop()
Returns the top clip.
|
void |
getOutline(View view,
Outline outline)
Called to get the provider to populate the Outline.
|
void |
reset()
Resets the right and bottom clip for this view.
|
void |
setClipBottom(int bottom)
Sets the bottom clip.
|
void |
setClipTop(int top)
Sets the top clip.
|
public AnimateableViewBounds(View source, int cornerRadius)
public void reset()
public void getOutline(View view, Outline outline)
ViewOutlineProvider
View.invalidateOutline()
is called
explicitly.
The input outline is empty and has an alpha of 1.0f
.getOutline
in class ViewOutlineProvider
view
- The view building the outline.outline
- The empty outline to be populated.public float getAlpha()
public void setClipTop(int top)
public int getClipTop()
public void setClipBottom(int bottom)
public int getClipBottom()