Mis012
bf79a77993
api-impl: import ToggleButton from AOSP, clean up constructors
...
taken from AOSP master (commit ed8c91e410671fa153f1587f61d05b303bf94f95)
2025-02-15 21:24:26 +01:00
Julian Winkler
c725bb32df
copy AutoCompleteTextView from AOSP
...
copied from main branch (frameworks/base commit 72ea9148bc619515a649cec9029136e42b342d9b)
2025-02-13 06:56:26 +01:00
Julian Winkler
1cf48085ff
api-impl: add misc APIs needed for AntennaPod
2025-02-10 21:55:27 +01:00
Julian Winkler
a743361ae4
TextView: set default text to an empty String
2025-01-28 06:54:31 +01:00
Julian Winkler
32dcbe3131
TextView: add getTotalPaddingLeft / getTotalPaddingTop
2025-01-28 06:54:31 +01:00
Julian Winkler
64c5ebe5b6
api-impl: misc stubs for K-9 Mail
...
This makes the non composeUI parts of K-9 Mail mostly functional.
2025-01-12 14:37:24 +01:00
Julian Winkler
554b4d346a
TextView: store text in the Java object
...
Some apps expect getText() to return a Spannable instead of a String.
2025-01-12 14:37:04 +01:00
Julian Winkler
57dd86fc98
api-impl: misc stubs for WhatsApp
2025-01-11 22:42:25 +01:00
Pierre-Hugues Husson
c81442321e
api-impl: stubs and fixes for latest WhatsApp version
2025-01-01 11:33:16 +01:00
Julian Winkler
d0952101a6
implement some Canvas methods needed for composeUI
2024-12-01 14:15:00 +00:00
Mis012
0803848c6d
api-impl: misc stubs/additions
2024-11-30 18:54:53 +01:00
Daniel Panero
be93b4c396
JavaWidget: add css classes and default_stylesheet.css
2024-11-26 16:33:38 +01:00
Julian Winkler
f53ad02e6f
api-impl: misc additions for Oeffi
2024-11-24 22:11:40 +00:00
Julian Winkler
3d38ec9755
add Java APIs needed for WhatsApp settings
2024-10-03 15:57:44 +02:00
Julian Winkler
c492e1f03f
add Java APIs needed for WhatsApp MainActivity and ConversationActivity
2024-10-03 15:57:44 +02:00
Julian Winkler
3e7fdac663
add more Java APIs needed for OctoDroid
2024-08-13 21:45:53 +02:00
Julian Winkler
e3c0931714
prevent reference cycles between Java and native objects
2024-08-02 17:02:53 +02:00
Julian Winkler
3c5a21357d
multiple additions and fixes for the Java APIs
...
Stuff needed for WhatsApp support
2024-08-01 19:57:12 +00:00
Mis012
df074bd2b4
api-impl: add misc stubs/impls
2024-06-22 14:22:37 +02:00
Julian Winkler
bb50bbfa91
add lots of java APIs needed for Whatsapp
2024-06-16 08:45:31 +02:00
Mis012
81797c2667
api-impl: add misc stubs/impls
2024-06-13 21:00:06 +02:00
Julian Winkler
cd34ef4d5a
stub TextView.getCompoundDrawables()
2024-06-02 08:22:34 +02:00
Nikita Travkin
e1f79dc3a9
android: Support Unity text input dialog
2024-05-19 14:20:00 +05: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
2f4cd3917f
implement some APIs needed for OctoDroid
2024-04-09 18:19:13 +02:00
Julian Winkler
494605932c
implement more APIs
2024-03-22 21:02:22 +01:00
Julian Winkler
276b5ca7ef
add more APIs needed for NewPipe
2024-03-17 20:02:50 +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
c430344bd7
TextView: implement more ways to obtain textColor, textSize; misc cleanup
...
also added a try/catch block to avoid regression
2024-02-28 01:49:23 +01:00
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
77403170d2
TextView: relayout after setText()
...
This is necessary, when TextViews are recycled by RecyclerView
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
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
72a8b3a047
add more stubs
2023-11-12 12:16:23 +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
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
Julian Winkler
c830abc5f3
add more API stubs for NewPipe
2023-10-14 18:29:33 +02:00
Julian Winkler
f5fc993484
add APIs needed for non legacy NewPipe version
2023-10-14 18:29:33 +02:00
Julian Winkler
399cf87254
fix some NullPointerExceptions with Flower Finder test apk
2023-10-14 10:01:01 +00:00
Julian Winkler
37d9b13470
View.onMeasure: handle MEASURE_SPEC_AT_MOST properly
...
We decide between simple widgets which handles MEASURE_SPEC_AT_MOST the same way as
MEASURE_SPEC_EXACTLY, and complex widgets which handles MEASURE_SPEC_AT_MOST by measuring the content
2023-10-14 10:01:01 +00:00
Mis012
897a1e68a4
TextView: implement setTextColor
...
also uncomment Resources.getCachedColorStateList
2023-09-12 13:37:41 +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
1474d8d3e1
TextView: get textSize from attributes
2023-08-23 12:39:55 +02:00
Julian Winkler
960930a348
Add some stubs needed by android material library
2023-08-23 12:39:49 +02:00
Julian Winkler
4434de4a58
implement android.widget.EditText using GtkEntry
2023-08-23 11:47:05 +02:00
Julian Winkler
4d90002ec6
Simplify native interface of widget implementations
...
Makes it easier to overwrite behavior in subclasses. Have a fallback
implementation for ViewGroup.
Save some _GET_LONG_FIELD / _SET_LONG_FIELD calls by directly passing
the native pointers to and from native methods.
2023-08-22 15:53:09 +02:00
Julian Winkler
82744e9e5e
add bunch of new java APIs: mostly stubs or copied from AOSP
...
Many of these classes are only needed to be subclassed by androidx
support library, which is used in many android apps
2023-08-22 15:53:09 +02:00