All Questions
Tagged with android-theme android-styles
440
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
...
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 ...
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:...
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. ...
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 ...
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">
<!-- ...
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....
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" ...
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="@...
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 ...
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 ...
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 ...
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.
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="...
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/...