Пример #1
0
 /// <summary>Retrieve the Drawable for the attribute at <var>index</var>.</summary>
 /// <remarks>
 /// Retrieve the Drawable for the attribute at <var>index</var>.  This
 /// gets the resource ID of the selected attribute, and uses
 /// <see cref="Resources.getDrawable(int)">Resources.getDrawable</see>
 /// of the owning
 /// Resources object to retrieve its Drawable.
 /// </remarks>
 /// <param name="index">Index of attribute to retrieve.</param>
 /// <returns>Drawable for the attribute, or null if not defined.</returns>
 public virtual android.graphics.drawable.Drawable getDrawable(int index)
 {
     android.util.TypedValue value = mValue;
     if (getValueAt(index * android.content.res.AssetManager.STYLE_NUM_ENTRIES, value))
     {
         if (false)
         {
             java.io.Console.Out.println("******************************************************************"
                                         );
             java.io.Console.Out.println("Got drawable resource: type=" + value.type + " str="
                                         + value.@string + " int=0x" + Sharpen.Util.IntToHexString(value.data) + " cookie="
                                         + value.assetCookie);
             java.io.Console.Out.println("******************************************************************"
                                         );
         }
         return(mResources.loadDrawable(value, value.resourceId));
     }
     return(null);
 }