Commit Graph

889 Commits

Author SHA1 Message Date
Julian Winkler
19e91df8af WrapperWidget: make sure onTouch listeners are called before onClick listeners 2025-02-24 21:49:46 +01:00
Julian Winkler
77fec3c9e6 Button: implement setCompoundDrawables() 2025-02-24 21:49:46 +01:00
Julian Winkler
161904c8a8 View: implement onKeyDown() callback 2025-02-24 21:49:46 +01:00
Julian Winkler
2374d44b0f View: make sure onDetachedFromWindow() gets called before updating attachedToWindow property 2025-02-24 21:49:46 +01:00
Julian Winkler
24f839f556 make android.text.Layout.draw() compatible custom Canvas classes
TextAndroidCanvas is a proxy canvas class which prevents us from
accessing the GtkSnapshot of the real canvas. To solve this problem, we
call Canvas.drawText() for each line.
2025-02-24 21:49:46 +01:00
Julian Winkler
4bb5dfd86e Paint: implement textAlign and text bounds 2025-02-24 21:45:36 +01:00
Julian Winkler
587aeaba74 Canvas: implement drawCircle() and a drawText() variant 2025-02-24 21:45:36 +01:00
Julian Winkler
3fb1f56da2 api-impl: add misc APIs for Open Sudoku 2025-02-24 21:45:36 +01:00
Julian Winkler
227f3c9682 View: HACK: catch Exceptions during dispatch draw 2025-02-24 21:45:36 +01:00
Julian Winkler
b911d73eb3 Activity: HACK: catch errors in onCreateOptionsMenu()
This method throws some non critical errors in the Open Sudoku app.
Catch them for now until we fixed the root cause.
2025-02-24 18:47:56 +01:00
Julian Winkler
f20bb6cb1c ContentResolver: implement query() support for file:// URIs
This is needed for the subscription import feature in NewPipe.
2025-02-22 23:49:43 +01:00
Mis012
899805f23f Canvas: add drawLines 2025-02-15 21:42:21 +01:00
Mis012
453224cf31 api-impl: misc stubs and trivial impls 2025-02-15 21:42:21 +01:00
Mis012
df03617f13 api-impl: add ClipDrawable from AOSP
taken from AOSP master (commit ed8c91e410671fa153f1587f61d05b303bf94f95)
2025-02-15 21:24:26 +01:00
Mis012
bf79a77993 api-impl: import ToggleButton from AOSP, clean up constructors
taken from AOSP master (commit ed8c91e410671fa153f1587f61d05b303bf94f95)
2025-02-15 21:24:26 +01:00
Mis012
da406ec4c2 api-impl: import more annotations from AOSP 2025-02-15 21:24:26 +01:00
Julian Winkler
4a7db70fbc implement PopupWindow.update() 2025-02-15 10:42:30 +01:00
Julian Winkler
9f94f9d668 ObjectAnimator: add back ofFloat() method stubs
We can't copy them from AOSP yet, because of missing class PathKeyframes
2025-02-15 10:21:15 +01:00
Julian Winkler
4f7b301c12 PropertyValuesHolder: add support for Property objects 2025-02-15 08:22:47 +01:00
Julian Winkler
0bfe4ba90a Layout: fix NullPointerException in constructor 2025-02-15 08:21:59 +01:00
Julian Winkler
1eb0a5074f Canvas: fix NullPointerException in setBitmap() 2025-02-15 08:21:30 +01:00
Julian Winkler
469001630f CursorWindow: fix some issues spotted by the CTS 2025-02-13 07:01:17 +01:00
Julian Winkler
4a0f3a0e28 add Context.getWallpaper() for CTS 2025-02-13 07:01:17 +01:00
Julian Winkler
123de5f819 Dialog: some fixes for CTS
Most Dialog test still fail, because we don't handle KeyEvents
2025-02-13 07:01:17 +01:00
Julian Winkler
5375f4b5fd implement android.text.Layout using PangoLayout
This is needed to have proper line wrapping in composeUI apps.

In the CTS, android.text.cts.StaticLayoutTest passes all checks now.
2025-02-13 07:01:17 +01:00