Val Salamakha
02/26/2020, 4:28 AMJitendra
02/26/2020, 5:36 AMval testList = mutableListOf(testList0, testList1)
for (i in 0 until 2) {
tableRow {
for (j in 0 until 3) {
Padding(5.dp) {
//Cell
Button(
text = testList[i][j],
onClick = {
Toast.makeText(context,testList[i][j],Toast.LENGTH_SHORT).show()
}
)
}
}
}
}
i want to show button text on click of Button, but here no way to get text,Vincent tiensi
02/26/2020, 6:06 AMBrandon Risell
02/26/2020, 3:27 PMBrian Gardner
02/26/2020, 3:29 PMBrian Gardner
02/26/2020, 3:38 PMAdapterList
slowly and the app does not crash. It crashes when I try to fling the list up or down. I’m also seeing messages from the Choreographer about skipping frames so I’m thinking the quick fling is causing the UI updates to fall too far behind so the measure is missed at some point before the draw.Kevin Hester
02/26/2020, 9:44 PMMiguel A. Ruiz
02/26/2020, 10:31 PMamar_1995
02/27/2020, 6:54 AMspanned
text to compose Text
api ?Zach Klippenstein (he/him) [MOD]
02/27/2020, 9:50 PMBackdropFilter
that lets you do stuff like blur whatever’s behind a view. I know that effect isn’t part of the Material spec, but is something like that possible (or potentially possible in the future) with Compose?alexzhukovich
02/27/2020, 10:07 PMcodeslubber
02/28/2020, 12:28 AMdev05
today and cannot get MaterialTheme.typography().h3
(or any other style) to work. Reports a code generation error and says see the log? also, if you just type MaterialTheme.typ and choose the code completion suggestion, it drops in a crazy string that includes a package name?shikasd
02/28/2020, 2:16 AMDraw
function and transitions currently and have noticed that child composable get recomposed every time transition state changes. Is it possible to avoid child function recomposition?
Example:
val child = @Composable() { println("Hello") }
Transition(definition) { state ->
val x = state[X]
Draw(child) {
canvas.save()
drawChildren()
canvas.restore()
}
}
codeslubber
02/28/2020, 5:16 PMcodeslubber
02/28/2020, 7:25 PMTextField
before, but with a TextFieldInput
that was in a state var, e.g. state { TextFieldInput("") }
) But I already have a state so I wanted to put the TextFieldInput into that instance, so, something like state { TimerState() }
where TimerState has the TextFieldInput in it, but not having much success with that.
The other possibility (part of why I am posting) is way back during early MVC days there was another pattern called PAC. One of the main distinctions is PAC had hierarchies of components, and each component might have its own Abstraction (model) and controller. Should I do that? Make the text input a component? and if so, how do I bubble the edit result up to the enclosing component?Kevin Hester
02/29/2020, 3:28 AMCircularProgressIndicator
I notice it doesn't take a modifiers parameter. What is the recommended way to be able to change the layout of this component when it is underneath a Column{}. I want to be able to set LayoutGravity.centerJavier
02/29/2020, 3:19 PMmanueldidonna
03/01/2020, 1:28 AMcontainer.doOnLayout {
val originalHeight = it.height
// expandedChild visibility was GONE
expandedChild.isVisible = true
view.doOnPredraw {
val newHeight = it.height
expandedChild.isVisible = false
}
}
// Now I can animate the container height between originalHeight & newHeight
How Could I achieve a similar behaviour with compose?Karthick
03/01/2020, 10:22 AMvipulasri
03/01/2020, 1:41 PMVerticalScroller
and AdapterList
performance? As far as I have tried using HWUI Rendering test, can't make much out of it!Kevin Hester
03/02/2020, 1:28 AMIan Warwick
03/02/2020, 8:56 AMonActive
and onCommit
etc still considered effects? Just the documentation for onActive
starts with "
An effect used to observe the lifecycle of the composition.
So just wondering so I know what I am talking about when discussing this 😆Ian Warwick
03/02/2020, 11:11 AMKazemihabib1996
03/02/2020, 8:53 PMSurface(
modifier = modifier + LayoutPadding (
left = 8.dp,
top = 8.dp,
right = 8.dp,
bottom = 0.dp
),
color = Color.Green
) {
Container(width = 10.dp, height = 10.dp, padding = EdgeInsets(all = 10.dp)) {}
}
The green colors not paints on the paddings neither padding of Suface, neither Container.
I tested with dev05.Chase James
03/03/2020, 4:26 AMTristan
03/03/2020, 4:52 PMChang Ge
03/03/2020, 8:43 PMKazemihabib1996
03/03/2020, 9:00 PMMantas Varnagiris
03/03/2020, 9:24 PMcompose-router
library made by @Zsolt . Found a few issues regarding back stack sequence and while trying to fix I ended up with a very different code base. I also needed callbacks for navigation events for DI or SL to be able to scope instances. Then I went deeper into it as I want to learn more about Compose and ended up with another navigation library. So here it is. Feel free to use it. Hopefully this is going to be deprecated as soon as Google rolls out their. Now I have some feedback to give them once they start doing it. https://github.com/mvarnagiris/compose-navigationmolikto
03/04/2020, 7:30 AMonClick = { showDialog(..., onPositive= { changeSomeState() }...) }
what's your opinions?molikto
03/04/2020, 7:30 AMonClick = { showDialog(..., onPositive= { changeSomeState() }...) }
what's your opinions?Zach Klippenstein (he/him) [MOD]
03/04/2020, 5:27 PMmolikto
03/14/2020, 5:46 AM