Yuriy Kulikov
07/18/2020, 2:28 PMromainguy
07/18/2020, 2:34 PMhandstandsam
07/18/2020, 4:50 PMBen
07/18/2020, 4:52 PMSeekbar
in it? SeekbarPreference
is deprecated nowFudge
07/18/2020, 7:57 PMRow(horizontalArrangement = Arrangement.Center) {
Text("Center")
Text("Right", modifier = Modifier.fillMaxWidth().wrapContentWidth(Alignment.End))
}
Row(horizontalArrangement = Arrangement.Center) {
Text("Center")
Spacer(modifier = Modifier.weight(1f))
Text("Right")
}
As in both cases the Center
element will get attached to the left. The desired behavior is in this image:caelum19
07/18/2020, 9:48 PMJoost Klitsie
07/19/2020, 8:47 AMFudge
07/19/2020, 1:14 PMIcon(Icons.Rounded.Search, Modifier.padding(8.dp).preferredSize(60.dp)) // Actual icon size looks around 30dp
iex
07/19/2020, 2:04 PMBox
/ shapes)?galex
07/19/2020, 4:13 PMSiyamed
07/19/2020, 4:14 PMgalex
07/19/2020, 5:31 PMgalex
07/19/2020, 6:14 PMSlider
doesn’t follow the steps
and lets me drag it all over. Is this a known bug? Is the main issue tracker the right place to report issues on material design compose lib?pajatopmr
07/20/2020, 5:35 AMsksk
07/20/2020, 1:35 PMQuentin Dommerc
07/20/2020, 2:06 PMModifier.foo() + Modifier.bar()
and Modifier.foo().bar()
?Fudge
07/20/2020, 2:58 PMMehdi Haghgoo
07/20/2020, 4:14 PMgalex
07/20/2020, 6:08 PMAlejandro Rios
07/20/2020, 6:11 PMgalex
07/20/2020, 6:52 PMFudge
07/20/2020, 7:47 PMColumn {
var on by state { true }
Button(onClick = { on = !on }) {
Text(text = "Toggle", style = textStyle.h1)
}
val list = @Composable {
LazyColumnItems(items = listOf(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)) {
Text(text = it.toString(), style = textStyle.h1)
}
}
if (on) {
list()
} else {
list()
}
}
Here we have a scrolling list, with a button above it, that seemingly, does nothing. However, it doesn't - it resets the current scroll progress in the scrolling list. I have a feeling this is the intended behavior (unfortunately).
I have a less trivial case where the same list is being used at multiple places, but it loses its scroll progress when it gets invoked through a different branch of code. It might be possible to somehow structure the code such that only one invocation occurs, but I find that difficult. Is there some way to make compose understand this is the same list?Yamila Gammeri
07/21/2020, 3:47 AMThiago
07/21/2020, 3:53 AMsetContent {
MaterialTheme(
colors = lightColorPalette(
background = colorResource(id = R.color.loginPageBackgroundColor),
primary = colorResource(id = R.color.colorPrimary),
primaryVariant = colorResource(id = R.color.colorPrimaryDark),
secondary = colorResource(id = R.color.colorAccent)
)
) {
Column(
modifier = Modifier.fillMaxSize(),
horizontalGravity = Alignment.CenterHorizontally,
verticalArrangement = Arrangement.Center
) {
var text by savedInstanceState { "" }
FilledTextField(
modifier = Modifier.fillMaxWidth(),
value = text,
onValueChange = { text = it },
label = { Text(text = "Username") },
keyboardType = KeyboardType.Email,
imeAction = ImeAction.Done
)
}
}
}
galex
07/21/2020, 6:44 AMvanpra
07/21/2020, 10:10 AMThiago
07/21/2020, 4:31 PMImage(asset = vectorResource(id = R.drawable.shr_logo))
In the picture we can see Shrine logo rendering filled instead the path.
PS: the logo that is not rendering correctly. Others are rendering fine.
compose: 0.1.0-dev14
galex
07/21/2020, 5:23 PMFudge
07/21/2020, 7:12 PMMutableState<T>.setValue
/ MutableState<T>.getValue
extension methods instead of instance methods? This creates some confusion for me when I write by state{}
and it errors, and I need to use the import quickfix.Sergey Y.
07/21/2020, 8:36 PM