taverna-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From therajanmaurya <...@git.apache.org>
Subject [GitHub] incubator-taverna-mobile pull request #24: Image zoom feature for workflow i...
Date Mon, 25 Jul 2016 11:49:26 GMT
Github user therajanmaurya commented on a diff in the pull request:

    https://github.com/apache/incubator-taverna-mobile/pull/24#discussion_r72050248
  
    --- Diff: app/src/main/java/org/apache/taverna/mobile/ui/imagezoom/ImageZoomFragment.java
---
    @@ -0,0 +1,246 @@
    +/*
    + * Licensed to the Apache Software Foundation (ASF) under one
    + * or more contributor license agreements.  See the NOTICE file
    + * distributed with this work for additional information
    + * regarding copyright ownership.  The ASF licenses this file
    + * to you under the Apache License, Version 2.0 (the
    + * "License"); you may not use this file except in compliance
    + * with the License.  You may obtain a copy of the License at
    + *
    + *   http://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing,
    + * software distributed under the License is distributed on an
    + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    + * KIND, either express or implied.  See the License for the
    + * specific language governing permissions and limitations
    + * under the License.
    + */
    +package org.apache.taverna.mobile.ui.imagezoom;
    +
    +
    +import android.content.Context;
    +import android.graphics.drawable.Drawable;
    +import android.os.Bundle;
    +import android.os.Handler;
    +import android.support.annotation.Nullable;
    +import android.support.design.widget.Snackbar;
    +import android.support.v4.app.Fragment;
    +import android.view.LayoutInflater;
    +import android.view.View;
    +import android.view.ViewGroup;
    +import android.widget.ImageView;
    +
    +import com.bumptech.glide.Glide;
    +import com.bumptech.glide.load.engine.DiskCacheStrategy;
    +import com.bumptech.glide.load.resource.drawable.GlideDrawable;
    +import com.bumptech.glide.request.Request;
    +import com.bumptech.glide.request.animation.GlideAnimation;
    +import com.bumptech.glide.request.target.SizeReadyCallback;
    +import com.bumptech.glide.request.target.Target;
    +
    +import org.apache.taverna.mobile.R;
    +import org.apache.taverna.mobile.data.DataManager;
    +import org.apache.taverna.mobile.utils.ConnectionInfo;
    +
    +import butterknife.BindView;
    +import butterknife.ButterKnife;
    +import butterknife.OnClick;
    +import uk.co.senab.photoview.PhotoViewAttacher;
    +
    +public class ImageZoomFragment extends Fragment implements ImageZoomMvpView {
    +
    +    public static final String JPG_URI = "jpgURI";
    +
    +    public static final String SVG_URI = "svgURI";
    +
    +    private static final String SERVER_ERROR = "Sever Error. Please try after sometime";
    +
    +    private static final String TAG = "ImageZoomFragment";
    +
    +    @BindView(R.id.ivWorkflowImage)
    +    ImageView workflowImage;
    +    @BindView(R.id.ivClose)
    +    ImageView close;
    +
    +    PhotoViewAttacher mAttacher;
    +
    +    private String svgURI;
    +
    +    private String jpgURI;
    +
    +    private DataManager dataManager;
    --- End diff --
    
    Remove unused variables


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message