Julian Winkler
7d6eae5fa5
hack: call OnGlobalLayoutListener immediately
...
The NewPipe DownloadActivity waits for this callback
2024-03-22 21:02:22 +01:00
Julian Winkler
dda3063e79
PopupMenu: use AOSP MenuInflater and support item visibility
2024-03-22 21:02:22 +01:00
Mis012
0592b71489
View: basic implementation for performHapticFeedback
...
we currently ignore the feedbackConstant and simply vibrate for 10ms
2024-03-22 14:04:17 +01:00
Mis012
6839f8b651
View: requestLayout: post with Looper to avoid stack exhaustion
2024-03-21 21:05:20 +01:00
Mis012
5af3fa9e79
api-impl: add TableLayout from AOSP
2024-03-21 16:19:19 +01:00
Julian Winkler
276b5ca7ef
add more APIs needed for NewPipe
2024-03-17 20:02:50 +01:00
Mis012
ab7c6cf834
api-impl: add stubs to make AnimationDrawable and Animation not cause lockups
...
apps may (ab)use AnimationDrawable.run and Animation.setAnimationListener
to time transitions between states; even though we don't currently implement
the animations, state transitions are still desirable (otherwise the app may
lock up)
2024-03-16 23:37:16 +01:00
Mis012
6443e3977c
api-impl: quick&dirty implementations and stubing
2024-03-16 15:03:06 +01:00
Mis012
fa1aa36f6b
api-impl: add stubs, put Vibrator.java in meson.build (oops), sort sources with LC_ALL=C sort -h
2024-03-16 10:13:55 +01:00
Julian Winkler
c8e70d49be
implement View.getLocationOnScreen() properly
2024-03-15 19:51:02 +01:00
Julian Winkler
a67b973e67
MotionEvent: implement getRawX() / getRawY() properly
2024-03-15 18:57:49 +01:00
Julian Winkler
796742c0fc
implement android.graphics.Matrix and View.getMatrix()
...
This is needed for androidx CoordinatorLayout and will also be required
for VectorDrawables
2024-03-15 18:57:49 +01:00
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
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
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
60714ebf45
add PathInterpolator stub
2024-02-29 12:33:48 +01:00
Julian Winkler
efa61afc71
implement View.OnLongClickListener as GtkGestureLongPress
2024-02-27 22:02:36 +01:00
Julian Winkler
dd839e5a04
View.isNestedScrollingEnabled() default to false
...
RecyclerView overrides this method to return true
2024-02-27 22:02:36 +01:00
Julian Winkler
ddc36f5ccc
postOnAnimation: add minimum delay of 1/60 s
...
This fixes smooth animations like kinetic scrolling
2024-02-27 22:02:36 +01:00
Julian Winkler
bcf252d3a6
implement MotionView.eventTime and VelocityTracker
...
This is needed to make androidx ViewPager work with touch input
2024-02-27 22:02:36 +01:00
Julian Winkler
8dafa41ea9
implement View.onInterceptTouchEvent() callback
...
This is needed to support nested scrolling
A second GtkEventControllerLegacy gets registerd with GTK_PHASE_CAPTURE
2024-02-25 18:18:45 +01:00