amar_1995
01/03/2020, 3:53 PMBruno_
01/06/2020, 10:20 PMonScrolledPositionChanged
, was it removed on purpose?Ian Warwick
01/07/2020, 9:50 AMShape
who performs the drawing? is there an example? I want to draw an oval shape (not a CircleShape
which is based off RoundedCornerShape
)gpaligot
01/08/2020, 2:01 PMasyncLoad
function is presented by speakers in one slide (https://youtu.be/VsStyq4Lzxo?t=1267▾
Andreas Jost
01/08/2020, 2:45 PMIan Warwick
01/08/2020, 9:27 PMDp
to Px
is there any special helper yet with compose APIs ? 🙂amar_1995
01/09/2020, 6:24 AMModelDrawerLayout
.
Now, I have some question regarding implementation.
1. Is there anyway to resize the size of navigation drawer.
2. Is there any way to navigate inside navigation drawer. Here navigate means if I tap on some item(inside navigation drawer) it navigate to sub-item inside navigation drawer. For example, there is setting item inside navigation bar if tap on it will navigate to sub-menu inside same navigation bar.Ian Warwick
01/09/2020, 9:14 AMIbrahim Ali
01/09/2020, 11:35 AMIan Warwick
01/09/2020, 2:55 PMColor
for Green shows up as Red in @Preview
and in emulator? apologies if this is a known issueIan Warwick
01/09/2020, 10:37 PM@Composable
s, one DrawVectorToggle()
and another version DrawVectorToggleDRY()
The first one draws a toggle and toggles up and down fine but the second ones vector draws over the first state when toggled, anyone see anything wrong here in usage pattern that could be causing this?karandeep singh
01/10/2020, 6:22 AMIan Warwick
01/10/2020, 8:43 AMManuel Wrage
01/10/2020, 10:27 AMalexsullivan114
01/10/2020, 2:42 PMalexsullivan114
01/10/2020, 7:52 PMZsolt
01/10/2020, 8:58 PMZsolt
01/11/2020, 5:53 PMAsh
01/11/2020, 7:21 PMjava.lang.NoSuchMethodError:GenerationState$Builder.isIrBackend(Z)Lorg/
. I thought I saw a bug fix in the latest Android Studio release notes but I am still getting the error. Could someone please point me to a GitHub or other example where it is working? This a show stopper for us :- ( Thanks really appreciate everyone's help :- )Tristan
01/11/2020, 10:01 PMSurface(color = Color.Magenta) {
Row(modifier = Spacing(16.dp)) {
// ...
}
}
Brady Aiello
01/12/2020, 12:25 AMPhilip Blandford
01/12/2020, 12:40 PMval scrollerPosition: ScrollerPosition = +memo { ScrollerPosition() }
VerticalScroller(scrollerPosition) {
// etc.
}
but it scrollerPosition.value always seems to be 0pxamar_1995
01/13/2020, 7:24 AMVerticalScroller
is not working properly with ModalDrawerLayout
When drawerContent
data wrap around verticalScroller whole view moves to center.
I had tried to incoperate the samething in jetnews
app.
Updated the AppDrawer
function
@Composable
private fun AppDrawer(
currentScreen: Screen,
closeDrawer: () -> Unit
) {
VerticalScroller() {
Column(modifier = Expanded) {
HeightSpacer(24.dp)
Row(modifier = Spacing(16.dp)) {
VectorImage(
id = R.drawable.ic_jetnews_logo,
tint = (+MaterialTheme.colors()).primary
)
WidthSpacer(8.dp)
VectorImage(id = R.drawable.ic_jetnews_wordmark)
}
Divider(color = Color(0x14333333))
DrawerButton(
icon = R.drawable.ic_home,
label = "Home",
isSelected = currentScreen == Screen.Home
) {
navigateTo(Screen.Home)
closeDrawer()
}
DrawerButton(
icon = R.drawable.ic_interests,
label = "Interests",
isSelected = currentScreen == Screen.Interests
) {
navigateTo(Screen.Interests)
closeDrawer()
}
}
}
}
mertceyhan
01/13/2020, 11:10 AMIan Warwick
01/13/2020, 12:07 PMshikasd
01/13/2020, 6:28 PMval X = FloatPropKey()
val Y = FloatPropKey()
val def = transitionDefinition {
state(Initial) {
this[X] = 0f
}
}
Transition(definition = def, initState = Initial) { state ->
val xValue = state[X]
val yValue = state[Y] // <-- Crashes, as no value specified
}
Vincent tiensi
01/14/2020, 7:29 AMamar_1995
01/14/2020, 11:24 AMBottomSheet
using BottomDrawerLayout
but in doc it written that bottomDrawer is only used with bottom app bars.
So, Is it okay to make bottomSheet using BottomDrawerLayout ?seb
01/14/2020, 3:15 PMIan Warwick
01/14/2020, 8:53 PMval model = +memo { CardEditorModel() }
Ian Warwick
01/14/2020, 8:53 PMval model = +memo { CardEditorModel() }
Adam Powell
01/14/2020, 9:55 PMIan Warwick
01/14/2020, 10:33 PMTash
01/14/2020, 10:35 PMIan Warwick
01/14/2020, 10:39 PMTash
01/15/2020, 1:25 AMAdam Powell
01/15/2020, 2:24 AM