Comments (5)
I solved this issue by
<com.facebook.shimmer.ShimmerFrameLayout
android:forceDarkAllowed="false" >
</com.facebook.shimmer.ShimmerFrameLayout>
from shimmer-android.
I solved this issue by
<com.facebook.shimmer.ShimmerFrameLayout
android:forceDarkAllowed="false" >
</com.facebook.shimmer.ShimmerFrameLayout>
But this also applies to internal elements.
from shimmer-android.
Hi @julia-black !
I am a new open source contributor and would like to solve this issue, could you help me understand the issue better by providing some extra references ?
Is this is issue open to contribute ?
from shimmer-android.
@edwinjzph Thanks it's working for me.
Here is my code
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recyclerView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/gray_5"
android:layoutAnimation="@anim/layout_anim_2"
android:visibility="gone" />
<com.facebook.shimmer.ShimmerFrameLayout
android:id="@+id/shimmer"
android:forceDarkAllowed="false"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:shimmer_auto_start="true"
tools:targetApi="q">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<include layout="@layout/layout_shimmer_placeholder" />
<include layout="@layout/layout_shimmer_placeholder" />
<include layout="@layout/layout_shimmer_placeholder" />
<include layout="@layout/layout_shimmer_placeholder" />
<include layout="@layout/layout_shimmer_placeholder" />
</LinearLayout>
</com.facebook.shimmer.ShimmerFrameLayout>
<com.google.android.material.textview.MaterialTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:layout_gravity="center"
android:fontFamily="@font/roboto_thin"
android:text="@string/label_not_found"
android:textSize="24sp"
android:visibility="gone"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/fabAdd"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="@dimen/activity_horizontal_margin"
android:contentDescription="@string/app_name"
android:src="@drawable/ic_baseline_add_24"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
from shimmer-android.
我通过 <com.facebook.shimmer.ShimmerFrameLayout android:forceDarkAllowed="false" > </com.facebook.shimmer.ShimmerFrameLayout>解决了这个问题
hero
from shimmer-android.
Related Issues (20)
- 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?
- Animation status when set visibility to GONE HOT 2
- 导入不进去,啥情况 HOT 1
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.