如何解决列级自适应卡片垂直内容对齐
你好自适应卡片安卓社区! 我一直在尝试将一些文本块与列的底部对齐。但是将 VerticalContentAlignment: bottom 设置为列似乎不起作用。我确实注意到在卡片级别设置 VerticalContentAlignment 确实有效,但这会导致每个元素按预期对齐到底部。 有没有办法在单列中将对齐设置为底部?
我在adaptivecards-android 2.8.0-beta01 和2.7.0 上进行了测试
这是我使用的json。
{
"type": "AdaptiveCard","$schema": "http://adaptivecards.io/schemas/adaptive-card.json","version": "1.3","ids": "603a599e-fc7c-4aa5-8995-b3801fff993a","body": [{
"type": "Container","items": [{
"type": "ColumnSet","height": "stretch","columns": [{
"type": "Column","width": "8px","comment": "leading spacer"
},{
"type": "Column","items": [{
"type": "TextBlock","text": "Test"
},{
"type": "TextBlock","text": "Test","spacing": "none"
},{
"type": "Container","minHeight": "100px"
},{
"type": "ColumnSet","columns": [{
"type": "Column","verticalContentAlignment": "bottom","width": "auto","items": [{
"type": "TextBlock","text": "Text that needs to go to bottom"
},{
"type": "TextBlock","text": "Text that needs to go to bottom"
}]
},{
"type": "Column","comment": "spacer so heart button appears at right"
},"text": "Test1"
}]
},"text": "Test"
}]
},"comment": "spacer for right side of heart"
}
]
},"minHeight": "7px"
}
]
}
]
}]
}]
}
非常感谢任何帮助!!! 谢谢
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。