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方法  

相关文章:

  • 2022-02-15
  • 2021-12-31
  • 2021-11-18
  • 2021-07-06
  • 2022-01-14
  • 2022-12-23
  • 2022-12-23
  • 2021-06-02
猜你喜欢
  • 2021-12-03
  • 2022-12-23
  • 2022-01-11
  • 2022-12-23
  • 2021-06-20
  • 2021-06-21
  • 2021-11-09
相关资源
相似解决方案