Commit Graph

406 Commits

Author SHA1 Message Date
Julian Winkler
f852c2bbc9 remove View.haveComplexMeasure as it is redundant with haveCustomMeasure
Makes haveCustomMeasure true by default. And disable it for widgets
which previously set haveComplexMeasure
2024-03-15 18:57:49 +01:00
Julian Winkler
c0bc875c11 ScrollView: implement custom onMeasure() 2024-03-15 18:57:49 +01:00
Mis012
9fbfe9dea1 api-impl: remove hacky overrides for android.support
These were originally needed because the official android.support classes
required APIs that we didn't support and it didn't seem worth the effort
to make them happy when the actual apps using these compat classes
were comparatively trivial.

We now support all the necessary APIs, so we can remove the overrides
and let the apps use their bundled android.support classes.
2024-03-14 21:31:48 +01:00
Mis012
b55bbd8a6f add android/widget/AbsoluteLayout from AOSP 2024-03-14 12:50:49 +01:00
Mis012
a7e89b816b graphics/drawable/AnimationDrawable: subclass Drawable instead of Object 2024-03-14 12:50:49 +01:00
Mis012
c0d3e679ac ViewGroup: implement measureChildren 2024-03-14 12:50:49 +01:00
Mis012
8ad7359941 ViewGroup.java: fix code style 2024-03-14 12:50:49 +01:00
Julian Winkler
75e42e6bff onInterceptTouchEvent: don't self propagate cancel
This is needed, to make Gravity Defied keyboard work again
2024-03-12 17:56:17 +01:00
Mis012
49aef9ff08 main: set window icon to apk's launcher icon
Note this currently only works with Gtk's X11 backend, because
there is no way for to do this on Wayland even if Gtk wanted to.
2024-03-11 15:15:44 +01:00
Julian Winkler
a3a7def204 night-mode: check for GTK_THEME env var and prefer-dark setting
GTK_THEME env var does not influence gtk-theme-name property. So it has
to be checked by hand.
2024-03-10 23:00:42 +01:00
Julian Winkler
9509289ee5 implement SeekBar using GtkScale 2024-03-10 23:00:42 +01:00
Julian Winkler
aef5d5ad23 Html.fromHtml(): replace   as well 2024-03-10 23:00:42 +01:00
Julian Winkler
d22d083eb8 implement CheckBox and RadioButton using GtkCheckButton 2024-03-10 17:49:11 +01:00
Julian Winkler
1d0ad8132d regenerate R.java and Manifest.java to match framework-res.apk 2024-03-10 14:36:27 +00:00
Julian Winkler
005e2299bd automatically enable UI_MODE_NIGHT when gtk-theme-name contains "dark"
gtk-theme-name is only checked once at start up
2024-03-10 12:05:33 +01:00
ptrcnull
f49922cf1b add stub for ALooper::removeFd 2024-03-09 04:50:56 +01:00
Mis012
4e3b180dd7 android/view/View: clean up retrieval of id 2024-03-07 15:48:53 +01:00
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
Mis012
6d587a19e5 misc stuff to make glmark2 run 2024-03-05 17:07:21 +01:00
Mis012
a9c72d58fd api-impl: android/os/Process: handle self-kill
We don't currently implement sendSignal, however Unity uses killProcess to kill
its own process, which we can hadle with simple System.exit(0) and have Unity
games close cleanly
2024-03-01 15:38:46 +01:00
Mis012
60714ebf45 add PathInterpolator stub 2024-02-29 12:33:48 +01:00
Mis012
c430344bd7 TextView: implement more ways to obtain textColor, textSize; misc cleanup
also added a try/catch block to avoid regression
2024-02-28 01:49:23 +01:00
Julian Winkler
1a97841579 onInterceptTouchEvent: propagate ACTION_CANCEL to child widgets 2024-02-27 22:02:36 +01:00
Julian Winkler
efa61afc71 implement View.OnLongClickListener as GtkGestureLongPress 2024-02-27 22:02:36 +01:00