Artem
09/13/2021, 1:44 PMText()
in case when text could be any size (multiple lines too)?
drawLine(maxWidth, maxHeight)
won’t work for me, cause it increase Box
with Text
to full screen. Maybe possible to measure text and then drawLine?Ali Zargar Shabestari
09/13/2021, 1:54 PMrecyclerView!!.setOnTouchListener { v, event ->
val imm = requireActivity().getSystemService(Context.INPUT_METHOD_SERVICE) as InputMethodManager
imm.hideSoftInputFromWindow(v.windowToken, 0)
false
}
was it the preferred way to to this now with compose?
I have already considered using isScrollInProgress of LazyListState but I think this may not be suitable for this use-case.gsala
09/13/2021, 2:48 PMe: This version (1.0.0-beta07) of the Compose Compiler requires Kotlin version 1.4.32 but you appear to be using Kotlin version 1.5.21 which is not known to be compatible
I don't know where the 1.0.0-beta07
version comes from. As far as I can see, I defined everything to use 1.0.2
dimsuz
09/13/2021, 3:00 PMTextField
in our compose
-based application, and Android crashes our app with a SecurityException
because some other app doesn't have READ_CLIPBOARD
permission. Stack trace has compose api inside. Can this somehow be disabled for TextField
? Should I report a bug? Stacktrace in the thread.VM
09/13/2021, 5:14 PMLukas K-G
09/13/2021, 6:08 PMadjpd
09/13/2021, 8:41 PMModifier
your code won't compile? See 🧵.Chris Johnson
09/13/2021, 9:54 PMTextButton
? I've tried setting ContentPadding
to 0.dp and using Modifier.heightIn(min = 0.dp
but neither work for my use case. I'm trying to make my TextButton be the same height as a Text
I have in a Row. I would use Intrinsics.Min but it doesn't respect that.theapache64
09/14/2021, 3:38 AMdarkmoon_uk
09/14/2021, 3:43 AMchris-horner
09/14/2021, 5:10 AMLayout { }
invoked every frame? Especially with lots of temporary collections being created with lines like
val placeables = measurables.map { it.measure(constraints) }
rajesh
09/14/2021, 7:03 AMBox
for few seconds and make it disappears.miqbaldc
09/14/2021, 7:36 AMaddPathNodes
addPath(
pathData = addPathNodes(
"M5.778,8.81a0.6,0.6 0,0 0,0 -1.2v1.2z" +
...
),
...
)
Anyone already try to convert vector pathData
to androidx.compose.ui.graphics.vector.ImageVector
?Jordan Silva
09/14/2021, 7:49 AMBox(Modifier.background(Color.White)) {
Button(onClick = {}) {
Text(text = "Label")
}
}
I’m using the Snapshot code example from @ppvi.ppvi
09/14/2021, 7:51 AMPaul Woitaschek
09/14/2021, 9:04 AMathos
09/14/2021, 9:31 AMSpikey Sanju
09/14/2021, 10:48 AMhuge performance issues
when I’m navigating
from all task composable
👉 add task composable
.
Add task composable
screen is having multiple OutlineTextField
. Is there any workaround solution for this?
Here’s the sample video 👇 . See more details in thread below.Rak
09/14/2021, 12:05 PMJokūbas Trinkūnas
09/14/2021, 12:39 PMImage(
painter = rememberImagePainter(
data = url,
builder = {
placeholder(...) // <-- I want to have a composable placeholder instead
crossfade(true)
}
),
ziv kesten
09/14/2021, 1:30 PMdimsuz
09/14/2021, 1:53 PMLazyList
state causes the endless recomposition loop, I can't fully understand why. Minimal sample is in the thread.Csaba Kozák
09/14/2021, 3:05 PMkotlin.collections.List
interface to represent a list of data. However the List
interface is not @Stable
. My experience shows that if a composable function is called with the same List
of strings, it will always recompose. Should we use another type to represent `List`s (and other collections) in compose? This could be also a broader question, since lots of built-in immutable types (like LocalDateTime
) are not considered stable by the compose compiler. I added example code in 🧵Luke
09/14/2021, 3:10 PMRoman Polach
09/14/2021, 3:29 PMBasicTextField(
singleLine = true,
value = text,
textStyle = LocalTextStyle.current.copy(textDecoration = TextDecoration.None),
readOnly = readOnly,
onValueChange = {
onValueChanged(it)
}
)
myanmarking
09/14/2021, 5:16 PMval
is considered stable by the compiler then ?Anthony
09/14/2021, 7:44 PMbitkiller
09/14/2021, 9:54 PMMutableState<(() -> Unit)?>
)
I've been thinking about doing some kind of "confirmation dialog decorator" (confirmation or other, e.g. "request pin") for some user actions. It would be used like
var confirmationDialog: (() -> Unit)? by remember {
mutableStateOf(null)
}
if (confirmationDialog != null) {
Dialog(onOk = {
confirmationDialog?.invoke()
confirmationDialog = null
}, onCancel = {
confirmationDialog = null
})
}
SaveButton(
onClick = requireConfirmation { theRealSave() }
)
Is it too hacky? Any Neal Sanche
09/15/2021, 12:52 AMKoneko Toujou
09/15/2021, 1:20 AMKoneko Toujou
09/15/2021, 1:20 AMcb
09/15/2021, 7:29 AM