package com.bi.standardcompuse.app.widgets;
import android.content.Context;
import android.util.AttributeSet;
import android.widget.VideoView;
/**
* Created
* Author:bi[FR]
* Date:15-10-26
*/
public class FullVideoView extends VideoView {
public FullVideoView(Context context) {
super(context);
}
public FullVideoView(Context context, AttributeSet attrs) {
super(context, attrs);
}
@Override
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
int wSize=MeasureSpec.getSize(widthMeasureSpec);
int hSize=MeasureSpec.getSize(heightMeasureSpec);
setMeasuredDimension(wSize,hSize);
}
}
重写自定义的ViewdeoView的onMeasure方法
时间: 2024-11-04 06:07:18