Skip to content

Can't get the examples working #20

@mortenholmgaard

Description

@mortenholmgaard

First thanks for what seems like a great library with great technical solution to the problem and good documentation as well.

But I can't get it to work, so I have a few questions/bug findings:

  1. We are not using databinding, but I there seems also to be a great api for that case.
    But trying to use the examples only gives me a black box, no animation at all. I have tried to set almost every property without any animation as a result.
    What is the problem do you think?
    SkeletonDrawable.create(this).apply {
        this.getProps().apply {
            this.enabled = true
            this.allowSavedState = true
            this.shimmerRayProperties.apply {
                this.shimmerRayThickness = 10.dp
                this.shimmerRayTilt = 0.3f
            }
        }
    }

    SkeletonDrawable.create(this)
        .build()
        .setEnabled(true)
        .setAllowSavedState(true)
        .withShimmerBuilder {
            setThickness(10.dp)
            setTilt(0.3f)
            setAnimationDuration(300L)
        }
        .setCornerRadii(3f)
        .setColor(MutableColor(appCtx.getColor(R.color.green)))
        .withBoneBuilder(generateId()) {
            setColor(MutableColor(appCtx.getColor(R.color.lemon)))
            setMaxThickness(12.dp)
            setMinThickness(10.dp)
            setCornerRadii(CornerRadii(3f))
            setEnabled(true)
            setTransitionDuration(300L)
        }
        .setUseStateTransition(true)
  1. There are quite a few properties from "Example Usages 1" that does not seems to be accessible from the other approaches.
    Some of them seems important, is I just me that can't find them?
app:skeletonGenerateBones
app:skeletonAnimateRestoredBounds
  1. When creating a SkeletonDrawable for a ViewGroup, how then to select which child views that should be skeletonable?
  2. Is it possible to make a View skeletonable without going through it parent, or is the same case as 3. question?
  3. In the readme setCornerRadius() should be changed to setCornerRadii()

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions