GithubHelp home page GithubHelp logo

Comments (10)

mecoFarid avatar mecoFarid commented on April 24, 2024 6

This issue should be reopened, I guess, or I'm missing out something. Trying to have a shimmer highlight with a different color rather than highlight with alpha.

Setting both app:shimmer_colored="true" and app:shimmer_highlight_color="@color/colorAccent" removes shimmer effect from children (shimmer applied to parent only).

<?xml version="1.0" encoding="utf-8"?>
<com.facebook.shimmer.ShimmerFrameLayout
    android:id="@+id/shimmer_loader_view"
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    app:shimmer_colored="true"
    app:shimmer_highlight_color="@color/colorAccent"
    app:shimmer_duration="1500">

                <Parent>
                     <Child>
                     <Child>
                     <Child>
                </Parent>

</com.facebook.shimmer.ShimmerFrameLayout>

from shimmer-android.

ninovanhooff avatar ninovanhooff commented on April 24, 2024 1

I would also like to set the color/alpha of the shimmer. To arrive at less than pure white, I currently have reduce the alpha of the whole view, which is not efficient

from shimmer-android.

cloud136731 avatar cloud136731 commented on April 24, 2024 1

I also have this problem

from shimmer-android.

oth-libs avatar oth-libs commented on April 24, 2024 1

why do views inside the layout have alpha already? how can I have the views with the correct color?

from shimmer-android.

stevenchans avatar stevenchans commented on April 24, 2024

upstairs +1

from shimmer-android.

xiphirx avatar xiphirx commented on April 24, 2024

544c568

from shimmer-android.

nishanthvasu avatar nishanthvasu commented on April 24, 2024

Hi Guys,

Was this issue resolved ? If so please say me how it got fixed ?

from shimmer-android.

yanayhollander avatar yanayhollander commented on April 24, 2024

using app:shimmer_highlight_alpha="0" resolved the issue for me.

<com.facebook.shimmer.ShimmerFrameLayout
    android:id="@+id/shimmer"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    app:shimmer_highlight_alpha="0">

            <Parent>
                 <Child>
                 <Child>
                 <Child>
            </Parent>

</com.facebook.shimmer.ShimmerFrameLayout>

from shimmer-android.

dinopriyano avatar dinopriyano commented on April 24, 2024

using app:shimmer_highlight_alpha="0" resolved the issue for me.

<com.facebook.shimmer.ShimmerFrameLayout
    android:id="@+id/shimmer"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    app:shimmer_highlight_alpha="0">

            <Parent>
                 <Child>
                 <Child>
                 <Child>
            </Parent>

</com.facebook.shimmer.ShimmerFrameLayout>

nice!, thanks bro

from shimmer-android.

wasimasghar avatar wasimasghar commented on April 24, 2024

@mecoFarid solution works for me...
Issue fixed by using these two attributes.
app:shimmer_colored="true"
app:shimmer_highlight_color="@color/colorAccent"

from shimmer-android.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.