Created
June 4, 2020 17:58
-
-
Save shubhamnikam/ff0a94202a07d2855ed46447bc009ccf to your computer and use it in GitHub Desktop.
Medium Article - zoomview- MainActivity.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.os.Bundle; | |
import android.widget.ImageView; | |
import androidx.appcompat.app.AppCompatActivity; | |
public class MainActivity extends AppCompatActivity { | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_main); | |
//get view by id | |
ImageView imageView = findViewById(R.id.imageView); | |
//pass view to setupZoom method | |
ZoomView zoomView = new ZoomView(); | |
zoomView.setupZoom(imageView); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment