Skip to main content

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
0 votes
0 answers
8 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 ...
zafar's user avatar
  • 53
0 votes
0 answers
46 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 ...
Michal Rymarski's user avatar
0 votes
0 answers
20 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 ...
codeviz's user avatar
0 votes
0 answers
19 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://...
Kelsey Zhou's user avatar
0 votes
1 answer
28 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, ...
Rakesh Bhagat's user avatar
0 votes
1 answer
50 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="...
JAF's user avatar
  • 59
0 votes
0 answers
32 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 ...
ganjaam's user avatar
  • 1,258
0 votes
1 answer
38 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, ...
moonlightcheese's user avatar
1 vote
1 answer
246 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 ...
Ahmed EL_Telbani's user avatar
0 votes
1 answer
181 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 ...
me.at.coding's user avatar
  • 16.6k
0 votes
1 answer
70 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 ...
Dotingo's user avatar
1 vote
0 answers
47 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. ...
save_jeff's user avatar
  • 465
0 votes
2 answers
191 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 ...
user924's user avatar
  • 11k
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=&...
The One's user avatar
  • 81
0 votes
0 answers
26 views

Android MaterialComponents Theme doesn't work properly

<resources xmlns:tools="http://schemas.android.com/tools"> <!-- Base application theme. --> <style name="Theme.HiCharging.DayNight" parent="Theme....
HotspringDev's user avatar

15 30 50 per page
1
2 3 4 5
147