Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Android] Container item cannot get rendered successfully #2308

Closed
xinguohenan opened this issue Jan 17, 2019 · 1 comment
Closed

[Android] Container item cannot get rendered successfully #2308

xinguohenan opened this issue Jan 17, 2019 · 1 comment
Assignees

Comments

@xinguohenan
Copy link
Member

Platform

What platform is your issue or question related to? (Delete other platforms).

  • Android

Author or host

Version of SDK

Latest master branch code.

Issue

Container item cannot get rendered successfully.
Here is the payload that cannot get rendered.

{
	"type": "AdaptiveCard",
	"version": "1.0",
	"body": [{
		"type": "Container",
		"height": "stretch",
		"items": [{
			"type": "TextBlock",
			"size": "small",
			"isSubtle": true,
			"text": "Wuzhong District, Jiangsu  ·  December 20, 1:45 PM"
		},
		{
			"type": "Container",
			"height": "stretch",
			"items": [],
			"spacing": "none",
			"separation": "none"
		},
		{
			"type": "ColumnSet",
			"columns": [{
				"type": "Column",
				"width": "auto",
				"items": [{
					"type": "Image",
					"size": "large",
					"url": "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 32 32' enable-background='new 0 0 32 32' xml:space='preserve' id='' focusable='false' role='presentation' tabindex='-1' aria-hidden='true'%3e%3ctitle%3e%3c/title%3e%3cpath class='hcFill1 hcStroke1 hpFill1 hpStroke1 thFill1 thStroke1' fill='%23FFFFFF' stroke='%23666666' stroke-width='1.5' stroke-linecap='round' stroke-miterlimit='10' d='M8.058 15.131 c1.069 0 2.072 0.279 2.944 0.766c1.235-3.017 4.196-5.143 7.657-5.143c0.129 0 0.255 0.011 0.382 0.017 C19.063 10.378 19 10.061 19 10.061c-0.535-2.798-2.991-4.904-5.941-4.906c-2.706 0.001-4.969 1.783-5.738 4.227 C6.9 9.262 6.454 9.193 5.991 9.194c-2.783 0.001-5.039 2.256-5.039 5.039c-0.001 1.466 0.634 2.788 1.635 3.698 c0 0 0.133 0.125 0.238 0.215C3.875 16.345 5.823 15.131 8.058 15.131z' /%3e%3cpath class='hcFill1 hcStroke1 hpFill1 hpStroke1 thFill1 thStroke1' fill='%23FFFFFF' stroke='%23666666' stroke-width='1.5' stroke-linecap='round' stroke-miterlimit='10' d='M26.746 17.281 c-0.776-3.609-3.906-6.337-7.704-6.511c-0.127-0.006-0.253-0.017-0.382-0.017c-3.461 0-6.422 2.127-7.657 5.143 c-0.872-0.486-1.875-0.766-2.944-0.766c-2.235 0-4.182 1.214-5.232 3.015C2.304 19.041 2 20.078 2 21.189 c0 3.346 2.712 6.058 6.058 6.058l17.968-0.01c2.75-0.02 4.974-2.254 4.974-5.008C31 19.719 29.153 17.647 26.746 17.281z' /%3e%3c/svg%3e",
					"horizontalAlignment": "center"
				}],
				"spacing": "small"
			},
			{
				"type": "Column",
				"width": "auto",
				"items": [{
					"type": "ColumnSet",
					"columns": [{
						"type": "Column",
						"width": "auto",
						"items": [{
							"type": "TextBlock",
							"size": "extraLarge",
							"text": "55",
							"textStyle": "display"
						}]
					},
					{
						"type": "Column",
						"width": "auto",
						"items": [{
							"type": "TextBlock",
							"weight": "bolder",
							"text": "°F"
						}]
					},
					{
						"type": "Column",
						"width": "auto",
						"items": [{
							"type": "Container",
							"height": "stretch",
							"items": []
						},
						{
							"type": "TextBlock",
							"text": "Hi 62",
							"spacing": "small"
						},
						{
							"type": "TextBlock",
							"text": "Lo 52",
							"spacing": "small"
						},
						{
							"type": "Container",
							"height": "stretch",
							"items": []
						}],
						"spacing": "medium"
					}],
					"spacing": "small"
				},
				{
					"type": "TextBlock",
					"isSubtle": true,
					"text": "Mostly cloudy",
					"spacing": "none",
					"separation": "none"
				}],
				"spacing": "medium"
			}],
			"spacing": "none",
			"separation": "none"
		},
		{
			"type": "Container",
			"height": "stretch",
			"items": [],
			"spacing": "none",
			"separation": "none"
		}],
		"selectAction": {
			"type": "Action.OpenUrl",
			"url": "https://www.bing.com/search?q=Weather+tomorrow.&elv=AXXfrEiqqD9r3GuelwApuloUjHyFtG*jRHUEN1J!lDzyxS3CEdUAIYnNotqQHPABl7TErz3104SwnKzwI!*ez90P5cb80wCJ9iSToobTED4n",
			"title": "Open In Bing"
		}
	}],
	"-ms-attribution": {
		"text": "Bing",
		"icon": "https://www.bing.com/rs/n/2P/ic/ef0cff20/d50405d4.png"
	},
	"-ms-source": "Bing",
	"-ms-height": "fixed"
}
@xinguohenan
Copy link
Member Author

I submitted a PR to fix this issue.
#2309

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants