feat(xml): add support scale, span, roller and bar

Also add some backward compatible API changes
This commit is contained in:
Gabor Kiss-Vamosi
2025-01-22 05:16:00 +08:00
parent b78a9b447a
commit a535063308
56 changed files with 1328 additions and 288 deletions

View File

@@ -1,24 +1,17 @@
<component>
<consts>
<color name="light_blue" value="0xbbbbff"/>
<color name="dark_blue" value="0x000080"/>
<color name="dark_blue" value="0x44F"/>
</consts>
<styles>
<style name="btn_style" bg_color="#dark_blue" bg_opa="150"/>
<style name="btn_pr_style" bg_opa="255"/>
<style name="red" bg_color="0x007" bg_opa="150"
text_color="0xf00" text_letter_space="10"/>
<style name="blue" bg_color="bbf"
text_color="0x008" text_font="lv_montserrat_48"/>
</styles>
<view extends="lv_obj" width="280" height="content" style_bg_color="#light_blue">
<my_card title="Card 1"
y="0"
btn_rel_style="btn_style"
btn_pr_style="btn_pr_style"/>
<my_card y="85"
bg_color="0xffaaaa"
action="Apply"
btn_rel_style="btn_style"
btn_pr_style="btn_pr_style"/>
<view extends="lv_obj" width="280" height="240" style_bg_color="#light_blue">
<lv_roller options="'a&0x30;b\nc\nd' infinite" selected="2 true" visible_row_count="3"/>
</view>
</component>