-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
267 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
GaiaXAndroidDemo/app/src/main/assets/page_data_source/data/vertical-item.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"img": "https://t7.baidu.com/it/u=376303577,3502948048&fm=193&f=GIF", | ||
"title": "我是标题", | ||
"desc": "我是副标题" | ||
} |
29 changes: 29 additions & 0 deletions
29
GaiaXAndroidDemo/app/src/main/assets/page_data_source/templates/gx-vertical-item/index.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#gx-vertical-item { | ||
flex-direction: column; | ||
width: 100px; | ||
overflow: flex; | ||
} | ||
#cover-img { | ||
background-color: #f7f7f7; | ||
background-size: cover; | ||
aspect-ratio: 0.67; | ||
border-radius: 7px; | ||
width: 100%; | ||
} | ||
#title_group { | ||
width: 100%; | ||
flex-direction: column; | ||
} | ||
#title { | ||
color: #000000; | ||
font-size: 14px; | ||
margin-top: 9px; | ||
height: 21px; | ||
width: 100%; | ||
} | ||
#sub-title { | ||
color: #999999; | ||
font-size: 12px; | ||
height: 17px; | ||
width: 100%; | ||
} |
18 changes: 18 additions & 0 deletions
18
...oidDemo/app/src/main/assets/page_data_source/templates/gx-vertical-item/index.databinding
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"data":{ | ||
"cover-img":{ | ||
"value":"$img" | ||
}, | ||
"sub-title":{ | ||
"value":"$desc" | ||
}, | ||
"title":{ | ||
"value":"$title" | ||
}, | ||
"title_group":{ | ||
"accessibilityDesc": "'无障碍文案'", | ||
"accessibilityEnable": true, | ||
"accessibilityTraits": "'header'" | ||
} | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
GaiaXAndroidDemo/app/src/main/assets/page_data_source/templates/gx-vertical-item/index.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"id": "gx-vertical-item", | ||
"type": "gaia-template", | ||
"package": { | ||
"id": "gx-vertical-item", | ||
"version": "0.0.1", | ||
"modify-timestamp": "Mon Mar 18 2024 10:52:40 GMT+0800 (China Standard Time)", | ||
"constraint-size": { "width": 100, "height": 667, "zoom": 1 }, | ||
"dependencies": {} | ||
}, | ||
"layers": [ | ||
{ "id": "cover-img", "class": "cover-img", "type": "image" }, | ||
{ | ||
"id": "title_group", | ||
"type": "view", | ||
"layers": [ | ||
{ "id": "title", "class": "title", "type": "text" }, | ||
{ "id": "sub-title", "class": "sub-title", "type": "text" } | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.