4,237 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
1
answer
124
views
Android: how to fix "Cannot resolve symbol 'R'" with androidx and search_close_btn?
In my Android project, I have an onCreateOptionsMenu(Menu menu) to show a SearchView. The below line sets up an "X" graphic as a close button for the SearchView, which is shown when the ...
1
vote
0
answers
41
views
Picked image shows briefly, then disappears from ImageView.Why?
I'm working on an Android app and trying to pick a profile image from the gallery. I use setImageURI(uri) to display it in a CircleImageView.
The image shows perfectly for 4–5 seconds and then ...
1
vote
0
answers
36
views
Android custom image with diagonal
I want to create a layout like this. It has 2 images with a diagonal running across the 2 images.
Below is my xml layout.
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http:...
0
votes
1
answer
42
views
Bitmap on Android ImageView not displaying as it should
I have two bitmaps that I have placed the character at the bottom right corner of the bitmap.
However, I see that upon changing container height of the imageview whose android:src equals the bitmap, ...
0
votes
0
answers
47
views
SVG Image doesn't show up when I use app:srcCompat but works fine when I use android:src
I downloaded and Added an SVG file to my Project's Drawable Directory. When I used it in my Layout with app:srcCompat, the Image doesn't get displayed. I even added the VectorDrawables....
0
votes
2
answers
99
views
Fatal Exception: android.content.res.Resources$NotFoundException: Drawable org.radarcns.detail:drawable/status_searching with resource ID #0x7f080130
I am getting the exception:
Fatal Exception: android.content.res.Resources$NotFoundException: Drawable org.radarcns.detail:drawable/status_searching with resource ID #0x7f080130
Caused by android....
1
vote
0
answers
660
views
Glide not showing SVG image
I'm using Glide to show SVG flag inside an ImageView. When i use PNG url it works perfectly, instead when i use SVG url it doesn't work.
private void loadImage(String country, ImageView flag) {
...
0
votes
1
answer
313
views
In AndroidStudio, how do i make the image view adjust its size according to the size of the screen?
I want the image to shrink or increase in size as i change the screen resolution. Please help!
When i changed the screen size the image became either too small or too big for some screen.
Just using ...
0
votes
1
answer
36
views
Android - ImageView below recyclerView sticked to bottom
I have a RelativeLayout, inside one image on top, below Recyclerview, and below the Recyclerview I want to have an ImageView, but aligned to the bottom of the screen.
<RelativeLayout xmlns:android=&...
2
votes
0
answers
276
views
How does Jetpack Compose handle drawable resources for different screen densities?
I'm a total newbie with Jetpack Compose. I hope you may help shed some light on my issue.
In the old days, if you had a PNG drawable resource, you would provide multiple versions of that drawable ...
1
vote
0
answers
569
views
OutOfMemoryError - OOM allocating Bitmap with dimension
I'm simply trying to load an image into an ImageView.
However, I'm getting this error on a Samsung Galaxy A02:
OOM allocating Bitmap with dimensions 960 x 1440
Why is it a sci-fi feature in 2023 to ...
0
votes
1
answer
99
views
How to correctly align two imageViews in Android for all display sizes using constraint layout
I have 2 image views in Android. One is a wind turbine pole and the other one wind turbine blades. How can I set the layout constraints such that the wind turbine blades are always correctly attached ...
0
votes
0
answers
84
views
Crash from Permission
I'm trying to take permission to change imageView with another image from library that users choose. So, I connected RecipesFragment with MainActivity with NavHostFragment.But when I try to run the ...
1
vote
0
answers
329
views
Rendering error in Android's image view by using custom made png file
I have a very strange error related to custom image Views in Android using self-made png files. This error might be difficult to debug. Still I just wanted to ask you guys here before not using the ...
0
votes
0
answers
150
views
Image not showing in Toolbar in Android Studio (Flamingo)
I am facing a problem to show images and TextView in Custom Toolbar.
I have this Layout structure.
RelativeLayout -> androidx.appcompat.widget.Toolbar -> LinearLayout(horizontal) -> ImageView,...