Comments (4)
@Saiga04
"At the first load, some of the item views doesn't display, some of them does."
can you provide some code so that I can look into this?
from placeholderview.
Closing this now
from placeholderview.
Facing similar issues here, when I set the visibility for some items based on the data value they disappear after scroll and when they are recreated using the resolve method. I suspect that the data from the class level variables is getting lost when the Resolve method is called after scrolling.
For example to give you a reference -
I have a child view for a placeholder setup list this -
public TeacherTuitionQueryListCardItem(Context context, FragmentManager fragmentManager, Map<String, String> data,
TeacherTuitionQueryListItemCallback callback) {
this.mContext = context;
this.fm = fragmentManager;
this.mSummary = data;
this.mCallback = callback;
}
Now, in my -
@Resolve
public void onResolved() {
try {
if(mSummary.get("location") != null && !mSummary.get("location").isEmpty()) {
tuitionLocation.setText(mSummary.get("location"));
} else {
tuitionLocation.setVisibility(android.view.View.GONE);
tuitionLocationPrefix.setVisibility(android.view.View.GONE);
}
} catch(Exception ignored){}
}
So, I suspect that the value of mSummary gets lost when Resolved method is called after scrolling out and back in
from placeholderview.
@iamdeadman Please check the location
field. Let me know how you are storing location? Also, put a debug flag in onResolve
to see if mSummary
is null or not and post me the findings.
from placeholderview.
Related Issues (20)
- SwipeCancelState called when dragging a clickable view..Disables further interaction
- How to make swipe three direction in case i have three button HOT 1
- SwipePlaceHolderView HOT 1
- Card not properly shown if provide width and height match parent HOT 2
- How to add tablayout in ExpandablePlaceHolderView
- Need Support DiffUtil
- Didn't find class "android.support.v7.widget.CardView" on path
- How to set the text based on the position
- has no Pulldown refresh effect? HOT 1
- How to display a fragment inside the view?
- How to load all items under a parent
- kotlin.UninitializedPropertyAccessException: lateinit property tvTitle has not been initialized HOT 11
- Ui freeze when adding view from an asynchronous call
- Cannot load profile pictures for the Tinder like swap pictures.
- How to use PlaceHolderview with android library , i am getting resource not found exception.
- Resource IDs as annotations non-final
- use with private is not supported HOT 1
- Empty method with @Click annotation make app crash: NullPointerException
- How to Expand all items on first load ?
- How to customize category sorting?
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 placeholderview.