Comments (10)
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"
andapp: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.
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.
I also have this problem
from shimmer-android.
why do views inside the layout have alpha already? how can I have the views with the correct color?
from shimmer-android.
upstairs +1
from shimmer-android.
from shimmer-android.
Hi Guys,
Was this issue resolved ? If so please say me how it got fixed ?
from shimmer-android.
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.
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.
@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)
- Shimmer animation still continue when different item is showing in recyclerview HOT 1
- When using inside cardView with rounded corners, corners are CLEARED HOT 1
- Animation is not working in the dark mode HOT 5
- What is BUCK file for?
- ❓ ❓ ❓ How to show shining or glare/mirror/shimmer/shine effect on a view ❓ ❓ ❓ HOT 1
- Stop shimmer is not working Facebook shimmer HOT 1
- Shimmer layout crashing illegal state exception Unable create shimmer layout
- Change Facebook Icon to Meta Icon ?
- When is the release of the new version (0.6.0) of the library expected?
- TramondeaPlease don't delete the code style settings.
- Does facebook-Shimmer include log4j internally?
- Android resource linking failed
- use recycled bitmap error HOT 2
- Support for passing default style by theme attribute
- ShimmerDrawable not working with View.LAYER_TYPE_HARDWARE HOT 1
- Release 0.6.0 version HOT 3
- Asynchronous animation for items in a RecyclerView
- How to create shimmer effect around a custom path in android
- Viewpager2: Shimmer on RecyclerViews freezes UI HOT 1
- Question - Can we ignore any child view(s) from shimmering?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shimmer-android.