DivKit is an open source Server-Driven UI (SDUI) framework. SDUI is a an emerging technique that leverage the server to build the user interfaces of their mobile app
OTHER License
Published by peasemaker over 1 year ago
Published by peasemaker over 1 year ago
div-input
div-input
DivStorage
forwards IllegalStateExceptions to LoadDataResult
nowDivVideo
Added:
dict
variable typePublished by grechka62 over 1 year ago
Additions:
text_alignment_
properties for div-input
Additions:
disappear_actions
DivCustomContainerViewAdapter
with DivStatePath
propagation to implementationsFixes:
DivSelect
line heightAdditions:
fixed_length
mask for DivInput
margins
for separators in DivContainer
Added:
container
: space-between
, space-around
, space-evenly
font_family
property is now supported in the different components. Keep in mind, for this property to work, you need to provide a typefaceProvider
margins
for a container
separators are now supportedPublished by grechka62 over 1 year ago
Additions:
disappear_actions
dict
space-between
, space-around
, space-evenly
margins
Additions:
RenderScript
contextsFixes:
VariableController
potential memory leaksFixes:
DivInput
Additions:
disappear_actions
is now supportedvideo
componentPublished by grechka62 over 1 year ago
Additions:
pause_actions
and fatal_actions
to div-video
Changes:
stream
and video
source types in div-video
Additions:
DivVideo
Fixes & Changes:
DivCustomContainerViewAdapter
DivStorage
database on cards removingDivPlayer.Observer
Additions:
DivVideo
Updates:
rewriteTemplateVersions
Published by 4eb0da over 1 year ago
input
valdator
input
mask's raw_text_variable
into the base mask
Fixes:
Additions:
tabs
titlecurrency
mask for the input
Fixes:
select
sizes, paddings and other size-related propertiesselect
hint
show logic to match other platformsactions
without url
processing logic to match other platforms (previusly they was ignored as incorrect)input
cursor logic for the Safari (for the iOS in partucular)Published by Ceramic00 over 1 year ago
Additions:
div-video.json
to schemaAdditions:
z-order
modes for video-custom
Fixes:
Linear Layout
class in accessibility modefixed_length
input masksView.isLaidOut
Additions:
select
componentAdditions:
extensions
supportselect
componentinput
mask
for a text with a fixed number of charactersFixes:
url
change in the action
Published by Ceramic00 over 1 year ago
Additions:
Changes:
platforms
field in schemaAdditions:
Fixes & Changes:
Additions:
stretch
image scale typeFixes:
no_scale
image scale type should now work properlyChanges:
Published by vyaivanove over 1 year ago
Fixes & Changes:
platforms
field in schemaAdditions:
Fixes & Changes:
Additions:
Fixes & Changes:
Fixes:
aspect
property in the container
should work better in combination with the height
propertyPublished by ttokarev over 1 year ago
Breaking changes:
Additions:
Fixes & Changes:
Additions:
Fixes & Changes:
Breaking changes:
setVariable
/ GetVariable
methods have been removed (these methods were deprecated long time ago before opensource, in web version 1.11.0)BigInt
internally if it is supported by the current platform. This also means that variable methods such as subscribe
can now return bigint
values instead of number
(and accept such values in json). integer
values in expressions are now limited to 64 bits instead of 32, and the minimum/maximum value for integer
variables has been changed. Note that outside of expressions, DivKit restricts values to 32-bit integers, as was the case in previous versions. Also note that the js builtin methods, such as JSON.parse
, return a simple number
, so these values may lose accuracy outside the logic of DivKit. Make sure that your values are in the range -2^53 — 2^53
or a custom json parsing function is usedPublished by ttokarev over 1 year ago
Additions:
Fixes:
Published by lunarstill over 1 year ago
Additions:
Fixes:
DivGallery
overflow
parameter support in div-action
for DivPager
navigation.DivContainer
.MetalImageView
images rendering.Additions:
toUrl
/ toColor
functionsPublished by lunarstill over 1 year ago
Additions:
Fixes and changes:
selection
input method into DivInput
.externalLogger
.DivImage
layout trait check.Additions:
datetime
componentsgetStringValue
, getIntegerValue
, etcFixes and changes:
timers
ticks should now be more accurate and reliable. Time intervals would correct time error, there is also an extra tick before end the duration if the ticks doesn't trigger in timevisibility_action
actions will now evaluate expressions on the trigger, and not when the creating the componentPublished by villanellex2 over 1 year ago
Added:
aspect ratio
in overlap containerFixes:
timers
in Div2View inside RecyclerViewellipsize
containing image spanfocus
when accessibility
is turned ontransition_animations
in state layoutAdded:
images
support for ellipsis
in DivTextFixes:
Added:
aspect
support for container
(aspect-ratio
css property support is required!)Fixes:
gallery
after destroywrap_content
sizes with constrained
in grid
Published by vastausf over 1 year ago
indicator
attach to specified pager
gallery
DecodeBase64ImageTask
DivIndicator
DivContainer
layoutPublished by grechka62 over 1 year ago
max_size
propertywrap_content
size with constraintsPublished by grechka62 over 1 year ago
padStart
/padEnd
functionsAdded:
indicator
can now be rendered in two ways, placement
field is now supportedindicator
can now have a border inside every point, shape objects have been updated to support background_color
and border
properties. Several fields in indicator
are now deprecated, including space_between_centers
, inactive_item_color
, active_item_color
, shape
and active_item_size
. Shape objects support in slider
was also updatedFixed:
padStart
/ padEnd
now will work properly with an empty pad_str
argumentwidth
match_parent
should work more predictable in rare casesseparator
and line_separator
in container
now will not block clicks and other events on component and it's descendantsconstrained
size logic in rare casesPublished by grechka62 over 1 year ago
div-shape-base
to div-circle-shape
div-indicator
style based on div-rounded-rectangle-shape
ShimmerImagePreviewExtension
aspect
size support in DivContainer
DivActionURLHandler.UpdateCardAction
refactoringFixed:
image
preview size and filters supportgallery
arrows on the desktop should now appear fasterPublished by peasemaker over 1 year ago
aspect
in div-containerbackground_color
and stroke
in div-rounded-rectangle-shapeFixes:
tint_color
update for SafariPublished by lunarstill almost 2 years ago
Div2View
padStart
, padEnd
functionsDivIndicator
supportset-state
actionDivSlider
thumbsnowLocal
functionAdded:
min_size
/ max_size
for the wrap_content
sizepadStart
/ padEnd
Changed:
wrap_content
size for the galleries
on the main axistimers
start with incorrect values