Julian Winkler
ce6b83ad81
AssetManager: load style with parser.getAttribute(null, "style")
...
This way, we get the type as well and can check for it being an
attribute properly.
2024-04-09 18:19:44 +02:00
Julian Winkler
3d9eb9611f
GskCanvas: implement drawPath, rotate, translate, save, restore
...
This is enough to make DrawerArrowDrawable functional.
drawPath() only draws line segments for now.
2024-04-09 18:19:18 +02:00
Julian Winkler
74bedcc93c
implement Drawable.invalidateSelf()
2024-04-09 18:19:18 +02:00
Julian Winkler
ae58d2b319
implement TextView.setCompoundDrawables()
...
This adds an additional GtkBox for every TextView
2024-04-09 18:19:18 +02:00
Julian Winkler
849701c5c4
Drawable: call getIntrinsic{Width/Height}
2024-04-09 18:19:18 +02:00
Julian Winkler
9e770c663c
ImageView: use obtainStyledAttributes()
...
This is needed to support resolving attributes from themes
2024-04-09 18:19:18 +02:00
Julian Winkler
2f4cd3917f
implement some APIs needed for OctoDroid
2024-04-09 18:19:13 +02:00
Mis012
0352a307b9
AssetManager: applyStyle: use loadResourceBagValue instead of creating a temporary theme
2024-04-08 18:28:18 +02:00
Mis012
0f14370c8b
AssetManager: applyStyle: handle "style" value being an attribute, append styles to global theme instead of replacing it
2024-04-07 23:23:31 +02:00
Mis012
db4add0842
Resources: improve debug printout
2024-04-07 23:23:31 +02:00
Mis012
fea7a9e021
LayoutInflater: add AOSP boilerplate, it seems this file has large portions copied from AOSP
2024-04-07 23:23:31 +02:00
Mis012
b229d83ad8
GskCanvas: implement drawRect
2024-04-07 23:23:30 +02:00
Mis012
677ff43a20
ColorDrawable: add a draw method
...
we don't use this directly, but it can be called by an app
2024-04-07 23:23:30 +02:00
Mis012
b1d4a69c6b
Activity: implement getTitle/setTitle
...
also set the title from AndroidManifest.xml
this is used by some androidx AppCompat widgets
2024-04-07 21:42:42 +02:00
Mis012
1e64babfd4
borrow AnimationDrawable from AOSP
2024-04-03 01:55:03 +02:00
Mis012
04ee40d010
ViewGroup: make updateViewLayout actually update the layout
2024-04-03 01:55:03 +02:00
Mis012
e94a78fd14
ImageView: remove 'broken image icon' hack
...
most drawables should work now, and we need to support empty drawables
2024-04-03 01:55:03 +02:00
Markuss Broks
1b1f026e76
implement android.app.ApplicationErrorReport
2024-04-01 19:41:06 +00:00
Markuss Broks
24e8743cc1
Context: add the input service tag string
2024-04-01 19:41:06 +00:00
Markuss Broks
ad4de8edc4
ActivityManager: add a stub for MemoryInfo
2024-04-01 19:41:06 +00:00
Markuss Broks
d4e9ddbd15
libandroid: Add a stub for AKeyEvent_getKeyCode
2024-04-01 19:41:06 +00:00
Markuss Broks
7fae1f5bb7
AssetManager: implement android.content.res.AssetManager.list
2024-04-01 19:41:06 +00:00
Markuss Broks
4b2c1835f7
AudioManager: add a stub for isWiredHeadsetOn
2024-04-01 19:41:06 +00:00
Markuss Broks
46140d44e3
Window: stub setFormat()
2024-04-01 19:41:06 +00:00
Julian Winkler
654d551377
View.setTranslationY(): queue allocate when called on CoordinatorLayout
...
androidx adjusts the translation a little bit and immediately
reverts it to trigger a layout pass on the CoordinatorLayout.
Calling gtk_widget_queue_allocate here makes CoordinatorLayout behave
correctly, but it causes strange issues with other Views. Therefore, it is
done only for CoordinatorLayouts for now.
2024-03-28 20:50:05 +01:00