private Cling initCling(int clingId, int[] positionData, float revealRadius, boolean showHand, boolean animate) {
setPagingEnabled(false);
clingActive = true;
Cling cling = (Cling) findViewById(clingId);
if(cling != null) {
//getActionBar().hide();
getActionBar().hide();
cling.init(this, positionData, revealRadius, showHand);
cling.setVisibility(View.VISIBLE);
cling.setLayerType(View.LAYER_TYPE_HARDWARE, null);
if(animate) {
cling.buildLayer();
cling.setAlpha(0f);
cling.animate().alpha(1f).setInterpolator(new AccelerateInterpolator()).setDuration(Cling.SHOW_CLING_DURATION).setStartDelay(0).start();
}
else {
cling.setAlpha(1f);
}
}
return cling;
}
Calculator.java 文件源码
java
阅读 30
收藏 0
点赞 0
评论 0
项目:CalcMate
作者:
评论列表
文章目录