本文整理了Java中android.graphics.Matrix.equals()
方法的一些代码示例,展示了Matrix.equals()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Matrix.equals()
方法的具体详情如下:
包路径:android.graphics.Matrix
类名称:Matrix
方法名:equals
暂无
代码示例来源:origin: andkulikov/Transitions-Everywhere
(startMatrix != null && startMatrix.equals(endMatrix));
代码示例来源:origin: andkulikov/Transitions-Everywhere
if (startMatrix.equals(endMatrix)) {
return null;
代码示例来源:origin: sephiroth74/ImageViewZoom
@Override
public void setImageMatrix(Matrix matrix) {
Matrix current = getImageMatrix();
boolean needUpdate = false;
if (matrix == null && !current.isIdentity() || matrix != null && !current.equals(matrix)) {
needUpdate = true;
}
super.setImageMatrix(matrix);
if (needUpdate) {
onImageMatrixChanged();
}
}
代码示例来源:origin: 7heaven/UILibrary
@Override
protected void onLayout(boolean changed, int left, int top, int right, int bottom){
Matrix targetMatrix = getImageMatrix();
if(targetMatrix != null){
if(!targetMatrix.equals(mProgressiveMatrix)){
if(mIgnoreMatrixAnimation){
mProgressiveMatrix = new Matrix(targetMatrix);
}else{
mAnimationMark = true;
}
}
}
}
代码示例来源:origin: saki4510t/libcommon
/**
* set current state, get and save the internal Matrix int super class
* @param state: -1/STATE_NON/STATE_DRAGING/STATECHECKING
* /STATE_ZOOMING/STATE_ROTATING
*/
private final void setState(final int state) {
if (mState != state) {
mState = state;
// get and save the internal Matrix of super class
getTransform(mSavedImageMatrix);
if (!mImageMatrix.equals(mSavedImageMatrix)) {
mImageMatrix.set(mSavedImageMatrix);
mImageMatrixChanged = true;
}
}
}
代码示例来源:origin: stackoverflow.com
if(existing.equals(mat))
return;
mats.remove(index);
代码示例来源:origin: raulhaag/MiMangaNu
@Override
public void setImageMatrix(Matrix matrix) {
Matrix current = getImageMatrix();
boolean needUpdate = false;
if (matrix == null && !current.isIdentity() || matrix != null && !current.equals(matrix)) {
needUpdate = true;
}
super.setImageMatrix(matrix);
if (needUpdate)
onImageMatrixChanged();
}
代码示例来源:origin: xiangyunwan/ImageEditor-Android-master
@Override
public void setImageMatrix(Matrix matrix) {
Matrix current = getImageMatrix();
boolean needUpdate = false;
if (matrix == null && !current.isIdentity() || matrix != null
&& !current.equals(matrix)) {
needUpdate = true;
}
super.setImageMatrix(matrix);
if (needUpdate)
onImageMatrixChanged();
}
代码示例来源:origin: xiangzhihong/gpuImage
@Override
public void setImageMatrix(Matrix matrix) {
Matrix current = getImageMatrix();
boolean needUpdate = false;
if (matrix == null && !current.isIdentity() || matrix != null && !current.equals(matrix)) {
needUpdate = true;
}
super.setImageMatrix(matrix);
if (needUpdate)
onImageMatrixChanged();
}
内容来源于网络,如有侵权,请联系作者删除!