Mis012
7e071fc6cc
api-impl-jni/android_app_NativeActivity.c: call ANativeWindow_release to get rid of the old surface, e.g when resizing
2023-09-15 11:40:54 +02:00
Mis012
e1cf5c7047
libandroid/native_window.c: make Vulkan work, add refcount
2023-09-14 21:48:15 +02:00
Mis012
9270d3a923
api-impl/android/view/View: add getDisplay
2023-09-14 16:05:07 +02:00
Mis012
ba44426986
api-impl/android/view/Display: add methods
2023-09-14 09:50:10 +02:00
Mis012
8500b57880
api-impl/android/net/Uri: copy encode/decode implementation from AOSP
2023-09-14 09:49:28 +02:00
Mis012
24353378be
api-impl: implement Canvas text drawing as used by Gravity Defied
...
implements android.graphics.Typeface (always uses default
typeface for now), one version of Canvas.drawText, one version
of Paint.measureText, and Paint.ascend
2023-09-12 19:30:29 +02:00
Mis012
f25e9b021f
README.md: add skia info, fix outdated sections
2023-09-12 13:42:02 +02:00
Mis012
90cb1c925a
api-impl: use liblog for android.util.Log; use Log.v for debugging prints and Log.w for stub tracing
2023-09-12 13:41:52 +02:00
Mis012
49861ce4dd
api-impl-jni/android_graphics_Canvas.c: enable drawRect
2023-09-12 13:37:41 +02:00
Mis012
897a1e68a4
TextView: implement setTextColor
...
also uncomment Resources.getCachedColorStateList
2023-09-12 13:37:41 +02:00
Mis012
1e47824a79
src/api-impl: use skia instead of cairo
...
Using the C API provided by SkiaSharp's skia fork instead of using cairo
significantly improves performance. The API is also closer to the android
Canvas API, which makes the implementation more straightforward.
2023-09-12 13:37:41 +02:00
Julian Winkler
096919ec37
implement View.getDrawingRect()
2023-09-08 20:10:45 +02:00
Julian Winkler
255eed3e59
setLayoutParams(): better match Androids behaviour
...
View.setGravity() specifies gravity of children, not of the view itself
LayoutParams.weight > 0 should cause expansion of widget
2023-09-08 20:10:45 +02:00
Julian Winkler
a27cb27638
ScrollView: use GtkScrolledWindow for implementation
2023-09-08 18:31:02 +02:00
Julian Winkler
b35cbea099
implement URL opening using libportal
2023-09-01 16:05:26 +02:00
Julian Winkler
0461834be0
ViewGroup: adjust scroll velocity for touchpads
2023-09-01 16:05:26 +02:00
Julian Winkler
3b6e4dc217
Always use addView() and removeView() implementation from ViewGroup
...
This makes sure, that the index argument is handled correctly everywhere
2023-09-01 16:05:26 +02:00
Julian Winkler
a35879c633
RelativeLayout: copy AOSP implementation
...
As we already support custom ViewGroups, there is no need to reimplement
this highly complex class.
2023-09-01 16:05:26 +02:00
Julian Winkler
9ad77d5b62
ViewGroup: make sure all child views have valid LayoutParams
2023-09-01 16:05:26 +02:00
Julian Winkler
ceb5df9d39
implement BitmapFactory.decodeStream() using gdk_pixbuf_new_from_stream
...
The java InputStream is wrapped into a custom GInputStream
implementation
2023-09-01 16:05:26 +02:00
Julian Winkler
30b990f60a
EditText: implement addTextChangedListener()
2023-09-01 16:05:26 +02:00
Julian Winkler
071538de02
FrameLayout: add missing removeView JNI function
2023-09-01 16:05:26 +02:00
Julian Winkler
372ff3fba0
implement GLES10 by simply subclassing GLES20
...
Most GLES10 functions are identical to the GLES20 functions. No need to
implement this twice.
2023-09-01 16:05:26 +02:00
Julian Winkler
97f8c2ed0f
Add some missing APIs.
...
android.widget.Filter and android.webkit.MimeTypeMap are copied from
AOSP. Other new classes are only stub implementations.
2023-09-01 16:05:26 +02:00
Julian Winkler
6c2a3adae6
LinearLayout: default to horizontal orientation
2023-09-01 12:46:02 +02:00