diff --git a/library/src/main/java/io/rmiri/skeleton/Master/SkeletonAttribute.java b/library/src/main/java/io/rmiri/skeleton/Master/SkeletonAttribute.java index 9b5e705..431886d 100644 --- a/library/src/main/java/io/rmiri/skeleton/Master/SkeletonAttribute.java +++ b/library/src/main/java/io/rmiri/skeleton/Master/SkeletonAttribute.java @@ -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 + + '}'; + } } \ No newline at end of file diff --git a/library/src/main/java/io/rmiri/skeleton/Master/SkeletonMaster.java b/library/src/main/java/io/rmiri/skeleton/Master/SkeletonMaster.java index 3e30b7c..a8796ba 100644 --- a/library/src/main/java/io/rmiri/skeleton/Master/SkeletonMaster.java +++ b/library/src/main/java/io/rmiri/skeleton/Master/SkeletonMaster.java @@ -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; @@ -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(); }