Most voted "drawable" questions
25 questions
Sort by count of
-
5
votes3
answers3930
viewsDifference between setImageResource and setImageDrawable
To set an image in Imageview I did as follows using the setImageDrawable: imagem.setImageDrawable(ContextCompat.getDrawable(this,R.drawable.cliente)); While searching for Imageview I also found the…
-
5
votes1
answer176
viewsHow do you check if two Drawables are the same?
Good night ! I’m having trouble recovering the current image from my android imageView. It is a favorite image for the user(dar like), and I want that when the user click on this image, I check if…
-
4
votes1
answer564
viewsWhen should I use mipmaps?
After Google started adding Mipmaps I ended up not researching exactly why. Even with this addition, it does not prevent anything from using the Drawable as before. Before res/…
-
3
votes1
answer3160
viewsDrawable folders for different dpi do not appear in Android Studio
I can’t find the drawable folders with the proper resolutions in Android Studio. It only has a drawable call, where I should place the images with different resolutions?…
-
2
votes1
answer1983
viewsEvery image on android should be treated as a bitmap
I was having a problem with uploading images into one Textview, when I came across a very stupid question, rs, someone would know to answer? Next, I was trying to upload a large (high resolution)…
-
1
votes3
answers1091
viewsIs it possible to attach an Android res/drawable file to an email using Javamail?
I’m looking for a two-way solution: Get the file path: I would like to get the path of an image that is in res/drawable on my Android project. I’m in need of the path because I have to send it in…
-
1
votes1
answer757
viewsImage in listview with Sqllite / Drawable
I have an app that does a corporate phone search on a Sqllite database. It’s working normally, but I need to get some image into some of these companies. The database field would be only the image…
-
1
votes1
answer113
viewsSet Linear background layout from String variable
I have a function that takes a number (in the String format) as a parameter and checks if it is between the numbers 1 to 5. Here is the function: if (fundo.equals("1") || fundo.equals("2") ||…
-
1
votes0
answers279
viewsAttribute drawableTint is only used in API level 23 and Higher
I’m trying to put a colorful icon on EditText but the Android Studio is warning that the attribute that colors the icon (android:drawableTint) is only supported in API's >= 23. What do I do to…
-
1
votes0
answers44
viewsError while running new Drawable Animation on Android Stuido
I have a problem. I created a test animation for a Splash Screen of a project of mine. It works well. Now when I made a new animation to subtype this old, out-of-nowhere app. Animation 1 =>…
-
1
votes0
answers229
viewsImages for different sizes of android screens
I’m developing an app that uses the camera on android. About the Framelayout where I display the camera I put a Linearlayout with a background according to the image below: The problem is this: I…
-
0
votes1
answer1064
viewsConvert Bitmap/Drawable to Drawable (int)
I need to convert a Bitmap or even a Drawable into a Drawable (int), because I’m using a Bootstrap for android that needs an object of this type, but as I’m downloading the image of a url and not…
-
0
votes1
answer218
viewsMost suitable API - Opengl ES 2.0 x Canvas x Drawable
Good morning, I would like to make an application for Android to do the following: display the plan of a home on mobile, and the user touch a room on the screen, the color of the room change. I’m…
-
0
votes1
answer425
viewsEmpty drawable folder Android Studio - None of the resolution options appears
I created a new project in Android Studio Version 1.3.2 and it does not appear any of the folders that specify the resolutions corresponding to them ex: Drawable-hdpi, Drawable-ldpi. I’ve changed…
-
0
votes0
answers93
viewsCode does not recognize image from xhdpi folder
I saved some images directly in the drawable folder. These, Android Studio recognizes normally. But the images saved in the folders mdli, hdpi, xhdpi, xxhdpi and xxxhdpi the code does not recognize…
-
0
votes1
answer255
viewsWould 15 be the maximum limit of images per Drawable Resource File in Android Studio?
I’d like to make a Animation Drawable with 18 images in Android Studio, but when trying to run it the application stopped out of nowhere and gave this in Android Monitor: 03-16 16:58:26.531…
-
0
votes1
answer600
viewsCreating a subfolder in drawable Android Studio
I want to create a subfolder in drawable because I am using many images in my application and I would like to organize them. How to create and make the folder visible for use?
-
0
votes1
answer347
viewsGrab images from the drawable folder by name
I would like to know how to take an image id from the drawable folder and use it in an Imageview. I am trying to do this within a Listview String nomeImgFilme = filme.getImagem(); int imgID =…
-
0
votes1
answer35
viewsI can’t recover an imageview on (R.drawable)
It was supposed to appear (R.drawable.image1) I don’t know what else to do if someone can help me in this situation....…
-
0
votes1
answer49
viewsChange icon color in API 19 Kitkat
Since API 19(Kitkat) is still very popular, it is a good choice to support this version. However, it does not support several Eatures, such as backgroundTint and Imagetint. This puts me in several…
-
0
votes0
answers31
viewsSortable with Z-index
People I’m wanting to use this function that Jquery provides but increasing it: Jquery function: $(function() { $("#sortable").sortable(); $("#sortable").disableSelection(); }); #sortable {…
-
0
votes1
answer230
viewsHow to pass the name of Image Dynamically?
Hello, I’m learning now and I managed to make a Heads or Tails app with Success and decided to create another one based on it. This other app just click on the mainActivity button and it calls a…
-
-1
votes3
answers458
viewsListview images and quantity - Android
Next, I have 2 questions that relate, so I’ll ask on 1 topic. Well, I use this query to return a list of strings with product names. public List<String> getMedico() { List<String> list =…
-
-1
votes1
answer34
viewsDoubt about images on Android
images should be in the drawable or mipmap folder in my Android project? I’ve been using the mipmap folder. There is some difference in using these folders in an Android project?
-
-1
votes1
answer101
viewsAndroid studio: how to organize images in subfolder
when placing the images in a new subfolder of drawable, the images and the new folder no longer appear in the left panel, in the "android" tab, in the other tab as "Packages" the folder is there.…