Questions tagged [android-theme]
A theme is a style applied to an entire Android application or Activity, rather than an individual View. When a style is applied as a theme, every View in the Activity or application will apply each style property that it supports.
android-theme
2,199
questions
0
votes
0
answers
16
views
Can xml theme attributes be overridden or ignored in compose dialogs?
When trying to use the material 3 AlertDialog in my native xml/compose Android app the AlertDialog background is not transparent. In my xml app theme I'm using the following custom dialog theme:
<...
0
votes
0
answers
10
views
Theme.MaterialComponents.DayNight.NoActionBar is not working in light mode but work when dark mode is enable in android 14
My custom theme doesn't function when the mobile device is in light mode, but it does work when switched to dark mode on Android 14.(light and dark mode of system(mobile)).and show the white screen ...
0
votes
0
answers
51
views
Jetpack Compose Themes not applying
I have my own colors defined and set in Theme.kt file:
I followed Studio bot advice and set those to my colors.
But they just refuse to work. I get white and black respectively on light and dark theme ...
0
votes
0
answers
21
views
Android actionBar navigation icon not showing desired color
I have created a vector asset drawable with a given colour, but while setting it in actionBar navigation icon , it is showing dark not the desired colour
activity actionBar screenshot
actionBar xml
...
0
votes
0
answers
20
views
how to create transparent activity without action bar without title bar?
I've tried multiple ways to create a transparent full screen activity but the top and bottom bar are ways present.
here is the code I use:
in the styles.mxl
<resources xmlns:tools="http://...
0
votes
1
answer
33
views
Stop recreating fragment when changing theme in system
I have added five fragments in my activity. also i have added Theme.Material3.Light.NoActionBar theme to both of my day and night theme in app. when i change theme from quick toggle theme changer, ...
0
votes
1
answer
53
views
Styling on Android Checkbox Lost After Click
I'm trying to style some checkboxes (the box itself, not the label) to have a set color when checked vs unchecked.
To facilitate this, I created the following theme:
<style name="...
0
votes
0
answers
34
views
The default top app bar color changes after updating material version to 1.11.0
I designed my app to look like this:
But after updating the material library version from com.google.android.material:material:1.10.0 to com.google.android.material:material:1.11.0 the top app bar ...
0
votes
1
answer
39
views
Compose theme inconsistent behavior
I have a theme in my app set up like so:
//use light colors for dark mode
private val ConceptualSystemsDarkColorScheme = darkColorScheme(
primary = Yellowish,
secondary = YellowishBright,
...
1
vote
1
answer
292
views
Change app theme programmatically Android Studio using Kotlin
I'm making an Android application using Kotlin. It contains App Theme color list so the user can select one color from it, and then I save this color in Shared Preferences.
I've done with all Shared ...
0
votes
1
answer
203
views
Flickering Statusbar in Edge to Edge mode
I've just setup Edge2Edge mode on a new Android project. Generally that works fine, however on app startup there's a noticable moment where the status bar is not visible at all.
status bar is ...
0
votes
1
answer
74
views
Why doesn’t the theme change when changing the settings, but only when re-entering the application? Jetpack compose
there is a mainActivity in which the navHost is called and the drawer is called in it, and from it the settings screen
@AndroidEntryPoint
class MainActivity : ComponentActivity() {
override fun ...
1
vote
0
answers
48
views
Android Color Theme get Background Color
I need to get the Color of the default background color of the App in Code.
up until now i used R.attr.colorSurface to get this, but somehow lately this gives me the incorrect color on some devices.
...
0
votes
2
answers
224
views
Material3 Theme Builder - can't get all colors from preview
So I'm trying to use the following link to build theme for an app:
https://m3.material.io/theme-builder#/custom
But I can't figure out the following color of the container:
It's not listed anywhere ...
1
vote
0
answers
21
views
How to use MaterialTheme.colorScheme.primary inside a vector?
I have this vector:
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="100dp"
android:height="100dp"
android:viewportWidth=&...