Comments (5)
Could you please post the code you use the create and set the SimpleCursorAdapter
?
from android-flipview.
I initialize the adapter like this (in the onCreateView of my fragment) :
this.mAdapter = new SimpleCursorAdapter(this.getActivity(),
R.layout.page, null, mAdapterFromColumns, mAdapterToViews,
0);
And when in the method onLoadFinished :
public void onLoadFinished(Loader loader, Cursor cursor) {
this.mAdapter.changeCursor(cursor);
}
This method doesnot work with the FlipView (works with a listView)
I found a workaround, i delay the creation of the adapter :
@OverRide
public void onLoadFinished(Loader loader, Cursor cursor) {
if ( this.mAdapter == null ) {
this.mAdapter = new SimpleCursorAdapter(this.getActivity(),
R.layout.page, cursor, mAdapterFromColumns,
mAdapterToViews, 0);
this.mAdapter.setViewBinder(this);
mFlipView.setAdapter(this.mAdapter);
}
else {
this.mAdapter.changeCursor(cursor);
}
}
2014/1/26 Emil Sjölander [email protected]
Could you please post the code you use the create and set the
SimpleCursorAdapter?—
Reply to this email directly or view it on GitHubhttps://github.com//issues/31#issuecomment-33316231
.
from android-flipview.
What android version are you seeing this on?
from android-flipview.
4.4
2014/1/26 Emil Sjölander [email protected]
What android version are you seeing this on?
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/31#issuecomment-33319288
.
from android-flipview.
Looking up the source for SimpleCursorAdapter there are just comments on line 118 making it hard to track down what is actually happening.
from android-flipview.
Related Issues (20)
- add fragment programmatically
- setOnFlipListener
- flipping speed HOT 3
- Manage orientation using java code. HOT 1
- block previous flip
- Why doesn't FlipView work correctly with layout_height="wrap_content" ?
- How to disable dangling of the first page ? HOT 4
- Recyclerview port HOT 3
- Not able import project to android studio HOT 2
- gradle dependency version HOT 1
- when i import this code into my android studio 2.2.2 i got this issue
- Adapter should not preload next page HOT 1
- OnFlipListener won't work for fast flips
- Adapter should not preload next page
- Remove item from FlipView
- Unable to add in dependencies HOT 1
- Proposal to update build configuration and res attr
- use with WebView
- 怎样才能将执行的mCamera.rotationX的那个View弄为圆角呢 HOT 4
- Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR) 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 android-flipview.