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
Mis012
6136243fec
api-impl: InputEvent: return stub InputDevice instead of NULL
...
this makes touch work in Unity for games using the "new" input system
2024-01-29 14:55:06 +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
52214f47d0
ImageView: check if Drawable actually has a Paintable
2024-01-01 12:09:17 +01:00
Julian Winkler
790255f9ca
ImageView: allow non bitmap Drawables
...
Also pass size of child paintable in DrawableContainer
2023-12-30 23:38:56 +01:00
Julian Winkler
b393a6bf1d
support loading BitmapDrawables from XML
2023-12-30 23:38:56 +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
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
0614e6c245
add some stubs needed since we now handle onMeasure() for more Views
2023-12-29 11:40:52 +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
Mis012
1b8480a7d0
android-impl: fix regressions that made angry birds not work anymore
2023-11-23 15:29:03 +01:00
Julian Winkler
878b957380
LinearLayout: remove default gravity
2023-11-12 12:16:23 +01:00
Julian Winkler
b0fdf53f9b
implement android.widget.ProgressBar using GtkProgressBar
2023-11-12 12:16:23 +01:00
Julian Winkler
987058f55d
implement AudioTrack.pause()
2023-11-12 12:16:23 +01:00
Julian Winkler
bff62a6e77
View: implement visibility and alpha properly
2023-11-12 12:16:23 +01:00
Julian Winkler
1a039e5e51
add missing APIs related to scrolling
2023-11-12 12:16:23 +01:00
Julian Winkler
4bf4887244
copy OverScroller.java from AOSP
2023-11-12 12:16:23 +01:00
Julian Winkler
7ac38adae0
View.scrollTo(): invalidate View
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
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
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