Frage

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)?

War es hilfreich?

Lösung

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.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top