Questions tagged as 'android-imageview'

1
answer

ImageView that can be selected

I have this ImageView And I want that when you click on it, of the sensation of a button, as well as that it changes color. <ImageView android:id="@+id/image_view" android:layout_width="48dp" android:layout_height="48dp" and...
asked by 19.10.2018 / 16:07
2
answers

Android: Change list image according to Json's response?

Good morning, everyone. Charge a ListView from JSON to make reservations. All free reserves in the list have an image of a green icon (indicating that they are available), now those that are occupied should appear with a red ico...
asked by 21.08.2017 / 23:43
1
answer

Show an ImageView and TextView Running [duplicate]

Show a ImageView for 1s and after the time the image is deleted and then show a TextView for 1s, and so on until you go through the% List . way to do it: Code: This way it is working: Thanks to the contribution of:...
asked by 16.04.2017 / 08:02
1
answer

Imageview does not respect the dimensions on a cell phone

Good afternoon The problem I have is that the image does not respect the correct size on a device, this must be adapted for each type of resolution <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="h...
asked by 15.01.2018 / 18:29
0
answers

shared preferences are deleted when you close and open app XC wtf

When I select the image it saves it well and I can open it in other activitys when I close and open the app and the image does not appear in any activity, the same thing happens to me with audio files that I put in other activites what am I doin...
asked by 14.11.2018 / 19:52
0
answers

How to share image from an imageSwitcher?

The App what it does is show images by pressing forward or backward buttons. I need help with this, I would like to be able to share the image that is seen in that moment in the ImageSwitcher. public class MainActivity extends AppCompatActi...
asked by 29.09.2018 / 05:20
1
answer

How can I save the URI of an image once created on android?

The following method returns a File, but I can not get it to be set in an imageView public File SaveImage(Bitmap ImageToSave) { String file_path = Environment.getExternalStorageDirectory() .getAbsolutePath() + NameOfFolder; String Cu...
asked by 13.09.2018 / 16:06
0
answers

Upload image android to webservice asp.net

Good morning, I'm trying to upload an image of Android using an ASP MVC controller method but without success, could you give me some guidance? Here I declare the Retrofit method @POST("prueba") Call<JsonElement> prueba(@Query("img")...
asked by 30.07.2018 / 13:40
1
answer

ImageView always null by fragment

I want to change the fragment settings in the app and I want to start with the image of the user that is the box below. on the onCreate mDatabase = FirebaseDatabase.getInstance().getReference().child( "Users" ).child( uiD ); mDatab...
asked by 09.06.2018 / 20:37
0
answers

How to put a Sticker when capturing a photo

Hi, I'm new to android and I want my application to capture the photo to be saved with a default sticker at the top and I have no idea how to do it, could you help me? This is the code for the camera public class Camera extends AppCompatAct...
asked by 16.06.2018 / 23:55