This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// AUTO-GENERATED FILE. DO NOT MODIFY. | |
// | |
// This class was automatically generated by Apollo GraphQL version '4.0.0'. | |
// | |
package com.rwmobi.kunigami.graphql | |
import com.apollographql.apollo.annotations.ApolloAdaptableWith | |
import com.apollographql.apollo.api.Adapter | |
import com.apollographql.apollo.api.CompiledField |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<resources> | |
<color name="splash_background">#d8e2e8</color> | |
</resources> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<resources xmlns:tools="http://schemas.android.com/tools"> | |
<style name="Theme.Kunigami" parent="android:Theme.Material.NoActionBar"> | |
<item name="android:windowBackground">@color/splash_background</item> | |
<item name="android:statusBarColor" tools:targetApi="l">@color/splash_background</item> | |
</style> | |
<style name="Theme.Kunigami.Starting" parent="Theme.SplashScreen"> | |
<item name="windowSplashScreenBackground">@color/splash_background</item> | |
<item name="windowSplashScreenIconBackgroundColor">@color/splash_background</item> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@OptIn(ExperimentalFoundationApi::class) | |
@Composable | |
internal fun AnimatedViewPager( | |
modifier: Modifier = Modifier, | |
pageSize: Dp, | |
@DrawableRes drawables: List<Int>, | |
) { | |
val endlessPagerMultiplier = 1000 | |
val pageCount = endlessPagerMultiplier * drawables.size | |
val initialPage = pageCount / 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@OptIn(ExperimentalFoundationApi::class) | |
@Composable | |
internal fun AnimatedViewPager( | |
modifier: Modifier = Modifier, | |
pageSize: Dp, | |
@DrawableRes drawables: List<Int>, | |
) { | |
val pagerState = rememberPagerState( | |
initialPage = 0, | |
initialPageOffsetFraction = 0f, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import androidx.compose.foundation.Image | |
import androidx.compose.foundation.background | |
import androidx.compose.foundation.layout.BoxWithConstraints | |
import androidx.compose.foundation.layout.fillMaxSize | |
import androidx.compose.foundation.layout.size | |
import androidx.compose.material.MaterialTheme | |
import androidx.compose.runtime.Composable | |
import androidx.compose.runtime.LaunchedEffect | |
import androidx.compose.runtime.getValue | |
import androidx.compose.runtime.mutableStateOf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--Icons8 Flat Color Icons--> | |
<!--https://github.com/icons8/flat-Color-icons--> | |
<!--MIT License--> | |
<vector xmlns:android="http://schemas.android.com/apk/res/android" | |
android:width="64dp" | |
android:height="64dp" | |
android:viewportWidth="48" | |
android:viewportHeight="48"> | |
<path |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private val Context.dataStore: DataStore<Preferences> by preferencesDataStore(name = "preferences") | |
private val prefKeyString: Preferences.Key<String> = stringPreferencesKey("some-key-name") | |
// ... some other keys | |
init { | |
externalCoroutineScope.launch(dispatcher) { | |
dataStore.data.catch { exception -> | |
_preferenceErrors.emit(exception) | |
}.collect { prefs -> | |
// We are not being told which key-pair has changed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val packageManager = context.packageManager | |
val components = listOf( | |
"com.rwmobi.xlaunchericons.MainActivityA", | |
"com.rwmobi.xlaunchericons.MainActivityB", | |
"com.rwmobi.xlaunchericons.MainActivityC" | |
) | |
components.forEach() { | |
packageManager.setComponentEnabledSetting( |
NewerOlder