All Questions
Tagged with android-theme android
2,139
questions
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
32
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
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,
...
1
vote
1
answer
286
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
202
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
219
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=&...
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....
1
vote
1
answer
537
views
Jetpack Compose override parts of a theme from a library with a custom theme
I'm working on creating a library for our apps in compose which is intended to hold all view components needed. This library also needs to have a custom theme. Especially for colors and fonts as each ...