Commit Graph

106 Commits

Author SHA1 Message Date
Julian Winkler
5dfadc9c59 Add some more methods needed by NewPipe. Mostly stubs 2024-02-18 10:08:43 +01:00
Julian Winkler
1d8e140a3b TextView: add stubs to fix RecyclerView demo apk
The views_widgets_samples_flower_finder.apk was broken, because of
recent changes
2024-02-16 20:48:10 +01:00
Julian Winkler
2d6694d695 implement CompoundButton using GtkSwitch 2024-02-16 20:46:55 +01:00
Julian Winkler
3aed86b83a implement ListView using GtkListView
There is not much difference between GTKs ListView and Androids
ListView. So, we use GTKs implementation instead of copying from AOSP
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
77403170d2 TextView: relayout after setText()
This is necessary, when TextViews are recycled by RecyclerView
2024-02-10 10:28:48 +01:00
Julian Winkler
88254d822f replace LinearLayout with AOSPs implementation
Also update QuickHelp.md, as LinearLayout was the last custom
implemented ViewGroup
2024-02-10 10:28:48 +01:00
Julian Winkler
aa56f3fb81 Add some methods needed for androidx preferences 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
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
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
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
4bf4887244 copy OverScroller.java from AOSP 2023-11-12 12:16:23 +01:00
Julian Winkler
72a8b3a047 add more stubs 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
bcfb384ba4 implement EditText.setOnEditorActionListener()
This makes the NewPipe search work again
2023-11-08 22:44:39 +01:00
Julian Winkler
3c03223085 android_layout_measure(): refactor to respect LayoutParams
This is needed when a Java widget gets measured from GTK
2023-11-02 08:20:13 +01:00
Julian Winkler
3de842b1d8 enable onTouchEvent for ViewGroups and add some stubs 2023-11-01 17:54:59 +01:00
Mis012
58fa4b5590 api-impl/android/widget/Toolbar: add a stub widget 2023-10-16 20:19:05 +02:00
Julian Winkler
4130e252cc fixes to make Picasso Image Loader work
This library is used by newer NewPipe versions
2023-10-14 18:29:33 +02:00
Julian Winkler
520d153c55 call View.onAttachedToWindow() method 2023-10-14 18:29:33 +02:00
Julian Winkler
b88707592a add more stubs to make exoplayer not crash 2023-10-14 18:29:33 +02:00