Commit Graph

93 Commits

Author SHA1 Message Date
Mis012
7207587b2f add some stubs, borrow ListActivity and SimpleAdapter from AOSP 2024-03-07 15:47:10 +01:00
Mis012
ecaf968da1 treat application/activity names in AndroidManifest.xml as dot-prefixed when they don't contain any dots 2024-03-07 15:44:21 +01:00
Julian Winkler
838530fe59 add Intent.setDataAndType() method 2024-02-16 20:48:10 +01:00
Julian Winkler
bc8443e542 Dialog: add dismiss(), hide() and onCreate() methods 2024-02-16 15:28:04 +01:00
Mis012
056b911637 handle 'SEND' intent by copying to clipboard, make Activity subclass ContextWrapper, code style fixes 2024-02-10 20:58:38 +01:00
Julian Winkler
f3292a76f2 AssetManager: special handling for style and array types
These are complex and can't be loaded into a TypedArray
2024-02-10 10:28:48 +01:00
Julian Winkler
164383121c implement AssetManager.copyTheme() 2024-02-10 10:28:48 +01:00
Julian Winkler
aa56f3fb81 Add some methods needed for androidx preferences 2024-02-10 10:28:48 +01:00
Julian Winkler
850fd2f076 add some stubs to make NewPipe video player work again 2024-02-08 14:22:40 +01:00
Julian Winkler
7c59ed33bd make AssetManager feature complete with pre androidfw version 2024-02-06 16:41:49 +01:00
Julian Winkler
c1d8956309 AssetManager: use libandroidfw for everything except XML parsing
binary XML parsing still relies on ARSClib for now
2024-02-06 16:41:49 +01:00
Julian Winkler
8d4d0021b3 use libandroidfw also for themes 2024-02-06 16:41:49 +01:00
Julian Winkler
3284518418 AssetManager: use libandroidfw instead of ARSClib for resources.arsc parsing
This reduces startup time and RAM usage. Not yet feature complete with
the ARSClib based implementation, but Gravity Defied runs already
2024-02-06 16:41:48 +01:00
Julian Winkler
493cb8284a fix some Drawable related crashes in NewPipe 2023-12-30 23:38:56 +01:00
Julian Winkler
ca3c17d773 implement DrawableContainer and copy StateListDrawable from AOSP 2023-12-30 23:38:56 +01:00
Julian Winkler
8c7dbf6ceb start implementing Drawable using underlying GdkPaintable 2023-12-30 23:38:48 +01:00
Mis012
1b8480a7d0 android-impl: fix regressions that made angry birds not work anymore 2023-11-23 15:29:03 +01:00
Julian Winkler
72a8b3a047 add more stubs 2023-11-12 12:16:23 +01:00
Julian Winkler
9f74ab811e LayoutInflater: support android:theme attribute 2023-11-08 22:44:39 +01:00
Julian Winkler
1aa1ee64c1 Context: handle getTargetSdkVersion() returning null 2023-11-04 23:32:29 +01:00
Julian Winkler
0a8b8a3874 use AndroidLayout class also in View implementation
drop the onMeasure hack from WrapperWidget
2023-11-02 08:20:19 +01:00
Mis012
fb3149b088 api-impl/android/content/res/Resources: fix trailing whitespace 2023-10-30 18:49:32 +01:00
Mis012
0b0cfed345 misc: fix stuff up to make SDL example work again
it still behaves weirdly, should probably find some
other example since I don't trust my own code.
2023-10-29 22:48:02 +01:00
Julian Winkler
9025142bdd AssetManager: speed up XML inflation using HashMap caching
This makes XML inflation around 10 times faster. Inflating a layout XML
with one TextView and one ImageView now takes 4 ms instead of 40 ms
2023-10-29 15:28:06 +01:00
Mis012
4a0755c6e0 api-impl{-jni}: make view.onTouchEvent work, misc stuff to make input work for Unity games
onTouchEvent was previously incorrectly handled in GLSurfaceView; move it
to View so that it works properly with any of it's descendants.

This is done by reusing the existing setOnTouchListener implementation
and changing it to use GtkEventControllerLegacy which provides motion
events.

Technically some of the code is in WrapperWidget.c since every widget
calls wrapper_widget_set_jobject and we already have related code
there.
2023-10-17 21:33:59 +02:00