Marcin Środa
07/22/2020, 8:25 AMtonnyl
07/22/2020, 10:11 AMapp:liftOnScroll=""
app:liftOnScrollTargetViewId=""
for AppBarLayout in Compose ?Timo Drick
07/22/2020, 10:56 AMArchie
07/22/2020, 11:50 AMArchie
07/22/2020, 1:35 PMCoroutines
with compose?Timo Drick
07/22/2020, 2:08 PMtcracknell
07/22/2020, 5:20 PMTomáš
07/22/2020, 6:16 PMColumn(Modifier.padding(innerPadding).fillMaxSize()) {
var textState by state { TextFieldValue("test") }
TextField(
value = textState,
onValueChange = { textState = it },
modifier = Modifier.fillMaxWidth().preferredHeight(240.dp)
)
}
But the “test” text is not editable, as soon as I try to type something - nothing happens and then I get leak from leak canary 😞 Any ideas?Halil Ozercan
07/22/2020, 7:40 PMBox
after it is created? Or any other Composable
for that matter?Ben
07/22/2020, 8:52 PMdoodla
07/22/2020, 11:50 PMMadhava
07/23/2020, 12:25 AM> Task :app-lifelike:processDebugResources FAILED
Execution failed for task ':app-lifelike:processDebugResources'.
> A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$Action
> 1 exception was raised by workers:
com.android.builder.internal.aapt.v2.Aapt2InternalException: AAPT2 aapt2-4.2.0-alpha05-6645012-osx Daemon #0: Unexpected error during link, attempting to stop daemon.
This should not happen under normal circumstances, please file an issue if it does.
Dependent features configured but no package ID was set.
I can't find anything that explains what the actual problem isMadhava
07/23/2020, 2:17 AMgalex
07/23/2020, 4:03 AMe: /Users/galex/projects/alexpizzapp/app/src/main/java/il/co/galex/alexpizzapp/common/navigation/Navigation.kt: (24, 16): @Composable invocations can only happen from the context of a @Composable function
I can reference Icons.Filled.AccountBox
but I can’t call to vectorResource
at the same level 😞Mehdi Haghgoo
07/23/2020, 5:30 AMAG
07/23/2020, 5:37 AMJoost Klitsie
07/23/2020, 7:53 AMoutlinedTextField
instead of OutlinedTextField
as most function calls in Kotlin in the std or wherever do it like that. I would think uppercase is better fitting for classes, which is not fitting for composable functions 🙂Mehdi Haghgoo
07/23/2020, 8:51 AMgalex
07/23/2020, 12:41 PMBacho Kurtanidze
07/23/2020, 1:38 PMArchie
07/23/2020, 1:39 PMNavigation Component
in Compose
without using Fragments
?galex
07/23/2020, 2:58 PMDaniel Rampelt
07/23/2020, 2:58 PMThe following classes could not be instantiated: - androidx.ui.tooling.preview.ComposeViewAdapter
Timo Drick
07/23/2020, 3:07 PMMBegemot
07/23/2020, 4:01 PMZach Klippenstein (he/him) [MOD]
07/23/2020, 4:21 PMsetContent
extension functions to the dedicated AbstractComposeView
and ComposeView
classes. Is the ViewGroup.setContent
extension potentially going away as well? If so, will there still be a way to pass `CompositionReference`s to compositions hosted inside android views? (This issue: https://issuetracker.google.com/issues/156527485)Ricardo C.
07/23/2020, 4:30 PMHalil Ozercan
07/23/2020, 7:41 PMTransition
composable is deprecated in favor of transition
which is highly similar but instead of receiving children as a trailing lambda, it provides a state that can be used by following composables in the same scope. The docs suggest that toState
is the main control unit for transition state. Whenever it changes, animation will change the course to this new destination state whether the animation was running or not. However, I'm having trouble understanding how to reset the current animation all together.
Let's say my initial configuration is to go from A
to B
. In the middle of this transition, Composable receives a new state, which means the animation needs to restart. Animation should go back to state A
and again head for B
. I could not find a way of simply resetting initState
and toState
at the same time. What is the recommendation for such behavior?chris
07/23/2020, 7:45 PMNeverEqual
to invoke the comparison of the objects to trigger a recompose I still have to call the setter. So I end up assigning the object to itself. Am I missing another way to do this?Zach Klippenstein (he/him) [MOD]
07/23/2020, 8:24 PMCompositionLifecycleObserver
that enters a composition by being captured by a composable lambda get its callbacks invoked? E.g.
class MyActivity : AppCompatActivity() {
private val myObserver: CompositionLifecycleObserver = object : …
override fun onCreate() {
setContent { MyApp(myObserver) }
}
AFAIK the only way an observer can be “registered” is by being returned from remember {}
.