[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Veil Layout attr in XML no longer works #43

Open
thiago-youx opened this issue Jul 26, 2024 · 0 comments
Open

Veil Layout attr in XML no longer works #43

thiago-youx opened this issue Jul 26, 2024 · 0 comments

Comments

@thiago-youx
Copy link
thiago-youx commented Jul 26, 2024

Please complete the following information:

  • Library Version v1.1.4
  • Affected Device(s) n/a

Describe the Bug:
The veil layout used directly in XML no longer works (even on XML preview): app:veilLayout_layout="@layout/skeleton_veil_layout"

Complete XML component:

<com.skydoves.androidveil.VeilLayout
        android:id="@+id/veil_loading"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        app:veilLayout_baseAlpha="0.8"
        app:veilLayout_baseColor="@color/colorGraySkeleton"
        app:veilLayout_highlightAlpha="1.0"
        app:veilLayout_isPrepared="true"
        app:veilLayout_highlightColor="@color/colorGraySkeleton"
        app:veilLayout_layout="@layout/skeleton_veil_layout"
        app:veilLayout_radius="@dimen/space4dp"
        app:veilLayout_shimmerEnable="true"
        app:veilLayout_veiled="true" />

Now it requires to call setLayout before starting veil:

veilLoading.setLayout(R.layout.skeleton_veil_layout)
veilLoading.veil()

Changing the new feature "veilLayout_isPrepared" value on XML does not resolve this issue.

Expected Behavior:
XML display the veil layout on preview and also use it on execution without new method calls.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant