Tabnine Logo
DrawableRes
Code IndexAdd Tabnine to your IDE (free)

How to use
DrawableRes
in
android.annotation

Best Java code snippets using android.annotation.DrawableRes (Showing top 5 results out of 315)

origin: robolectric/robolectric

@Nullable
@Implementation
protected Drawable getDrawable(
  String packageName, @DrawableRes int resId, @Nullable ApplicationInfo appInfo) {
 Drawable result = drawables.get(new Pair<>(packageName, resId));
 if (result != null) {
  return result;
 }
 return Shadow.directlyOn(realObject, ApplicationPackageManager.class)
   .getDrawable(packageName, resId, appInfo);
}
origin: wasdennnoch/AndroidN-ify

@NonNull
public final Drawable getDrawable(@DrawableRes int resId) {
  //noinspection deprecation
  return mContext.getDrawable(resId);
}
origin: org.robolectric/framework

@Override @Nullable
@Implementation
public Drawable getDrawable(String packageName, @DrawableRes int resId, @Nullable ApplicationInfo appInfo) {
 return drawables.get(new Pair(packageName, resId));
}
origin: org.robolectric/shadows-framework

@Nullable
@Implementation
protected Drawable getDrawable(
  String packageName, @DrawableRes int resId, @Nullable ApplicationInfo appInfo) {
 Drawable result = drawables.get(new Pair<>(packageName, resId));
 if (result != null) {
  return result;
 }
 return Shadow.directlyOn(realObject, ApplicationPackageManager.class)
   .getDrawable(packageName, resId, appInfo);
}
origin: org.robolectric/shadows-core

@Nullable
@Implementation
public Drawable getDrawable(String packageName, @DrawableRes int resId, @Nullable ApplicationInfo appInfo) {
 return getDelegatePackageManager().getDrawable(packageName, resId, appInfo);
}
android.annotationDrawableRes

Most used methods

  • <init>

Popular in Java

  • Reading from database using SQL prepared statement
  • requestLocationUpdates (LocationManager)
  • putExtra (Intent)
  • compareTo (BigDecimal)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now