Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

0 votes
1 answer
325 views

How to make custom input pin code Android?

I make project on Kotlin Android. How can i make the same field and same input? It seems to me creating a few edittexts is not good decision enter image description here enter image description here ...
Artur's user avatar
  • 13
0 votes
2 answers
45 views

Android set EditText style globally in theme doesn't work

As mentioned here Android set edit text style globally in theme doesn't work I have tried changing styles in theme file but globally it does not work. When I add it on individual component it ...
app's user avatar
  • 15
3 votes
2 answers
581 views

Android TextInputLayout and TextInputEditText cursor color

I want to change the cursor (or caret) color, just like in this stack overflow question, but in Material 3. This is my verion of the material library: implementation 'com.google.android.material:...
Leonardo Sibela's user avatar
0 votes
0 answers
364 views

Android Fragment/Activity theme switching issue

I am trying to switch theme between Activity/Fragment and vice versa. Our application set theme from Manifest for the application, of course this also apply to Activity and underneath fragment. ...
Ronak Mehta's user avatar
  • 5,981
0 votes
0 answers
162 views

Error inflating class <unknown> in XML file

My Android app is crashing because of the following error: Fatal Exception: android.view.InflateException Binary XML file line #100 in com.example.myapp:layout/floating_view: Binary XML file line #100 ...
Faruk Yazici's user avatar
  • 2,384
2 votes
1 answer
248 views

Using android:autoCompleteTextViewStyle in theme.xml

So I have the following app theme: <!-- Base application theme. --> <style name="Theme.Base.App" parent="Theme.MaterialComponents.DayNight.NoActionBar"> <!-- ...
Funny Moments's user avatar
0 votes
1 answer
614 views

Where can I view examples of the Android Studio themes and styles?

I am currently learning App design with Android Studio. I'm playing around with the various styles and themes trying to see what's available. There are many things like Widget.AppCompat, Widget....
W Simm's user avatar
  • 45
0 votes
3 answers
2k views

How to prevent white background when app starts up in Jetpack compose

I have created an app with Jetpack compose and expected the start up background is black or some other colors, not white. This is my themes.xml <style name="Theme.AlluringScreenshot" ...
Thái Quốc Toàn's user avatar
1 vote
1 answer
103 views

Android Style Base.V7.Theme.AppCompat.Light set as default and is not a Theme

i have a project in Android Studio where my manifest Have this: <application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@...
fitoRivera's user avatar
1 vote
1 answer
211 views

How to get colors from color.xml in values-night folder even in light theme?

I have one page where I need to use colors from night mode regardless of current app/phone theme. Let's say I have colorAppBg declared in both values/colors.xml and values-night/colors.xml with ...
Marat's user avatar
  • 6,553
1 vote
0 answers
579 views

Compose MDC Theme Adapter doesn't convert every color correctly

I'm following this guide to convert my xml colors to Compose Theme. Unfortunately, I couldn't manage to get the correct colors. Somehow I receive the default android color palette. I tested Checkbox ...
Orcun Sevsay's user avatar
  • 1,413
0 votes
1 answer
937 views

Customize DatePicker color

I've a DatePicker inside xml, so it's not a dialog, just a component inside my layout. My main theme is extending from Theme.MaterialComponents.Light.NoActionBar. How can I change the color of my ...
Jumpa's user avatar
  • 4,389
0 votes
1 answer
94 views

How to center spinner items using styles.xml?

How to center spinner items through styles without creating custom item view? Without extra work in code, just using styles.
Mikhail's user avatar
  • 3,147
0 votes
2 answers
232 views

Style are not applied in Kotlin

I have created a button style defines in the themes.xml as below: <style name="MyAppTheme.Button" parent="Widget.AppCompat.Button.Colored"> <item name="...
Seb's user avatar
  • 3,175
0 votes
0 answers
43 views

How so we set actionbar homeasup enabled in AppTheme/Style

Programmatically it can be achieve by actionBar.setDisplayHomeAsUpEnabled(true); Is there a way to set it in the app theme xml eg <style name="Theme.FooBar" parent="@android:style/...
Bret Joseph's user avatar

15 30 50 per page
1
2 3 4 5
30