当前位置: 动力学知识库 > 问答 > 编程问答 >

android - zoomed GridView not scroll

问题描述:

I use below class for zoom GridView but when zoom in GridView not scroll fully.

https://github.com/Reegan01/Android-ZoomView

I use below code for change size of width and height of GridView when zoomed but scroll vertically not work and remains white space in right of GridView.

 z.setListner(new zoom.ZoomViewListener() {

@Override

public void onZoomStarted(float zoom, float zoomx, float zoomy) {

FrameLayout.LayoutParams linearParams = (FrameLayout.LayoutParams)gv.getLayoutParams();

linearParams.width=(int)(size of GridView before zooming*zoom)+2;

linearParams.height=(int)(size of GridView before zooming*zoom)+2;

gv.setLayoutParams(linearParams);

gv.setExpanded(true);

}

@Override

public void onZooming(float zoom, float zoomx, float zoomy) {

}

@Override

public void zonZoomEnded(float zoom, float zoomx, float zoomy) {

}

});

分享给朋友:
您可能感兴趣的文章:
随机阅读: