Skip to main content

Questions tagged [bitmapdrawable]

The tag has no usage guidance.

bitmapdrawable
0 votes
1 answer
35 views

How to check at runtime if an imageview came from a local or remote resource?

If I'm running as a third party library within an android application, and I want to check whether the imageviews on screen were loaded from locally bundled resources or were loaded from a remote uri -...
Jon's user avatar
  • 8,011
0 votes
1 answer
387 views

How to clear BitmapDrawable.getBitmap()' on a null object reference on a null object reference error

Im using this library https://github.com/jgabrielfreitas/BlurImageView to blur images and everything works fine in a normal activity, recently i tried using this library in a custom GridView and got ...
PeterEssyen's user avatar
1 vote
1 answer
167 views

layer-list drawable gets automatically converted to BitmapDrawable

I have created a layer list drawable of 3 bitmap drawables in xml. When I try to retrieve that drawable in java code, I receive a BitmapDrawable object, not a LayerDrawable object. Here is my layer-...
Mina Nazmy Moneer's user avatar
0 votes
1 answer
196 views

Set offset for BitmapDrawable while repeating in the x and y direction?

I'm making a 2D platformer game. I have created a texture for the platform, that is meant to be repeated over and over to fill the entire platform, without going over. My first attempt was to draw all ...
mega12345mega's user avatar
0 votes
1 answer
376 views

why splash screen in android doesn't fit inside the available space?

I'm using the fallowing xml as splashScreen <?xml version="1.0" encoding="utf-8"?> <!-- Modify this file to customize your launch splash screen --> <layer-list xmlns:android="http://...
Yadu's user avatar
  • 3,225
0 votes
2 answers
2k views

How to fix deprecated issue in Android Bitmap?

hi guys someone could help me? i'm stucked with this can't find the answer selectedPhotoUri = data.data val bitmap = MediaStore.Images.Media.getBitmap(contentResolver, selectedPhotoUri) ...
Szakáli Vándor Árpád's user avatar
0 votes
1 answer
1k views

Duplicate images while loading the images from android assets as Bitmap and setting ImaegView using glideV4

I tried to retrieve bitmap from the assets and then try to load the Horizontal recyclerview image list using glide as asBitmap(). I am getting the duplicate images and the mismatch images(loading ...
Pradip Tilala's user avatar
1 vote
0 answers
120 views

Preserve Bitmap dimensions when saving to file from ImageView

I am trying to save the drawable inside of a ImageView to a file. I use Glide to load an image into the ImageView like this: Glide.with(context) //items[position] is a string that ...
Foobar's user avatar
  • 8,100
0 votes
0 answers
62 views

repeate tile image with paths in android

I want to create frame Like this image using path I want to use a Bitmap that Tile on the Horizontal only, is there any way to do it, so that it will expand only on X like repeat x on CSS. I using the ...
nitin londhe's user avatar
1 vote
1 answer
278 views

LRUCache BitmapDrawable

I'm using an LruCache to cache a lot of small BitmapDrawables used throughout my app. The problem is that the sizes differ for the different places I use the images. I set the bounds when I retrieve ...
Pierre's user avatar
  • 8,807
0 votes
0 answers
85 views

HorizontalScrollView fill with repeatable image

I have a HorizontalScrollview and I want to have a repeatable image, so I can scroll infinite to left or right. This is my XML code <HorizontalScrollView android:layout_weight="1" ...
tomhogenkamp's user avatar
0 votes
2 answers
255 views

setBackground from Bitmap API 22+

I have an app that can take a selected image from the users gallery and display it as their background within the app. I have used the code below with success. Uri selectedImage = data.getData(); ...
RhysBailey21's user avatar
1 vote
1 answer
338 views

Different drawable loading from app resources versus test resources

I am writing some UI tests for the app that I'm working on and I need to switch an image based on a push notification. To write the test without push notifications, I'm placing a png file in the ...
Michael Markley's user avatar
0 votes
1 answer
532 views

Android: cannot cast BitmapDrawable to a ClipDrawable

I'm trying to implement a simple ClipDrawable using Android Jellybean (SDK 18). I don't understand why I'm getting the casting error for ImageView.getDrawable() when that returns a Drawable, not a ...
M. Smith's user avatar
  • 389
1 vote
1 answer
555 views

How to show Android SeekBar progressChanged value inside SeekBar thumb?

I want to show the value of the current progress point in the thumb of an Android SeekBar. This is what I have tried so far: SeekBar progBar = (SeekBar)FindViewById(Resource.Id.seekBar1); ...
Israel Eruoghene's user avatar

15 30 50 per page