Ahmed Elhanafy
06/19/2020, 2:24 PMText
composable?Adam Powell
06/19/2020, 3:09 PMSiyamed
06/19/2020, 3:10 PMAhmed Elhanafy
06/19/2020, 6:24 PMSiyamed
06/19/2020, 6:29 PMAhmed Elhanafy
06/19/2020, 8:18 PMSiyamed
06/19/2020, 8:34 PMAhmed Elhanafy
06/19/2020, 8:47 PMSiyamed
06/19/2020, 8:48 PMAhmed Elhanafy
06/19/2020, 9:05 PMtapGestureFilter
didn't work however adding longPressDragGestureFilter
worked and disabled the selection effect. Thanks a lot @Siyamed I'm trying Compose as part of an internal hackathon we have, and I'm blown away by its flexibility and simple APIs, coming from React I feel like I already know a lot about the system. Keep doing awesome work! ☺️
Modifier
.padding(0.dp, 40.dp, 8.dp, 40.dp)
.longPressDragGestureFilter(object :
LongPressDragObserver {
override fun onDragStart() {
super.onDragStart()
Log.d(ContentValues.TAG, "onDragStart: Do stuff")
}
})
Siyamed
06/19/2020, 9:06 PMgoku
06/21/2020, 2:43 PMText
is used in other composables such as AppBar, Button and text on them are selectable by default.