Commit Graph

118 Commits

Author SHA1 Message Date
Julian Winkler
554b4d346a TextView: store text in the Java object
Some apps expect getText() to return a Spannable instead of a String.
2025-01-12 14:37:04 +01:00
Julian Winkler
0dfcb9324f drop GTK < 4.14 ifdefs 2024-12-22 23:40:11 +01:00
Julian Winkler
cd2c69cf73 reimplement Bitmap and Path using GdkTexture and GskPath
This allows us to use GskCanvas for Bitmap rendering

This increases the required GTK version to >= 4.14.
2024-12-22 12:30:29 +01:00
Julian Winkler
2f122cbad7 SurfaceView.unlockCanvasAndPost(): create GSK renderer without surface
This is needed to allow using the renderer on non UI threads.
2024-12-22 10:24:55 +01:00
Julian Winkler
864750020e View: always call dispatchTouchEvent() if overwritten 2024-12-13 22:32:04 +01:00
Julian Winkler
036b5510d3 implement dispatchKeyEvent callback 2024-12-01 14:15:00 +00:00
Julian Winkler
e9cf5e7002 API stubs and fixes for composeUI 2024-12-01 14:15:00 +00:00
Julian Winkler
60095ea795 ListView: copy from AOSP
copied from tag android-6.0.1_r81
2024-11-30 18:56:17 +00:00
Daniel Panero
be93b4c396 JavaWidget: add css classes and default_stylesheet.css 2024-11-26 16:33:38 +01:00
Julian Winkler
332d3d1137 copy AdapterView, AbsSpinner and Gallery from AOSP
copied from tag android-6.0.1_r81

existing GTK based implementation was moved from AbsSpinner to Spinner
2024-11-24 22:11:40 +00:00
Daniel Panero
eba9c7037c JavaWidget: add debug info for GTK Inspector 2024-11-19 16:14:36 +01:00
Julian Winkler
4b36bca4c6 refactor SurfaceViewWidget for frame_callback in the Wayland server
SurfaceViewWidget is now always a child of a GtkGraphicsOffload and
handles the GdkTexture on its own. This way the extra GtkPicture is no
longer needed and also the frame_callback of the Wayland server can be
implemented.
2024-11-17 17:11:14 +01:00
Julian Winkler
ab07fc11da EditText.setOnEditorActionListener(): disconnect old listener 2024-10-07 11:55:33 +02:00
Julian Winkler
21a75d7ff0 WebView: use Asset_read() instead of Asset_openFileDescriptor()
openFileDescriptor doesn't work for assets which are compressed inside
the APK.
2024-10-05 10:26:50 +02:00
Julian Winkler
4f4fd15fef WebView: implement WebViewClient callbacks 2024-10-04 15:23:34 +02:00
Julian Winkler
633f1e6f96 WebView: implement file:///android_asset/... URIs 2024-10-04 15:23:34 +02:00
Julian Winkler
dc4b40bdf4 WebView.loadDataWithBaseURL(): handle mimeType=null 2024-10-04 15:23:34 +02:00
Julian Winkler
14eae15178 ListView: implement setSelection() and scrollTo() 2024-10-03 15:57:44 +02:00
Julian Winkler
c492e1f03f add Java APIs needed for WhatsApp MainActivity and ConversationActivity 2024-10-03 15:57:44 +02:00
Mis012
e761bb6a6d api-impl: implement WebView using webkitgtk 2024-09-13 20:29:56 +02:00
Julian Winkler
e3c0931714 prevent reference cycles between Java and native objects 2024-08-02 17:02:53 +02:00
Julian Winkler
45801d8f17 implement EditText.removeTextChangedListener() 2024-08-01 22:06:27 +02:00
Julian Winkler
23e7d32924 Button/ImageButton: consume touch events
Androids button consumes touch events, while GTKs button lets touch
events propagate to the parent. This previously caused some glitches
with buttons inside a CoordinatorLayout.
2024-07-31 18:21:14 +02:00
Julian Winkler
c7f64cd24b Button/ImageButton: remove old OnClickListener when setting new one 2024-07-31 18:21:14 +02:00
Mis012
004ba4ff00 remove some old debugging prints, gate others behind verbose log 2024-06-22 14:35:56 +02:00