आप Monodroidtoolkit ScaleImageView का उपयोग करके imageView जूम-इन क्षमताओं और के जूम छवि में पैनिंग प्राप्त कर सकते हैं में धन्यवाद।
सबसे पहले, the code from here का उपयोग करके अपनी परियोजना में ScaleImageView.cs क्लास जोड़ें।
टूलकिट भी कि यह कैसे उपयोग करने के लिए का एक नमूना है, मूल रूप से आप जोड़ना एक activity इस तरह:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<com.refractored.monodroidtoolkit.ScaleImageView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:src="@drawable/seattle"
android:id="@+id/AnimateImage">
</com.refractored.monodroidtoolkit.ScaleImageView>
</LinearLayout>
:
namespace Samples
{
[Activity(Label = "My Activity")]
public class ScaleImageActivity : Activity
{
protected override void OnCreate(Bundle bundle)
{
base.OnCreate(bundle);
SetContentView(Resource.Layout.ScaleImage);
}
}
}
फिर, निम्न XML के साथ एक लेआउट बनाने के द्वारा ScaleImage.axml लेआउट जोड़ने
अंत में, इस नमूने में यह drawable फ़ोल्डर से सिएटल की एक छवि लोड हो रहा है, इसलिए seattle.jpg छवि पाया जा सकता है जोड़ने है here
मोनोडायड टुल्ककिट में एक परियोजना है जिसमें नमूनों का एक समूह है जिसमें यह एक