Orhan Tozan
04/07/2021, 8:31 AMTimo Drick
04/07/2021, 9:47 AMColton Idle
04/07/2021, 9:49 AMWalter Berggren
04/07/2021, 11:36 AMhiltNavGraphViewModel()
in a NavHost: Expected an activity context for creating a HiltViewModelFactory for a NavBackStackEntry but instead found: android.app.ContextImpl@78d1695
Hatice Sarp
04/07/2021, 12:37 PMnear my age item in the video
). Another problem is that if I slide the top group on the screen so that they do not appear on the screen and run the animation, the top group items disappear from the screen.
My code is like this:Rahul Sainani
04/07/2021, 2:18 PMpopUpTo(Route.initial) { inclusive = true }
doesn't seem to work and all the routes after initial are still present.
Is there a way to make sure we clear the back stack without knowing about the first route in the graph?Tolriq
04/07/2021, 2:29 PMallan.conda
04/07/2021, 4:05 PMcompose-navigation
.
Are there any guidelines currently about multi-module with this?
Let’s say I have two feature modules, what’s a good way to navigate screens between them without depending on each other? I’m thinking to put hoist the actual navigation into the top-level navigation (where the NavHost is), I wonder if I should be putting all those instances in there, which would be a lot for a highly-modular application.julioromano
04/07/2021, 5:08 PMjulioromano
04/07/2021, 5:38 PMnavigation-compose:1.0.0-alpha08
event though my build.gradle.kts explicitly says "androidx.navigation:navigation-compose:1.0.0-alpha10"
.
Any hint on how can I troubleshoot this?Gabriel
04/07/2021, 7:40 PMTimon Bohn
04/07/2021, 8:28 PMjulioromano
04/07/2021, 9:30 PMLocalSoftwareKeyboardController
and AndroidView
work together?
I’m trying to show the keyboard when the only editable text is inside an AndroidView
.
In the update block of AndroidView
I first call it.requestFocus()
then keyboardController?.show()
but nothing happens.
If instead of it.requestFocus()
on the view I try to set a focusRequester
modifier on the Android view and then call focusRequester.requestFocus()
I get an IllegalStateException: FocusRequester is not initialized. But I’d love the keyboard to show up as soon as the composable is first shown on screen.Bryan L
04/07/2021, 9:46 PMonActivityResult
). Perhaps it's better to interop and utilize multiple acitivites and break the app from being pure Compose? Any guidance/advice is greatly appreciated!Colton Idle
04/07/2021, 10:44 PMthequinneffect
04/07/2021, 11:49 PMDeepak Gahlot
04/08/2021, 2:54 AMTuba Kesten
04/08/2021, 6:10 AMjava.lang.IllegalStateException: A MonotonicFrameClock is not available in this CoroutineContext. Callers should supply an appropriate MonotonicFrameClock using withContext.
lifecycleScope.launch { bottomBarManager?.onBackPressed() }
super.onBackPressed()
pawegio
04/08/2021, 7:08 AMjulioromano
04/08/2021, 7:40 AMJason Ankers
04/08/2021, 7:51 AMcurrentRoute == screen.route
, but what if we’re on a nested route beneath this? https://developer.android.com/jetpack/compose/navigation#bottom-navSmorg
04/08/2021, 7:53 AMdarkmoon_uk
04/08/2021, 8:47 AMgetMapAsync
every time is rather inefficient, the first returned instance could be cached? But ok, if we let that pass and assume that the same Map instance will be returned each time... then this code is continually adding more MapMarkers to the map and never removing them?MBegemot
04/08/2021, 10:12 AMallan.conda
04/08/2021, 10:25 AMnavController
(bottom navigation triggers a fullscreen navigatino) in multiple NavHost is a supported thing 😅.
How is everyone handling fullscreen navigations?allan.conda
04/08/2021, 12:02 PMTopAppBar
for each of your screen? Or share a single one and somehow manage to customize it (set title, navigation icon)?
I’m trying to do the latter with compose-navigation
in a multi-modular context, and now contemplating whether this is really a good idea…Indu
04/08/2021, 3:19 PMNthily
04/08/2021, 5:44 PMAltynbek Nurtaza
04/08/2021, 6:54 PMvar var1 = rememberSaveable { mutableStateOf(Bundle()) }
var var2 = rememberSaveable { mutableStateOf(Bundle()) }
var var3 = rememberSaveable { mutableStateOf(Bundle()) }
var var4 = rememberSaveable { mutableStateOf(Bundle()) }
var var5 = rememberSaveable { mutableStateOf(Bundle()) }
var var6 = rememberSaveable { mutableStateOf(Bundle()) }
Mini
04/08/2021, 7:15 PMMini
04/08/2021, 7:15 PMjim
04/08/2021, 7:34 PMMini
05/10/2021, 5:54 PMjim
05/10/2021, 6:01 PMI figured another option would be to create a jvm library that depends on the jetbrains version and then exposes the ruleWhen I said "using Compose for Desktop would be your best bet", that does mean taking a dependency on the jetbrains version. You may want to look at the work @cb did with Accompanist to see how he introduced tests using desktop: • Tweet: https://twitter.com/chrisbanes/status/1390653509146660864 • Source code: https://github.com/google/accompanist/pull/393
Mini
05/10/2021, 6:16 PMfabio.carballo
10/12/2021, 3:24 PMjim
10/12/2021, 4:44 PMJelle Fresen [G]
10/12/2021, 5:19 PMMini
10/12/2021, 5:26 PMfabio.carballo
10/13/2021, 7:08 AMFragmentScenario
with no success.Mini
10/13/2021, 7:50 AMclass TestApplication : Application()
@RunWith(AndroidJUnit4::class)
@Config(application = TestApplication::class)
class SomeTest {
@get:Rule
val rule = createComposeRule()
@Test
fun someTest() {
rule.setContent {
Text("Hello")
}
rule.onNodeWithText("Hello").assertIsDisplayed()
}
}
Jelle Fresen [G]
10/13/2021, 2:49 PMfabio.carballo
10/13/2021, 6:20 PM