Are you using this library in your app? Let me know and I'll add it to this list.
Fourth Mate | Sync for reddit | Journal | Clover | Tag Gallery |
nycTrans.it | RR File Locker | TransitMe NYC | Mr Whipped Comics |
With tiling enabled:
OnClickListener
and OnLongClickListener
GestureDetector
and OnTouchListener
ViewPager
to create a photo gallerywrap_content
layout1) Add com.davemorrissey.labs:subsampling-scale-image-view:3.3.0
as a dependency in your build.gradle file.
2) Add the view to your layout XML.
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" > <com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView android:id="@+id/imageView" android:layout_width="match_parent" android:layout_height="match_parent"/> </LinearLayout>
3) Now, in your fragment or activity, set the image resource, asset name or file path.
SubsamplingScaleImageView imageView = (SubsamplingScaleImageView)findViewById(id.imageView); imageView.setImage(ImageSource.resource(R.drawable.monkey)); // ... or ... imageView.setImage(ImageSource.asset("map.png")) // ... or ... imageView.setImage(ImageSource.uri("/sdcard/DCIM/DSCM00123.JPG"));
Copyright 2015 David Morrissey, and licensed under the Apache License, Version 2.0. No attribution is necessary but it‘s very much appreciated. Star this project if you like it, and send a link to your project on GitHub or app in Google Play if you’d like me to add it to this page.