首页 > 代码库 > android 在图库中进行幻灯片播放时图片不会全屏显示
android 在图库中进行幻灯片播放时图片不会全屏显示
1.在 Slideshowview.java
2. @Override
public void apply(GLCanvas canvas) {
int viewWidth = getWidth();
int viewHeight = getHeight();
float initScale = Math.min((float)
viewWidth / mWidth, (float) viewHeight / mHeight);
// M: if special SUB_TYPE, 按原始尺寸显示
/************************************** Edit Start **********************************************/
if (0 !=(mSubType & MediaObject.SUBTYPE_DRM_NO_RIGHT)) {
/***************************************Edit End ***********************************************/
//this logic is familar with that of PositionController.java
float minScale = MediatekFeature.getMinimalScale(viewWidth,
viewHeight, mWidth, mHeight, mSubType);
float tempScaleLimit = MediatekFeature.minScaleLimit(mSubType);
float scaleLimit = tempScaleLimit > 0.0f ?
2. @Override
public void apply(GLCanvas canvas) {
int viewWidth = getWidth();
int viewHeight = getHeight();
float initScale = Math.min((float)
viewWidth / mWidth, (float) viewHeight / mHeight);
// M: if special SUB_TYPE, 按原始尺寸显示
/************************************** Edit Start **********************************************/
if (0 !=(mSubType & MediaObject.SUBTYPE_DRM_NO_RIGHT)) {
/***************************************Edit End ***********************************************/
//this logic is familar with that of PositionController.java
float minScale = MediatekFeature.getMinimalScale(viewWidth,
viewHeight, mWidth, mHeight, mSubType);
float tempScaleLimit = MediatekFeature.minScaleLimit(mSubType);
float scaleLimit = tempScaleLimit > 0.0f ?
tempScaleLimit : 2.0f;
minScale = Math.min(scaleLimit, minScale);
initScale = minScale / (1 + SCALE_SPEED);
}
float scale = initScale * (1 + SCALE_SPEED * mProgress);
android 在图库中进行幻灯片播放时图片不会全屏显示
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。