imageview tag

17 questions


1 answers
126 views
0
How to insert an image as a path to a file in an image view

Put resources in drawable ImageView imgView=new ImageView(this); imgView.setBackgroundResource(R.drawable.img1);I set it up in imageView like this. Instead of registering resources in the drawable fo...


1 answers
121 views
0
Time delay when switching Android screens

Loading the main screen (1.5 seconds) when running the app or switching the screen feels a little slow.Put the image in the layout background as shown in the code below There are also two images in th...

2 years ago

1 answers
101 views
0
How to change the image in ImageView

<ImageView android:id=@+id/articleImg style=@style/articleImgSmall_2 android:src=@drawable/default_m />I set the image of the image view in xml. What I need is to change the image from the code...


1 answers
110 views
0
I have a question for Android Adding ImageView from Fragment

I'm using Android Studio. I used tabbed activity. You are about to put an Imageview in the Fragment. I've already written the URL with Button. I want to add Imageview to it. I used rootView. The image...


1 answers
149 views
0
How to create a round image view on Android

I want to make the image view round on Android, how do I do it?Bitmap circleBitmap = Bitmap.createBitmap(bitmap.getWidth(), bitmap.getHeight(), Bitmap.Config.ARGB_8888);BitmapShader shader = new Bitma...

2 years ago

2 answers
112 views
0
It's an Android layout question

If you give android:layout_weight by 1 to place it like the image on the left,The ImageView ratio does not match as shown in the image on the right.TextView will also be out of proportion if the text ...

2 years ago

1 answers
109 views
0
Replace Android Studio Image View Image

Using the setImageResource() function logoImageViews[i].setImageResource(R.drawable.premierleague);But what I want is not a tag, but a file name ('xx'.Is it possible to change it by typing 'png')?

2 years ago
« - 2 -

© 2024 OneMinuteCode. All rights reserved.