Search in sources :

Example 16 with SubsamplingScaleImageView

use of com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView in project subsampling-scale-image-view by davemorrissey.

the class AnimationActivity method initialiseImage.

private void initialiseImage() {
    SubsamplingScaleImageView imageView = (SubsamplingScaleImageView) findViewById(id.imageView);
    imageView.setImage(ImageSource.asset("squirrel.jpg"));
}
Also used : SubsamplingScaleImageView(com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView)

Example 17 with SubsamplingScaleImageView

use of com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView in project subsampling-scale-image-view by davemorrissey.

the class BasicFeaturesActivity method initialiseImage.

private void initialiseImage() {
    SubsamplingScaleImageView imageView = (SubsamplingScaleImageView) findViewById(id.imageView);
    imageView.setImage(ImageSource.asset("squirrel.jpg"));
}
Also used : SubsamplingScaleImageView(com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView)

Example 18 with SubsamplingScaleImageView

use of com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView in project subsampling-scale-image-view by davemorrissey.

the class ConfigurationActivity method initialiseImage.

private void initialiseImage() {
    SubsamplingScaleImageView imageView = (SubsamplingScaleImageView) findViewById(id.imageView);
    imageView.setImage(ImageSource.asset("squirrel.jpg"));
}
Also used : SubsamplingScaleImageView(com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView)

Example 19 with SubsamplingScaleImageView

use of com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView in project subsampling-scale-image-view by davemorrissey.

the class EventHandlingActivity method initialiseImage.

private void initialiseImage() {
    SubsamplingScaleImageView imageView = (SubsamplingScaleImageView) findViewById(id.imageView);
    imageView.setImage(ImageSource.asset("squirrel.jpg"));
}
Also used : SubsamplingScaleImageView(com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView)

Example 20 with SubsamplingScaleImageView

use of com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView in project subsampling-scale-image-view by davemorrissey.

the class ExtensionCircleFragment method onCreateView.

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
    View rootView = inflater.inflate(layout.extension_circle_fragment, container, false);
    rootView.findViewById(id.next).setOnClickListener(new OnClickListener() {

        @Override
        public void onClick(View view) {
            ((ExtensionActivity) getActivity()).next();
        }
    });
    rootView.findViewById(id.previous).setOnClickListener(new OnClickListener() {

        @Override
        public void onClick(View view) {
            ((ExtensionActivity) getActivity()).previous();
        }
    });
    SubsamplingScaleImageView imageView = (SubsamplingScaleImageView) rootView.findViewById(id.imageView);
    imageView.setImage(ImageSource.asset("squirrel.jpg"));
    return rootView;
}
Also used : OnClickListener(android.view.View.OnClickListener) SubsamplingScaleImageView(com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView) SubsamplingScaleImageView(com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView) View(android.view.View)

Aggregations

SubsamplingScaleImageView (com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView)30 View (android.view.View)18 PointF (android.graphics.PointF)5 Rect (android.graphics.Rect)4 OnClickListener (android.view.View.OnClickListener)4 TextView (android.widget.TextView)4 GestureDetector (android.view.GestureDetector)3 MotionEvent (android.view.MotionEvent)3 ImageView (android.widget.ImageView)2 ImageViewState (com.davemorrissey.labs.subscaleview.ImageViewState)2 SuppressLint (android.annotation.SuppressLint)1 WallpaperManager (android.app.WallpaperManager)1 Intent (android.content.Intent)1 Bitmap (android.graphics.Bitmap)1 RequiresApi (android.support.annotation.RequiresApi)1 ActionBar (android.support.v7.app.ActionBar)1 RecyclerView (android.support.v7.widget.RecyclerView)1 Toolbar (android.support.v7.widget.Toolbar)1 OnTouchListener (android.view.View.OnTouchListener)1 ViewGroup (android.view.ViewGroup)1