Вопрос

as seen here - https://developers.google.com/glass/design/style there should be native implementation of Card "Author and content" but I cannot find how to use it.

In documentation you can change layout (a bit) by

setImageLayout(Card.ImageLayout imageLayout)

but this is minor change.

How to get that "Author and content" card style (or any other without writing own Activity)?

Это было полезно?

Решение

You have to write your owns layouts for that kind of cards. You should follow the style of https://developers.google.com/glass/design/style .

In https://developers.google.com/glass/develop/gdk/ui-widgets#xml_layouts you can find two .xml layouts that maybe help you.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top