Comments (6)
Very hard to say anything without having a look into code. can you post your query along with code at stackoverflow as well. will try to answer you there
from gesture-imageview.
from gesture-imageview.
@shailendra123 ,I have not enough reputation on stackoverflow,
and when click ,the pic changed clear
from gesture-imageview.
@shailendra123 ,the girl is load from cloud,the file picture is the default, when i click ,it become clear.
from gesture-imageview.
public class PreviewActivity extends ActivityWithTitleBar {
public final static String BUNDLE_KEY_FILE_METADATA = "PreviewFile";
private GestureImageView mPreviewImage;
private CommonFile mFile ;
//private FrameLayout mProgressBar;
private ProgressDialog mProgressDialog;
private Dialog mDeleteDialog;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Intent intent = getIntent();
if(intent != null) {
mFile = (CommonFile) intent.getSerializableExtra(BUNDLE_KEY_FILE_METADATA);
}
mActionBar.setTitle(mFile.getFileName());
//mProgressBar.setVisibility(View.VISIBLE);
initDialog();
if(mFile != null){
mFile.getPreviewContent(R.drawable.thumnail_placeholder, mPreviewImage, new onCachedItemLoadListener<String, Bitmap>() {
@Override
public void onCachedItemLoadFinished(final String key, final int errorCode) {
if (BackupFileException.ErrorOk == errorCode) {
if (mFile.getCloudId().equals(key)) {
runOnUiThread(new Runnable() {
public void run() {
//mProgressBar.setVisibility(View.GONE);
mPreviewImage.redraw();;
}
});
}
} else {
runOnUiThread(new Runnable() {
public void run() {
//mProgressBar.setVisibility(View.GONE);
}
});
}
}
@Override
public void onCachedItemLoadProgress(String key,
long currentSize, long totalSize) {
}
});
}
}
from gesture-imageview.
@shailendra123
in getPreviewContent function:when the drawable is downloaded from cloud. it will call mPreviewImage.setImageDrawable(drawable )
from gesture-imageview.
Related Issues (20)
- Gesturimageview scrolling issues HOT 1
- Unable to setImageBitmap from AsyncTask.onPostExecute method HOT 2
- Bitmap too large to be uploaded into a texture HOT 2
- setScale & setPosition problems HOT 2
- rotate the image
- Enable zoom only in center
- Doesn't support dynamic image setting! HOT 2
- Maintanenance of this utility
- Bad scale in landscape screen orientation HOT 1
- Display image from url HOT 2
- onLongClick not working in ViewPager. HOT 2
- can not use for next image
- please,add this library to maven/jcenter.thanks. HOT 3
- Bad XML block: header size 93 or total size 0 is larger than data size 0
- Support cropping of Bitmap in GestureImageView
- Solve gesture-imageview in viewpage can't Drag
- Not support the onSwipeTouchListener
- Hangs on ZoomIn and ZoomOut
- A possible fix for dynamic image loading
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 gesture-imageview.