Dan Peluso
04/28/2021, 3:16 PMnitrog42
04/28/2021, 5:48 PMincludeFontPadding = false
but I don't think there is any solution now...alorma
04/28/2021, 6:20 PMJohn O'Reilly
04/28/2021, 7:26 PMYASAN
04/28/2021, 8:17 PMSocheat KHAUV
04/28/2021, 8:57 PMclass FloatingService : Service() {
private var windowManager: WindowManager? = null
override fun onCreate() {
super.onCreate()
windowManager = ContextCompat.getSystemService(this, WindowManager::class.java)
var view = LayoutInflater.from(this).inflate(R.layout.player_popup_close_overlay, null, false)
val closeOverlayLayoutParams = buildCloseOverlayLayoutParams()
var composeView = view.findViewById<ComposeView>(R.id.compose_view)
composeView.setContent {
Button(onClick = { }) {
Text(text = "Click Me")
}
}
Objects.requireNonNull(windowManager)?.addView(view, closeOverlayLayoutParams)
}
}
mbeattie
04/28/2021, 9:18 PMRecyclerView
. The Compose component loads several images internally, and I need to know (at a given moment in time) which of the images is 100% visible on screen. In the imperative, View-based world, we query for each image view's percent visibility on screen (i.e. using its position, width, height). Is there a good way to accomplish something like this in Compose?robnik
04/28/2021, 10:04 PMChachako
04/29/2021, 4:37 AMrememberUpdatedState
applies to? I saw rememberUpdatedState
is used in Compose Dialog to remember content, but I still can’t understand what describes in kdoc. Could someone please explain it to me. I am grateful.lhwdev
04/29/2021, 5:01 AMlist.forEach { MyComposable(it) }
AFAIK, I cannot know the body of external declaration stubs, like stdlib here. Also heard that inlining occurs in 'linking phase'.
Then does compiler plugin generate an additional group for this loop?Tony Kazanjian
04/29/2021, 5:44 AMremember{ mutableStateOf()}
instead of rememberSaveable{ mutableStateOf()}
? If you get saving across configuration and process death with the latter, why ever use the former?Deepak Gahlot
04/29/2021, 7:05 AMTlaster
04/29/2021, 7:26 AMjava.lang.RuntimeException: Canvas: trying to draw too large(116051928bytes) bitmap
, it seems when using accompanist to load a network image that is too large to load, is there any optimization we can do to avoid this exception?knthmn
04/29/2021, 8:00 AMMuhammad Zaryab Rafique
04/29/2021, 10:46 AMmzgreen
04/29/2021, 11:41 AM@Composable
fun Foo() {
val bar = @Composable { }
// this works
val bazOk = listOf(null, bar)
// this doesn't
val bazNotOk = listOf(null, @Composable { })
}
the non working line crashes with KotlinFrontEndException: Exception while analyzing expression
. Should I file it or it's already reported? cc @Leland Richardson [G]loloof64
04/29/2021, 11:45 AMRestartable
Composable
. This component needs to be restarted when the user makes a restart request. In previous Android development, this could be achieved by calling on of Restartable
methods, if Restartable
was designed as a class. But, talking about Composition
, what should be a good pattern to achieve this. More on my attempt in thread.Cicero
04/29/2021, 12:31 PMColton Idle
04/29/2021, 12:31 PMCicero
04/29/2021, 12:51 PMcom.android.tools.build:gradle
and
//services.gradle.org/distributions/gradle
that can be used together? Do we have anywhere that could tell this?izyaboi
04/29/2021, 1:45 PMMediaRouteButton
in composables i want have the cast icon not in the actionbar but in my composable?robnik
04/29/2021, 3:00 PMCicero
04/29/2021, 5:02 PMAdam Powell
04/29/2021, 5:11 PMrobnik
04/29/2021, 5:49 PMviewModelScope.launch { }
run in the same thread? I'm wondering how to avoid loading data twice in my ViewModel. I could have a property there, isLoading
, but I'm not sure how much I need to worry about thread safety.Nat Strangerweather
04/29/2021, 8:07 PMahmedragab
04/29/2021, 9:30 PMYASAN
04/29/2021, 9:49 PMNavController
using ``val navController = rememberNavController()`` . But when I create a navController this way I get NavHostController
instead. It works fine for my NavGraph
but I cannot use .navigate()
on NavHostController
. The docs do not include anything about the difference of these two or even mention NavHostController
.Muhammad Zaryab Rafique
04/29/2021, 11:59 PMrobnik
04/30/2021, 2:29 AM