Skip to content

Commit

Permalink
change $
Browse files Browse the repository at this point in the history
  • Loading branch information
rasoulmiri committed Dec 17, 2017
1 parent b92ecd4 commit c96e211
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -432,4 +432,39 @@ public static int getDefaultTextShapeLineHeight() {
public static int getDefaultTextShapeLineSpaceVertical() {
return DEFAULT_TEXT_SHAPE_LINE_SPACE_VERTICAL;
}

@Override
public String toString() {
return "SkeletonAttribute{" +
"X1=" + X1 +
", Y1=" + Y1 +
", X2=" + X2 +
", Y2=" + Y2 +
", isShowSkeleton=" + isShowSkeleton +
", isAutoStartAnimation=" + isAutoStartAnimation +
", isHoldTouchEventsFromChildren=" + isHoldTouchEventsFromChildren +
", shapeType=" + shapeType +
", colorBackgroundMain=" + colorBackgroundMain +
", colorBackgroundViews=" + colorBackgroundViews +
", colorHighLight=" + colorHighLight +
", animationDuration=" + animationDuration +
", animationDirection=" + animationDirection +
", animationNormalType=" + animationNormalType +
", animationFinishType=" + animationFinishType +
", cornerRadius=" + cornerRadius +
", cornerRadiusTopLeft=" + cornerRadiusTopLeft +
", cornerRadiusTopRight=" + cornerRadiusTopRight +
", cornerRadiusBottomLeft=" + cornerRadiusBottomLeft +
", cornerRadiusBottomLRight=" + cornerRadiusBottomLRight +
", padding=" + padding +
", paddingTop=" + paddingTop +
", paddingRight=" + paddingRight +
", paddingBottom=" + paddingBottom +
", paddingLeft=" + paddingLeft +
", textShapeLineNumber=" + textShapeLineNumber +
", textShapeLineLastWidth=" + textShapeLineLastWidth +
", textShapeLineHeight=" + textShapeLineHeight +
", textShapeLineSpaceVertical=" + textShapeLineSpaceVertical +
'}';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import android.support.annotation.RequiresApi;
import android.support.annotation.StyleRes;
import android.util.AttributeSet;
import android.util.Log;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
Expand Down Expand Up @@ -98,6 +99,8 @@ public void init(Context context, @Nullable AttributeSet attrs) {
skeletonAttribute.setTextShapeLineSpaceVertical(typedArray.getDimensionPixelSize(R.styleable.Skeleton_SK_textLineSpaceVertical, (int) ConverterUnitUtil.dpToPx(getContext(), SkeletonAttribute.DEFAULT_TEXT_SHAPE_LINE_SPACE_VERTICAL)));
}


Log.i("+++++++++++++++",skeletonAttribute.toString());
typedArray.recycle();
}

Expand Down

0 comments on commit c96e211

Please sign in to comment.