3,022 questions
2
votes
1
answer
66
views
How does VectorDrawable scaling affect rendering performance?
I’m trying to understand how VectorDrawable rendering works in Android in terms of performance.
Suppose I have a vector resource defined like this:
<vector
xmlns:android="http://schemas....
0
votes
0
answers
41
views
ConstraintLayout Flow is not wrapping views as expected
I'm maintaining legacy app which is still using XMLs and oldschool Views.
I have androidx.constraintlayout.helper.widget.Flow component which has constraint_reference ids to other Views.
Those other ...
0
votes
0
answers
33
views
Proguard Rules for jackson-dataformat-xml
I am implementing Jackson with this dependencies
implementation ('com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.18.2')
implementation 'javax.xml.stream:stax-api:1.0-2'
https://...
0
votes
0
answers
48
views
Why textview is not appearing on Gif when using Glide?
I have an ImageView, and below it, there is a TextView. Both are inside a ConstraintLayout.
The ImageView can display either a GIF or a normal image.
The TextView appears fine when I use a normal ...
0
votes
0
answers
19
views
How to change menu actionitem background Color?
Ok I feel like an idiot,
my menu action item has this dark color that does not even exist in my theme,
But my menu_item xml is setting it to be a tan color,
xmlns:app="http://schemas.android....
10
votes
3
answers
3k
views
windowSoftInputMode adjustResize doesn't work in target sdk 35
When I increased the target SDK of the app from 34 to 35, the windowSoftInputMode in adjustResize mode no longer worked. I have tested everything and found that it is only related to the target SDK. ...
0
votes
1
answer
81
views
Constraint layout Y position not matching the margin value
I'm facing some sort of trouble setting constraint on a view on runtime with a margin.
These are the y and margin coordinate when the view is displayed to the user
I set the margin like that :
...
1
vote
1
answer
122
views
Possibility on Migrating Old Huge Project into Jetpack Compose
So, I was developing this huge app back in 2020 or so, still using xmls and all of that, and then I'm out. Now, I want to continue working on that app, but I've seen things changed drastically with ...
0
votes
1
answer
50
views
Cannot display an image in Constraint Layout
I have this xml but the image is only shown when I hard the width and height of the image. I am not sure why the constraints as I provided in the code are not working.
<merge
xmlns:android=&...
6
votes
1
answer
4k
views
How NOT to create projects with Jetpack Compose using Android Studio
I can't create a normal project without jetpack-compose, it always includes its libraries and configurations in Android Studio, and the working project requires not using it.
I expected it to open ...
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....
-1
votes
1
answer
76
views
I want to make a Weekday Picker that will take all the space available according to the device
I want to create a Weekday Picker that will utilize all the available space on the device.
Here is what I have done till now. How can I make it adaptive? How can I improve its appearance?
This is my ...
0
votes
2
answers
83
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....
0
votes
1
answer
77
views
MaterialAutoCompleteTextView automatically shows dropdown when changing theme
I'm using MaterialAutoCompleteTextView to display a dropdown list for selecting a theme.
xml:
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/...
0
votes
1
answer
43
views
TextInput displaying too narrow on phones with a small screen size
In the following xml, 'message_entry' displays too narrow on a small screen (240 x 320), but displays fine on a larger screen (480 x 640).
<androidx.cardview.widget.CardView
android:id="@+...