Status Update
Comments
ap...@google.com <ap...@google.com> #2
Branch: androidx-main
commit 57e92af1e64bc136fd36b6a60f2f6ffbf9bd229e
Author: Haoyu Zhang <haoyuchang@google.com>
Date: Tue Apr 16 18:32:59 2024
Support handwriting expanded bounds for CoreTextField
A temp solution to support expanded handwriting bounds for
CoreTextField. It doesn't solve all the corner cases where two editors
handwriting bounds overlaps. Currently the logic is:
1. the focused editor has the priority to initiate handwriting.
2. the editor that's directly touched by the stylus pointer has the
priority to initiate handwriting.
3. when a direclty touched editor compete with a focused editor, the one
with higher z index wins.
Bug: 335339283
Test: CoreTextFieldHandwritingBoundsTest
Change-Id: I7882d14b1fcddf0c6e3cfa23329caf132dd48790
A compose/foundation/foundation/src/androidInstrumentedTest/kotlin/androidx/compose/foundation/text/CoreTextFieldHandwritingBoundsTest.kt
M compose/foundation/foundation/src/androidInstrumentedTest/kotlin/androidx/compose/foundation/text/HandwritingTestUtils.kt
M compose/foundation/foundation/src/androidMain/kotlin/androidx/compose/foundation/text/handwriting/HandwritingDetector.android.kt
M compose/foundation/foundation/src/commonMain/kotlin/androidx/compose/foundation/text/CoreTextField.kt
M compose/foundation/foundation/src/commonMain/kotlin/androidx/compose/foundation/text/handwriting/StylusHandwriting.kt
M compose/foundation/foundation/src/commonMain/kotlin/androidx/compose/foundation/text/input/internal/TextFieldDecoratorModifier.kt
A compose/ui/ui/src/androidInstrumentedTest/kotlin/androidx/compose/ui/node/SharePointerInputWithSiblingTest.kt
A compose/ui/ui/src/androidUnitTest/kotlin/androidx/compose/ui/node/HitTestSharePointerInputWithSiblingTest.kt
M compose/ui/ui/src/commonMain/kotlin/androidx/compose/ui/node/DelegatableNode.kt
M compose/ui/ui/src/commonMain/kotlin/androidx/compose/ui/node/HitTestResult.kt
M compose/ui/ui/src/commonMain/kotlin/androidx/compose/ui/node/InnerNodeCoordinator.kt
M compose/ui/ui/src/commonMain/kotlin/androidx/compose/ui/node/NodeCoordinator.kt
ap...@google.com <ap...@google.com> #3
Branch: androidx-main
commit fd06360296066ed231e36bbbfb2ff0c2b26aab63
Author: Justin Ghan <justinghan@google.com>
Date: Mon Apr 29 11:52:25 2024
Extended handwriting bounds for handwriting detector
Bug: 327271923
Bug: 335339283
Test: HandwritingDetectorTest
Change-Id: Iacac1d536775711cdd3b4dbc2e1240c34c0b2cd0
M compose/foundation/foundation/src/androidInstrumentedTest/kotlin/androidx/compose/foundation/text/input/HandwritingDetectorTest.kt
M compose/foundation/foundation/src/androidMain/kotlin/androidx/compose/foundation/text/handwriting/HandwritingDetector.android.kt
M compose/foundation/foundation/src/commonMain/kotlin/androidx/compose/foundation/text/handwriting/StylusHandwriting.kt
ap...@google.com <ap...@google.com> #4
Project: platform/frameworks/support
Branch: androidx-main
Author: Haoyu Zhang <
Link:
Introduce PointerInputModifierNode#touchBoundsExpansion
Expand for full commit details
Introduce PointerInputModifierNode#touchBoundsExpansion
Bug: 335339283
Test: HitTestTouchBoundsExpansionTest
Relnote: "Introduced PointerInputModifierNode#touchBoundsExpansion, which can be used to enlarge the touch bounds of a single pointer input modifier."
Change-Id: Iccf028b886639d3b24e7a257a023320362399389
Files:
- A
compose/foundation/foundation/integration-tests/foundation-demos/src/main/java/androidx/compose/foundation/demos/ExpandedTouchBoundsDemo.kt
- M
compose/foundation/foundation/integration-tests/foundation-demos/src/main/java/androidx/compose/foundation/demos/FoundationDemos.kt
- M
compose/ui/ui/api/current.txt
- M
compose/ui/ui/api/restricted_current.txt
- A
compose/ui/ui/src/androidUnitTest/kotlin/androidx/compose/ui/node/HitTestTouchBoundsExpansionTest.kt
- M
compose/ui/ui/src/androidUnitTest/kotlin/androidx/compose/ui/node/LayoutNodeTest.kt
- A
compose/ui/ui/src/androidUnitTest/kotlin/androidx/compose/ui/node/TouchBoundsExpansionTest.kt
- M
compose/ui/ui/src/commonMain/kotlin/androidx/compose/ui/node/HitTestResult.kt
- M
compose/ui/ui/src/commonMain/kotlin/androidx/compose/ui/node/NodeCoordinator.kt
- M
compose/ui/ui/src/commonMain/kotlin/androidx/compose/ui/node/PointerInputModifierNode.kt
Hash: 3976106460a5de53a6821af410363ce4ef9625ba
Date: Wed Aug 28 19:28:11 2024
ap...@google.com <ap...@google.com> #5
Project: platform/frameworks/support
Branch: androidx-main
Author: Haoyu Zhang <
Link:
Use MutableObjectList and MutableLongList in HitTestResult
Expand for full commit details
Use MutableObjectList and MutableLongList in HitTestResult
Use the newly introduced collections to simply the code.
Bug: 335339283
Test: HitTestResult, HitTestTouchBoundsExpansionTest, manually tested
Change-Id: If81864bf690db574d2d19c263f858b04bef2c013
Files:
- M
compose/ui/ui/src/commonMain/kotlin/androidx/compose/ui/node/HitTestResult.kt
Hash: 6e4cda785e10e16b652d7ab135325b9e38dcbe8e
Date: Thu Oct 03 18:44:21 2024
ap...@google.com <ap...@google.com> #6
Project: platform/frameworks/support
Branch: androidx-main
Author: Haoyu Zhang <
Link:
Fix that PointerInputModifier#touchBoundsExpansion doesn't work for stylus
Expand for full commit details
Fix that PointerInputModifier#touchBoundsExpansion doesn't work for stylus
Bug: 335339283
Test: LayoutNodeTest, HitTestTouchBoundsExpansionTest, manually tested
Change-Id: Ia33bc9dfb1bc40119a4d9accc4047879458b575e
Files:
- M
compose/ui/ui/src/androidUnitTest/kotlin/androidx/compose/ui/node/HitTestTouchBoundsExpansionTest.kt
- M
compose/ui/ui/src/androidUnitTest/kotlin/androidx/compose/ui/node/LayoutNodeTest.kt
- M
compose/ui/ui/src/commonMain/kotlin/androidx/compose/ui/input/pointer/PointerInputEventProcessor.kt
- M
compose/ui/ui/src/commonMain/kotlin/androidx/compose/ui/node/InnerNodeCoordinator.kt
- M
compose/ui/ui/src/commonMain/kotlin/androidx/compose/ui/node/LayoutNode.kt
- M
compose/ui/ui/src/commonMain/kotlin/androidx/compose/ui/node/NodeCoordinator.kt
Hash: 4f2c54a0e60683918c050d22e82f3d9cfecd9089
Date: Tue Oct 08 15:22:34 2024
ap...@google.com <ap...@google.com> #7
Project: platform/frameworks/support
Branch: androidx-main
Author: Haoyu Zhang <
Link:
Use PointerInputModifier.touchBoundsExpansion in Modifier.stylusHandwriting
Expand for full commit details
Use PointerInputModifier.touchBoundsExpansion in Modifier.stylusHandwriting
Bug: 335339283
Test: HandwritingDetectorTest, CoreTextFieldHandwritingBoundsTest
Change-Id: Idb1d94e7012e861f6fbc59d98a757fcd8727113a
Files:
- M
compose/foundation/foundation/src/androidInstrumentedTest/kotlin/androidx/compose/foundation/text/CoreTextFieldHandwritingBoundsTest.kt
- M
compose/foundation/foundation/src/androidInstrumentedTest/kotlin/androidx/compose/foundation/text/input/HandwritingDetectorTest.kt
- M
compose/foundation/foundation/src/androidMain/kotlin/androidx/compose/foundation/text/handwriting/HandwritingDetector.android.kt
- M
compose/foundation/foundation/src/commonMain/kotlin/androidx/compose/foundation/text/handwriting/StylusHandwriting.kt
Hash: 3bc9af4a45b151bd0402e7f18edac35b787b4784
Date: Tue Oct 08 15:52:25 2024
ap...@google.com <ap...@google.com> #8
Project: platform/frameworks/support
Branch: androidx-main
Author: Haoyu Zhang <
Link:
Support expanded touch bounds in BTF2
Expand for full commit details
Support expanded touch bounds in BTF2
This CL extract Modifier.stylusHandwriting from TextFieldDecoratorModifierNode, so that it can have an expanded touch bounds.(Modifier.stylusHandwriting overwrites PointerInputModifierNode.touchBoundsExpansion.) And the other gestures detectors in TextFieldDecoratorModifierNode will have a touch bounds equal to editor's bounds.
Bug: 335339283
Test: BasicTextFieldHandwritingBoundsTest
Change-Id: I9ea0f806d8eea3e0bc016477f7556d152d3ac995
Files:
- A
compose/foundation/foundation/src/androidInstrumentedTest/kotlin/androidx/compose/foundation/text/input/BasicTextFieldHandwritingBoundsTest.kt
- M
compose/foundation/foundation/src/androidMain/kotlin/androidx/compose/foundation/text/handwriting/HandwritingDetector.android.kt
- M
compose/foundation/foundation/src/commonMain/kotlin/androidx/compose/foundation/text/BasicTextField.kt
- M
compose/foundation/foundation/src/commonMain/kotlin/androidx/compose/foundation/text/CoreTextField.kt
- M
compose/foundation/foundation/src/commonMain/kotlin/androidx/compose/foundation/text/handwriting/StylusHandwriting.kt
- M
compose/foundation/foundation/src/commonMain/kotlin/androidx/compose/foundation/text/input/internal/TextFieldDecoratorModifier.kt
Hash: 25302f79d6380813251a2a1d5b9402e7514a56e4
Date: Thu Oct 17 15:10:14 2024
ap...@google.com <ap...@google.com> #9
Project: platform/frameworks/support
Branch: androidx-main
Author: Justin Ghan <
Link:
Introduce DpTouchBoundsExpansion API
Expand for full commit details
Introduce DpTouchBoundsExpansion API
A stylus hover icon modifier will be added which uses touch bounds
expansion, so a dp variant of TouchBoundsExpansion is needed.
Bug: 335339283
Test: HitTestTouchBoundsExpansionTest
Relnote: N/A
Change-Id: I38e7b12798c2d672a196b0a5ce2484c5c03c3871
Files:
- M
compose/ui/ui/api/current.txt
- M
compose/ui/ui/api/restricted_current.txt
- M
compose/ui/ui/src/commonMain/kotlin/androidx/compose/ui/node/PointerInputModifierNode.kt
- A
compose/ui/ui/src/commonMain/kotlin/androidx/compose/ui/node/TouchBoundsExpansion.kt
Hash: ddc0b14383397c813ee0ca4ba88aa57fb9f1e092
Date: Thu Oct 31 00:41:35 2024
ha...@google.com <ha...@google.com>
na...@google.com <na...@google.com> #10
The following release(s) address this bug.It is possible this bug has only been partially addressed:
androidx.compose.ui:ui:1.8.0-alpha06
androidx.compose.ui:ui-android:1.8.0-alpha06
androidx.compose.ui:ui-jvmstubs:1.8.0-alpha06
androidx.compose.ui:ui-linuxx64stubs:1.8.0-alpha06
Description
No description yet.