Home
last modified time | relevance | path

Searched refs:getDrawable (Results 1 – 25 of 69) sorted by relevance

123

/development/samples/HoneycombGallery/src/com/example/android/hcgallery/
DDirectoryEntry.java37 public Drawable getDrawable(Resources res) { in getDrawable() method in DirectoryEntry
38 return res.getDrawable(resID); in getDrawable()
/development/samples/browseable/DisplayingBitmaps/src/com.example.android.displayingbitmaps/ui/
DRecyclingImageView.java58 final Drawable previousDrawable = getDrawable(); in setImageDrawable()
84 notifyDrawable(layerDrawable.getDrawable(i), isDisplayed); in notifyDrawable()
/development/samples/browseable/Notifications/Wearable/src/com.example.android.support.wearable.notifications/
DWearableListItemLayout.java62 ((GradientDrawable) mCircle.getDrawable()).setColor(mChosenCircleColor); in onCenterPosition()
67 ((GradientDrawable) mCircle.getDrawable()).setColor(mFadedCircleColor); in onNonCenterPosition()
DAnimatedNotificationDisplayActivity.java125 int imageWidth = imageView.getDrawable().getIntrinsicWidth(); in onLayout()
126 int imageHeight = imageView.getDrawable().getIntrinsicHeight(); in onLayout()
/development/samples/browseable/Timer/Wearable/src/com.example.android.wearable.timer/
DWearableListItemLayout.java60 ((GradientDrawable) mCircle.getDrawable()).setColor(mChosenCircleColor); in onCenterPosition()
65 ((GradientDrawable) mCircle.getDrawable()).setColor(mFadedCircleColor); in onNonCenterPosition()
/development/samples/browseable/SpeedTracker/Wearable/src/com.example.android.wearable.speedtracker/ui/
DSpeedPickerLayout.java70 ((GradientDrawable) mCircle.getDrawable()).setColor(mChosenCircleColor); in onCenterPosition()
75 ((GradientDrawable) mCircle.getDrawable()).setColor(mFadedCircleColor); in onNonCenterPosition()
/development/samples/browseable/JumpingJack/Wearable/src/com.example.android.wearable.jumpingjack/fragments/
DCounterFragment.java52 mDownDrawable = getResources().getDrawable(R.drawable.jump_down_50); in onCreateView()
53 mUpDrawable = getResources().getDrawable(R.drawable.jump_up_50); in onCreateView()
/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/
DQueueAdapter.java75 getContext().getDrawable(R.drawable.ic_equalizer_white_24dp)); in getView()
78 getContext().getDrawable(R.drawable.ic_play_arrow_white_24dp)); in getView()
/development/samples/SupportLeanbackDemos/src/com/example/android/leanback/
DDetailsFragment.java72 … dor.setImageDrawable(getResources().getDrawable(mPhotoItem.getImageResourceId())); in onCreate()
77 … dor.setImageDrawable(getResources().getDrawable(mPhotoItem.getImageResourceId())); in onCreate()
150 dor.setImageDrawable(res.getDrawable(mPhotoItem.getImageResourceId())); in setItem()
152 … dor.addAction(new Action(ACTION_RENT, "Rent", "$3.99", res.getDrawable(R.drawable.ic_action_a))); in setItem()
DStringPresenter.java30 parent.getContext().getResources().getDrawable(R.drawable.text_bg)); in onCreateViewHolder()
DErrorFragment.java42 setImageDrawable(resources.getDrawable(R.drawable.lb_ic_sad_cloud)); in setErrorContent()
/development/samples/SoftKeyboard/src/com/example/android/softkeyboard/
DLatinKeyboardView.java52 keyboard.setSpaceIcon(getResources().getDrawable(subtype.getIconResId())); in setSubtypeOnSpaceKey()
DLatinKeyboard.java126 mEnterKey.icon = res.getDrawable(R.drawable.sym_keyboard_search); in setImeOptions()
135 mEnterKey.icon = res.getDrawable(R.drawable.sym_keyboard_return); in setImeOptions()
/development/samples/ApiDemos/src/com/example/android/apis/view/
DTabs2.java41 .setIndicator("tab1", getResources().getDrawable(R.drawable.star_big_on)) in onCreate()
DTabs6.java40 .setIndicator("tab1", getResources().getDrawable(R.drawable.star_big_on)) in onCreate()
/development/samples/devbytes/animation/ListViewItemAnimations/src/com/example/android/listviewitemanimations/
DBackgroundContainer.java48 … mShadowedBackground = getContext().getResources().getDrawable(R.drawable.shadowed_background); in init()
/development/samples/training/TabCompat/src/com/example/android/tabcompat/lib/
DCompatTabEclair.java44 mIcon = mActivity.getResources().getDrawable(resId); in setIcon()
/development/samples/devbytes/animation/ListViewRemovalAnimation/src/com/example/android/listviewremovalanimation/
DBackgroundContainer.java49 getContext().getResources().getDrawable(R.drawable.shadowed_background); in init()
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DColorFilters.java64 mDrawable = context.getResources().getDrawable(R.drawable.btn_default_normal); in SampleView()
76 mDrawables[i] = context.getResources().getDrawable(resIDs[i]); in SampleView()
DAnimateDrawables.java46 Drawable dr = context.getResources().getDrawable(R.drawable.beach); in SampleView()
/development/samples/training/AnimationsDemo/src/com/example/android/animationsdemo/
DTouchHighlightImageButton.java71 mForegroundDrawable = a.getDrawable(0); in init()
/development/samples/ApiDemos/src/com/example/android/apis/app/
DPrintBitmap.java77 Bitmap bitmap = ((BitmapDrawable) mImageView.getDrawable()).getBitmap(); in print()
/development/apps/NinePatchLab/src/com/android/ninepatch/
DNinePatchLab.java99 mButtons[i] = res.getDrawable(ids[i]); in NPView()
102 mBGs[i] = res.getDrawable(bgs[i]); in NPView()
/development/samples/CrossCompatibility/src/com/example/android/touchexample/
DTouchExampleView.java43 mIcon = context.getResources().getDrawable(R.drawable.icon); in TouchExampleView()
/development/samples/ApiDemos/src/com/example/android/apis/animation/
DActivityTransitionDetails.java58 return getResources().getDrawable(mImageResourceId); in getHeroDrawable()

123