1
Column(
   Modifier.padding(top = 300.dp).pointerHoverIcon(PointerIconDefaults.Text)) {
       SelectionContainer {
           Column {
               Text("Selectable text")
               Text(
                     modifier = Modifier.pointerHoverIcon(PointerIconDefaults.Hand, true),
                     text = "Selectable text with hand"
               )
           }
        }
    Text("Just text with global pointerIcon")
}

PointerIconDefaults.Text:

PointerIconDefaults.Hand:

I don't see any difference between PointerIconDefaults.Hand and PointerIconDefaults.Text

Phil Dukhov
  • 67,741
  • 15
  • 184
  • 220
Elliot
  • 35
  • 1
  • 7

1 Answers1

0

Not sure what you expect from using this modifier since your image shows a floating toolbar. If you need to change how floating toolbar looks like, check out this answer. If you need to change the selection color, check out this one.

Modifier.pointerHoverIcon change the appearance of the mouse pointer over the item. To see this, for example you can connect a BLE mouse to your Android device, not sure if this can be checked in the Emulator.

Any Text has PointerIconDefaults.Text by default.

Phil Dukhov
  • 67,741
  • 15
  • 184
  • 220