Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
36 views

My goal is to make text with Dynamic Color enabled more bright and readable, like how it looks without the Dynamic Color. I know that I can set text color programmatically, but this is an approach, ...
MrCookie's user avatar
  • 101
0 votes
1 answer
60 views

I'm working with Android 15's edge-to-edge enforcement and need clarification on how enableEdgeToEdge() interacts with the windowOptOutEdgeToEdgeEnforcement theme attribute. Setup In my theme: <...
Adam's user avatar
  • 1
1 vote
0 answers
79 views

Im having an issue where attributionTag not declared in manifest of com.my.package is appearing in my logcat when i play audio using the MediaPlayer. Based on the Android documentation and other ...
Tennis Heal's user avatar
2 votes
1 answer
73 views

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....
Hussein Yaqoobi's user avatar
0 votes
0 answers
44 views

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 ...
Martin's user avatar
  • 2,984
0 votes
0 answers
38 views

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://...
stash's user avatar
  • 19
0 votes
0 answers
48 views

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 ...
Taha Kirmani's user avatar
0 votes
0 answers
26 views

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....
Dan Anderson's user avatar
  • 1,144
10 votes
3 answers
3k views

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. ...
danial's user avatar
  • 155
0 votes
1 answer
81 views

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 : ...
Shindra's user avatar
  • 95
1 vote
1 answer
133 views

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 ...
MeApt's user avatar
  • 21
0 votes
1 answer
60 views

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=&...
MXC's user avatar
  • 700
6 votes
1 answer
4k views

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 ...
Cristian Tech's user avatar
0 votes
0 answers
47 views

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....
Amey079's user avatar
  • 141
-1 votes
1 answer
81 views

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 ...
bhavy khanna's user avatar
0 votes
2 answers
95 views

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....
Aditya Mishra's user avatar
0 votes
1 answer
80 views

I'm using MaterialAutoCompleteTextView to display a dropdown list for selecting a theme. xml: <com.google.android.material.textfield.TextInputLayout android:id="@+id/...
djes's user avatar
  • 69
0 votes
1 answer
43 views

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="@+...
user7391836's user avatar
0 votes
0 answers
38 views

how do I implement the below UI using constraint layout with xml in android studio?
Kossy's user avatar
  • 29
1 vote
1 answer
66 views

This is my current Setup: I have a BaseActivity that registers the snackbar on the root layout (CoordinatorLayout): <?xml version="1.0" encoding="utf-8"?> <androidx....
Chris's user avatar
  • 13
1 vote
1 answer
67 views

Summary: How do I customise/style the colour and appearance of AndroidX switch preferences? Detail: Simplifying a bit, I have an Android app that uses the AndroidX preference classes. My preference ...
Andy Johnson's user avatar
  • 8,209
2 votes
1 answer
213 views

So based on https://developer.android.com/guide/topics/resources/app-languages#kotlin we can use android { androidResources { generateLocaleConfig = true } } which automatically generates ...
user924's user avatar
  • 12.9k
0 votes
0 answers
676 views

I need to implement a scrolling timepicker that should be as similar to this one as possible (it's an element from ios, to be frank). Unfortunately, I haven't found such elements in material3. I ...
arlosane's user avatar
0 votes
1 answer
314 views

The following exception caught in my application. 12-02 11:49:12.640 10039 940 940 E AndroidRuntime: FATAL EXCEPTION: main 12-02 11:49:12.640 10039 940 940 E AndroidRuntime: Process: com....
Md. Monirul Islam's user avatar
0 votes
0 answers
114 views

<style name="WallSearchView" parent="Widget.AppCompat.Light.SearchView"> <item name="colorControlActivated">@color/light_black</item> &...
Foram Shah's user avatar
0 votes
1 answer
92 views

i have a problem with my elements in Gridlayout which are not loading properly. If my android app has a different theme than the system of my phone, elements are not visible. I have normal grid layout ...
Zampey's user avatar
  • 11
1 vote
1 answer
514 views

If the idea of Compose is to get rid of XML, why is it still recommended to use XML based Strings and String Resources? object Strings {...} object Sp {...} object Dp {...} In a .kt file sounds like ...
tariqebadi's user avatar
0 votes
1 answer
549 views

I have an aar file which has to be imported into Flutter project. But when I imported into project, it requires lots of style files which I don't have any clue what to do at this point. Execution ...
Zahid Tekbaş's user avatar
1 vote
1 answer
322 views

I have a horizontal arrangement of TextViews within a LinearLayout, and while the current layout works well on my device, I'm facing issues when the font size is increased, resulting in a messy ...
Ash Kecthum's user avatar
7 votes
1 answer
5k views

I am currently facing an issue where Android Studio is suggesting to increase the touch target size for a button due to it being too small. Most recommendations online suggest setting minHeight to &...
Ash Kecthum's user avatar
-2 votes
1 answer
101 views

<?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:...
lexytaylormb's user avatar
0 votes
1 answer
12 views

I have bellow xml, but when open software keyboard i see extra space bottom of CardView: <?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget....
jo jo's user avatar
  • 1,860
0 votes
1 answer
53 views

I have a constraint layout that cannot scroll, all the views have to be visible all the time. The problem that I have is that with devices of height 1920 or less, the UI gets really crowded and some ...
rysv's user avatar
  • 3,532
-1 votes
2 answers
58 views

i want to two elements at the left side of relative layout and two elements at the right side of the same relative layout in android xml. i tried like below. it doesn't work. My Xml <androidx....
coppersmith's user avatar
1 vote
1 answer
107 views

I want to close a xml file opened in the include tag while clicking the close button of the included xml file in kotlin. i tried like below. i was not able to close. could some one help me to do that ...
coppersmith's user avatar
0 votes
0 answers
86 views

Want to know difference between wrapping EditText with TextInputLayout Vs wrapping TextInputEditText with TextInputLayout ?. I tried using both, they worked same. So which to use when ? Searched on ...
Sourav Karjole's user avatar
0 votes
2 answers
35 views

I am creating an App which which I want to make only for mobile phones and not the tablets. I understand I have to make layout folders and I have made following folders like 1)layout-sw320dp 2)layout-...
vilnius19's user avatar
  • 115
0 votes
0 answers
24 views

I have been using Androidx.CardView in various XML layout files in my Android app, and it has been working well for most Android versions. However, I recently noticed that it's not functioning ...
Akhil B's user avatar
  • 69
0 votes
1 answer
150 views

I have a texture view that displays video from the camera. The texture view is constrained by a fixed-width framelayout on the right, with buttons. Its constrained on the bottom by another framelayout ...
Interstadial's user avatar
0 votes
1 answer
395 views

New to Android development, so forgive me for a silly question. I see others have asked similar questions but they seem pretty old and I struggle to relate the answers to my code. I have a one ...
Wade Byron Profe's user avatar
0 votes
2 answers
35 views

I am working on a layout file which have one parent LinearLayout and inside it two buttons and goal is to adjust buttons alignment according to the text size of buttons for an example if text size of ...
Kapil Rajput's user avatar
  • 11.6k
0 votes
1 answer
44 views

My cardview is placed just below the ImageView in constraintlayout. I want cardview to start by overlapping the bottom 5 percent of the ImageView upto the content of the cardview. Currently my layout ...
Samriddha Bajpai's user avatar
0 votes
0 answers
25 views

So I have been trying to get This TextInputEditText to be read only once a description called "Service Call" is selected. Here's the code: processViewModel.isServiceCall.observe(...
OEThe11's user avatar
  • 361
0 votes
1 answer
28 views

I am using umano sothree.slidinguppanel.SlidingUpPanelLayout for bottom slide up layout. I have set height for the umano panel layout as 400dp which match my phone small screen and design is correct....
user3409897's user avatar
0 votes
1 answer
337 views

I am working with Android studio and kotlin. My app has a HorizontalScrollView, which contains a LinearLayout with up to an infinite amount of strip_view.xml layouts (1 strip for each audio channel). ...
MaDudeeK's user avatar
3 votes
1 answer
261 views

I'm trying to create an AccessibilityService which can read text from the user screen, it works well and I'm able to grab most of the texts from native Android applications. Still, when I tried it ...
Adam Taylor's user avatar
0 votes
1 answer
77 views

I have a searchView in the Toolbar which also has Gridview elements. Everything works fine except the queryHint doesn't get displayed in the searchView. I have tried setting android:iconifiedByDefault=...
PurpleRabbit's user avatar
0 votes
0 answers
41 views

So, I am trying to display the overlapped cards at the center of the screen but for some reason my cards are getting displayed without any marginTop like this shown in the image I want to display ...
PurpleRabbit's user avatar
1 vote
1 answer
92 views

Every bottom content in FrameLayout is getting hide behind bottomNavigation, below is my code.....I am making an little complex app where it has both drawer layout and bottomnavigation and I am also ...
developer's user avatar
0 votes
1 answer
38 views

below is my XML code, I have multi expandable list view (5) each one with a different adapter, and all the views are inside the vertical scroll view. but when clicking on the header of each expandable ...
Ahmed Laoun's user avatar

1
2 3 4 5
61