Comments (8)
Hi,
Thanks for your report.
If I understand your issue correctly, you are calling FlexboxLayout#addView in the onResume method in your app but the added view isn't showing?
If so, is it possible to paste your relevant code and screenshots?
from flexbox-layout.
Yes,you think right.Even in onCreate() method to request, it will occasionally appear.
My code:
hotSearch xml:
history xml:
in onCreate() method to request to get hotSearchDatas:
in onResume() method to request to get historyDatas():
history does not show:
back and have a try,it shows:
back and have a try,unfortunately,it does not show:
thank you.
from flexbox-layout.
use real phone to have a try -。-
from flexbox-layout.
Thanks for pasting the code.
From what I can tell, it's still not clear if the issue is in the FlexboxLayout or in your app.
Can you please confirm the following?
- When FlexboxLayout#addView is called, please make sure the method is actually called (i.e. there is not empty data from your logic (history data)) by placing a breakpoint and putting logs.
from flexbox-layout.
Hello @qinyongfang,
Is the issue still persistent? Is there anything I can do to investigate it further?
from flexbox-layout.
I'm sorry, Sir. I was doing something else lately. Thank you very much for your reply. I tried on a real machine, still have this problem. I'm sorry I don't know how to make a screenshot of you, I believe you have seen the previous log records. I'm sure that every request data is successful. Can you try this way?
from flexbox-layout.
I am not saying that it is not always successful, but that it has a large percentage of it is not successful.
from flexbox-layout.
I'm certain it's highly likely the issue is not on the FlexboxLayout. From looking at the source code of the addView
method, it can't possibly success of fail randomly.
If that happens sporadically, please try to:
- output logs for both cases (success and failure).
- simply call the addView method without fetching the history data and see how it goes.
Anyway, can you please reopen it if you are sure the issue if on the FlexboxLayout?
Thanks.
from flexbox-layout.
Related Issues (20)
- Can't manage to have 2 items in each column instead of 3 in first column and the last one alone it's own column
- FlexboxLayoutManager ROW NOWRAP, child layout top is wrong when RecyclerView has horizontal padding
- multi type adapter scrolling laggy
- Flexbox layout manager not scrollable
- indexInFlexLine is not consistent in onNewFlexItemAdded() method
- Android Studio Integration
- Add gap attribute HOT 3
- Wrong placement
- FlexboxLayoutManager.computeScrollOffset(); It is wrong to be equal to 0 HOT 1
- [FE] page 분기처리
- RecycleView nests RecycleView, and the internal RecycleView uses FlexboxLayoutManager(context, FlexDirection.ROW, FlexWrap.WRAP), when the number of items is large, it cannot be displayed completely (for example, only 30 items are displayed for 50 items, and they are not displayed after exceeding one screen) HOT 4
- ComposeView in flexbox crashes, because it is not attached when measured
- FlexboxLayoutManager child item margin is wrong when flex-direction is column
- How can i use this library in jetpack compose HOT 2
- Flaxbaox layout
- Playground doesn't build in latest Android Studio Flamingo HOT 3
- FlexboxLayoutManager does not recycle views with Navgraph HOT 3
- Is there possible to set "needsToFill" not only mContext.getResources().getDisplayMetrics().heightPixels?
- java.lang.ArrayIndexOutOfBoundsException: length=10; index=-1 HOT 1
- FlexBoxLayoutManager with RecyclerView causes multiple items to refresh on calling notifyItemChanged
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 flexbox-layout.