title: Xamarin Android - Entry with icon - SetCompoundDrawablesWithIntrinsicBounds -- TOUCH/Click event?
body: <p>I want to make entry with Icon on the right side.</p>
  
  <p>I Use Xamarin Forms + PCL</p>
  
  <p>I already implement in IOS and Android the main part.</p>
  
  <p>I add icon inside entry and this is looks awesome............</p>
  
  <p>But!
  I need catch when user click on this icon.</p>
  
  <p>In Ios i did it pretty simple....but Android .. I cannot to do it(((</p>
  
  <p>Xamarin.Droid CUSTOM RENDER for entry</p>
  
  <pre><code>  FormsEditText editText = Control;
              if(!string.IsNullOrEmpty(element.Image))
              {            
                  Drawable d = GetDrawable(element.Image);
  
                  switch(element.ImageAlignment)
                  {
                      case ImageAlignment.Left:
                           editText.SetCompoundDrawablesWithIntrinsicBounds(d, null, null, null);
                          break;
  
                      case ImageAlignment.Right:
                          editText.SetCompoundDrawablesWithIntrinsicBounds(null, null, d, null);
                          break;
                  }
              }
  
  
   private BitmapDrawable GetDrawable(string imageEntryImage)
          {
              int resID = Resources.GetIdentifier(imageEntryImage, "drawable", Context.PackageName);
              Android.Graphics.Drawables.Drawable drawable = ContextCompat.GetDrawable(Context, resID);
              Bitmap bitmap = ((BitmapDrawable)drawable).Bitmap;
              var im =  new BitmapDrawable(Resources, Bitmap.CreateScaledBitmap(bitmap, element.ImageWidth * 4, element.ImageHeight * 4, true));
              return im;
          }
  </code></pre>
  
  <p>So I need catch click/touch event on this icon.</p>
  
  <p>Thank you.</p>