예제 #1
0
 private void logState(View v, String title) {
   Log.v(
       TAG,
       title
           + ": ROT ("
           + ViewHelper.getRotation(v)
           + ", "
           + ViewHelper.getRotationX(v)
           + ", "
           + ViewHelper.getRotationY(v)
           + "), TRANS ("
           + ViewHelper.getTranslationX(v)
           + ", "
           + ViewHelper.getTranslationY(v)
           + "), SCALE ("
           + ViewHelper.getScaleX(v)
           + ", "
           + ViewHelper.getScaleY(v)
           + "), ALPHA "
           + ViewHelper.getAlpha(v));
 }
 @Override
 public Float get(View view) {
   if (getName().equals("y")) return ViewHelper.getRotationY(view);
   else return ViewHelper.getRotationX(view);
 }