Xamarin.Android | ComponentOne
C1.Android.Core Assembly / C1.Android.Core Namespace / C1BitmapIcon Class
Members


In This Topic
    C1BitmapIcon Class
    In This Topic
    Represents an icon created from an image.
    Object Model
    C1BitmapIcon ClassC1Thickness Structure
    Syntax
    'Declaration
     
    
    <Android.Runtime.RegisterAttribute("android/view/ViewGroup", 
       DoNotGenerateAcw=True, 
       ApiSince=1)>
    Public Class C1BitmapIcon 
       Inherits C1Icon
       Implements Android.Graphics.Drawables.Drawable.ICallback, Android.Runtime.IJavaObject, Android.Views.Accessibility.IAccessibilityEventSource, Android.Views.IViewManager, Android.Views.IViewParent, Android.Views.KeyEvent.ICallback, IDependencyObject, Java.Interop.IJavaPeerable 
    'Usage
     
    
    Dim instance As C1BitmapIcon
    [Android.Runtime.Register("android/view/ViewGroup", 
       DoNotGenerateAcw=true, 
       ApiSince=1)]
    public class C1BitmapIcon : C1Icon, Android.Graphics.Drawables.Drawable.ICallback, Android.Runtime.IJavaObject, Android.Views.Accessibility.IAccessibilityEventSource, Android.Views.IViewManager, Android.Views.IViewParent, Android.Views.KeyEvent.ICallback, IDependencyObject, Java.Interop.IJavaPeerable  
    Remarks
    The file that you use should be a solid image on a transparent background. The bitmap image is expected to be a true bitmap that has transparent pixels and non-transparent pixels. The recommended format is PNG. Other file-format image sources will load but result in a solid block of the foreground color.
    Inheritance Hierarchy

    System.Object
       Java.Lang.Object
          Android.Views.View
             Android.Views.ViewGroup
                C1.Android.Core.C1Icon
                   C1.Android.Core.C1BitmapIcon

    See Also