Commit Graph

45 Commits

Author SHA1 Message Date
Daniel Panero
2e2a3c889c ViewGroup: Fix margin layout 2024-10-28 18:03:29 +01:00
Julian Winkler
c492e1f03f add Java APIs needed for WhatsApp MainActivity and ConversationActivity 2024-10-03 15:57:44 +02:00
Julian Winkler
e3c0931714 prevent reference cycles between Java and native objects 2024-08-02 17:02:53 +02:00
Julian Winkler
c5e0f8a7fd View.draw(): draw background, content, children in same order as AOSP 2024-05-27 16:37:49 +00:00
Julian Winkler
64b3a505b6 add ViewGroup.detachViewFromParent(View) 2024-05-23 23:30:03 +02:00
Mis012
04ee40d010 ViewGroup: make updateViewLayout actually update the layout 2024-04-03 01:55:03 +02:00
Julian Winkler
8f770d38d1 implement ViewGroup.removeViewInLayout() 2024-03-28 20:50:05 +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
6443e3977c api-impl: quick&dirty implementations and stubing 2024-03-16 15:03:06 +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
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
89b98faf04 ViewGroup: remove detached views
detached views should not be part of the view hierarchy
2024-02-18 10:08:43 +01:00
Julian Winkler
d253bfd24f findViewById(): only search among child views
also set default content view in Window
2024-02-16 15:28:04 +01:00
Julian Winkler
d2f28a5b21 add some methods needed for androidx dialogs 2024-02-16 15:28:04 +01:00
Julian Winkler
ef029f7cea implement LayoutParams.resolveLayoutDirection() callback
This is needed to make androidx ConstraintLayout behave correctly
2024-02-10 10:28:48 +01:00
Julian Winkler
bf3f595a8c LinearLayout: set GtkBox to homogeneous if all child weights are equal
Real weighted allocation is not supported by GtkBox
2024-01-01 12:11:31 +01:00
Julian Winkler
1b03fa6e1a merge View and ViewGroup constructor
Introduce empy JavaWidget to replace confusing usage of GtkBox and GtkDrawingArea.
gtk_widget_set_name() is called with the Java class name
2023-12-29 12:16:10 +01:00
Julian Winkler
757d689689 unify View construction and measurement
No longer allow constructing Views without Context.
Lets have only one onMeasure() method to unify behaviour
2023-12-29 11:40:52 +01:00
Julian Winkler
1a039e5e51 add missing APIs related to scrolling 2023-11-12 12:16:23 +01:00
Julian Winkler
e11d9ec6b6 set parent before calling setLayoutParams()
Allows the parent gravity to get handled correctly
2023-11-12 12:16:23 +01:00
Julian Winkler
36d7a1cc44 support layout margins
This makes the menu in Gravity Defied not get behind the keyboard.
Also makes the TabLayout in NewPipe not get behing the titlebar.
2023-11-12 12:16:23 +01:00
Julian Winkler
d025fd3ce3 FrameLayout: replace with AOSPs implementation
There are many Widgets extending FrameLayout and adding custom behaviour
on top. For example NavigationView. This didn't realy work with our
custom implementation
2023-11-08 22:44:39 +01:00
Julian Winkler
3de842b1d8 enable onTouchEvent for ViewGroups and add some stubs 2023-11-01 17:54:59 +01:00