LinearLayout.LayoutParams lp = (android.widget.LinearLayout.LayoutParams) imageView
.getLayoutParams(); 为什么我这里报了空指针异常
.getLayoutParams(); 为什么我这里报了空指针异常
2016-10-18
float screen13:屏幕的1/3;
case 0: mtabline.setX(0);
case 1:mtabline.setX(sceern31);
case 2:mtabline.setX(2*sceern31);
功能差不多
case 0: mtabline.setX(0);
case 1:mtabline.setX(sceern31);
case 2:mtabline.setX(2*sceern31);
功能差不多
2016-10-14
double factor = 2 * Math.pow(positionOffset - 0.5, 2) + 0.5;
lp.width = (int) (factor * screenWidth / 3);
lp.leftMargin = (int) ((position + positionOffset) * screenWidth / 3 + (1 - factor) * screenWidth / 6);
lp.width = (int) (factor * screenWidth / 3);
lp.leftMargin = (int) ((position + positionOffset) * screenWidth / 3 + (1 - factor) * screenWidth / 6);
2016-09-28