Marko Gajić
09/30/2021, 1:33 PMZoltan Demant
09/30/2021, 1:43 PMMarko Gajić
09/30/2021, 1:46 PMAlbert Chang
09/30/2021, 2:10 PMMarko Gajić
09/30/2021, 2:12 PMadjpd
09/30/2021, 3:39 PMtheme.xml
referenced it. I changed to another theme and all was well. It cut down the size of my app by quite a bit.theapache64
10/01/2021, 7:45 PMstatusBarColor
with just @android:style/Theme
?
<style name="MyTheme" parent="@android:style/Theme">
<!-- Status bar color. -->
<item name="android:statusBarColor">#FF0000</item>
</style>
this doesn’t work though..adjpd
10/01/2021, 7:55 PM<resources xmlns:tools="<http://schemas.android.com/tools>">
<style name="Theme.MyTheme" parent="android:Theme.DeviceDefault.NoActionBar">
<item name="android:statusBarColor" tools:targetApi="l">#ff2e7d32</item>
<item name="android:background">#ff2e7d32</item>
</style>
</resources>
theapache64
10/01/2021, 7:58 PMparent="android:Theme.
and parent="@android:Theme.
. I mean what’s that @
mean here ? 🤔 the latter fails with build error though.adjpd
10/01/2021, 8:11 PMtheme.xml
is the only XML file I need to deal with now, bar Material's date and time picker, and I hope nothing more. The annoying thing about using Android views is that you need to define the styles in XML still, and then make sure they conform to your Compose styles, unless you decide to put all the styles in XML, and that feels like defeat.Marko Gajić
10/18/2021, 2:10 PM