public class AspectFrameLayout
extends FrameLayout
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
AspectFrameLayout.SHOW_MODE
Show mode that can be used. 
 | 
| Constructor and Description | 
|---|
AspectFrameLayout(Context context)  | 
AspectFrameLayout(Context context,
                 AttributeSet attrs)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
notifyActivityOrientationChanged(Point size)  | 
protected void | 
onMeasure(int widthMeasureSpec,
         int heightMeasureSpec)  | 
void | 
setAspectRatio(double aspectRatio)  | 
void | 
setShowMode(AspectFrameLayout.SHOW_MODE mode)
set the show mode of  
AspectFrameLayout | 
public AspectFrameLayout(Context context)
public AspectFrameLayout(Context context,
                         AttributeSet attrs)
public void notifyActivityOrientationChanged(Point size)
public void setShowMode(AspectFrameLayout.SHOW_MODE mode)
AspectFrameLayout
 
 invoked after construct the AspectFrameLayout
mode - the show modepublic void setAspectRatio(double aspectRatio)
protected void onMeasure(int widthMeasureSpec,
                         int heightMeasureSpec)