Questions tagged as 'drawable'

1
answer

How to check if two drawables are the same?

Good evening!    I'm having difficulty retrieving the current image from my android imageView. It is an image to favor for the user (give like), and I want when the user clicks on that image, I check if the current image is = a heart icon with n...
asked by 21.05.2018 / 04:10
1
answer

When should I use mipmaps?

After Google started adding Mipmaps I did not exactly search for why. Even with this addition, it does not prevent anything from using Drawable as it was before. Before res/ drawable-mdpi/ic_launcher.png (48x48 pixels) drawable-...
asked by 22.09.2016 / 20:58
2
answers

Difference between setImageResource and setImageDrawable

To set an image in ImageView I did the following using setImageDrawable : imagem.setImageDrawable(ContextCompat.getDrawable(this,R.drawable.cliente)); When searching ImageView, I also found the setImageResource method and it al...
asked by 15.11.2016 / 17:11
1
answer

Drawable folders for different dpi do not appear in Android Studio

I can not find the drawable folders with the proper resolutions in Android Studio. Just have a drawable call, where should I put the images at different resolutions?     
asked by 21.04.2015 / 01:15
1
answer

Every image in android should be treated as a bitmap

I was having a problem uploading images in a TextView , when I came across a pretty dumb question, rs, would anyone know how to respond? Next, I was trying to load a large (high-resolution) image as a background of a TextView , so I figur...
asked by 06.08.2016 / 15:53
3
answers

Is it possible to attach an Android res / drawable file to an email using JavaMail?

I'm looking for the solution in two ways: Get the file PATH: I would like to get the path of an image that is in res/drawable in my Android project. I'm needing path because I have to send it attached by email, a...
asked by 21.03.2014 / 15:49
1
answer

Define background LinearLayout 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's the function: if (fundo.equals("1") || fundo.equals("2") || fundo.equals("3") || fundo.equals("4") || fundo.equa...
asked by 30.03.2016 / 15:38
1
answer

Image in listview with SqlLite / Drawable

I have an App that performs a search on business phones in a SQLLite database. It is working normally, but I need to insert image in some of these companies. The database field would be just the name of the image and the image would be in the re...
asked by 02.10.2014 / 19:41
0
answers

Error when running new Drawable Animation on Android Stuido

I have a problem. I created a test animation for a Splash Screen from a project of mine. It works fine. Now when I made a new animation to replace this old one, the application stops at nothing. Animation 1 = > animation.xml, animation_01....
asked by 15.03.2017 / 23:45
0
answers

Attribute drawableTint is only used in API level 23 and higher

I'm trying to put a color icon in EditText but 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 be able to use API's...
asked by 03.08.2016 / 00:47