Comments (16)
Checkout v1.3.1
from bigimageviewer.
Why do we need this?
from bigimageviewer.
I need to override SubsamplingScaleImageView's protected void onSizeChanged(int w, int h, int oldw, int oldh)
method in order to change its default device orientation behaviour (which is flawed)
from bigimageviewer.
I think we can add a setSSIV
method to BigImageView
, which will add the provided SSIV as its first child, then we can add a useExternalSSIV
attribute(boolean), which means it should not create a SSIV itself. Waiting for your PR :)
from bigimageviewer.
OK but what about the AttributeSet (i.e. attr
at init) required by the custom Subsampling Scale Image View to initialise since its constructor is SubsamplingScaleImageView(Context context, AttributeSet attr)
?
You can not cast the BigImageView XML view into a CustomSubsamplingScaleImageView
from bigimageviewer.
Oh I got it, as BigImageView
is a FrameLayout
, maybe we could just declare a custom SSIV in layout xml file, then we only need useExternalSSIV
attribute(maybe name it useXmlSSIV
is better), please try that.
from bigimageviewer.
I'm not sure how that would solve the problem since I need to instantiate a CustomSubsamplingScaleImageView class not resource.
from bigimageviewer.
Declare it in layout xml file, use it as SSIV instance needed by BIV.
from bigimageviewer.
So use it like
CustomSSIV customSSIV = (CustomSSIV) findViewById(R.id.CustomSSIView);
BigImageView bigImageView = new BigImageView();
bigImageView.setSSIV(customSSIV);
bigImageView.showImage(Uri.parse(url));
from bigimageviewer.
No, findViewById
call should happen in BIV constructor, and also we don't need an extra boolean attribute. If we find a SSIV, then use it, else we new a SSIV.
from bigimageviewer.
Then how would you pass your custom SSIV class to BigImageView ?
from bigimageviewer.
With my last comment, we've already done.
from bigimageviewer.
I'm still not sure how you would specify a custom SSIV class since what you seem to be talking about is a custom SSIV layout
Can you please provide examples to clarify things?
from bigimageviewer.
See this commit :)
from bigimageviewer.
Awesome! It works. Can you please merge and release ASAP?
from bigimageviewer.
Sure :)
from bigimageviewer.
Related Issues (20)
- saveImageIntoGallery not working on Android 11 HOT 3
- Set Small image Zoomable HOT 2
- Some important zoom feature didn't find yet HOT 1
- Error inflating class com.github.piasy.biv.view.BigImageView HOT 1
- Choose MIME type for saving image? HOT 5
- Can not load Bitmap HOT 1
- 小图可以设置充满屏幕宽度吗。现在是自适应大小,所以显着很小 HOT 3
- How to quit zoom mode? HOT 1
- Failed to resolve: com.github.piasy:GlideImageLoader HOT 1
- 关于使用代理加载图片的问题 HOT 1
- 使用体验
- 请问可以获取BigImageView的bitmap吗? HOT 1
- 请问支持图片的旋转吗 HOT 1
- Scaling GIF images HOT 1
- 加水印 HOT 1
- Clear (previously) loaded image from BigImageView in RecyclerView's view holder HOT 1
- 求支持avif格式图片 HOT 2
- 共享元素动画 HOT 1
- How can I get the zoom in and zoom out ratio that occurs HOT 1
- zoom in and zoom out all images together in the recyclerview
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 bigimageviewer.