Guy Bieber
10/27/2020, 7:50 PMZach Klippenstein (he/him) [MOD]
10/27/2020, 10:36 PMGuy Bieber
10/27/2020, 10:40 PMZach Klippenstein (he/him) [MOD]
10/27/2020, 10:46 PMGuy Bieber
10/27/2020, 10:48 PMval lightColors = Colors(
primary = Black,
primaryVariant = MotorDarkGray,
secondary = NikolaBlue,
secondaryVariant = NikolaDarkBlue,
background = Black,
surface = White, //Transparent,
error = Black,
onPrimary = White,
onSecondary = White,
onBackground = White,
onSurface = White,
onError = Red,
isLight = true
)
Zach Klippenstein (he/him) [MOD]
10/27/2020, 10:49 PMCompose is supposed to support rendering under the header and footer.It does, but you have to tell the Window that you want to do that (either through setting window flags programmatically or your activity theme), and based on the screenshot from the other device, it looks like you haven’t.
Guy Bieber
10/27/2020, 10:50 PMsetContent {
MaterialTheme(
colors = nikolaColors.lightColors,
typography = nikolaTypography.typography
) {
rootView?.view()
}
}
<application
android:allowBackup="true"
android:icon="@mipmap/nikola"
android:label="@string/app_name"
android:roundIcon="@mipmap/nikola_round"
android:supportsRtl="true"
tools:replace="android:theme"
android:theme="@style/AppTheme.NoActionBar" >
<activity
android:name=".MainActivity"
android:label="@string/app_name"
android:theme="@style/AppTheme.NoActionBar">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
<style name="AppTheme.NoActionBar">
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
<item name="colorPrimary">@color/Black</item>
<item name="colorPrimaryDark">@color/Black</item>
<item name="colorAccent">@color/Black</item>
<item name="android:windowBackground">@drawable/launch_screen</item>
</style>
Zach Klippenstein (he/him) [MOD]
10/27/2020, 11:16 PMGuy Bieber
10/27/2020, 11:25 PMMaxUt
08/13/2021, 8:14 AMGuy Bieber
08/16/2021, 6:46 PM