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"));
}
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"));
}
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"));
}
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"));
}
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;
}
Aggregations