Question

I'm using GDK TimelineManager to insert a static card to the timeline, and I noticed that there's no just now or something like that displayed on the right footer.

What am I doing wrong? Is the time just for the Mirror API or am I missing something here?

Was it helpful?

Solution

This isn't possible as of XE12. The APIs you would need are not provided by GDK's static card API.

If this is something you'd like to see in a future release, request it in the Glass platform issue tracker

OTHER TIPS

if you already have a card setup and are looking for static time use java standard libraries to produce a time.

More on this here

Java code for getting current time

//card 
String time = new java.util.Date();
card1.setText("This card has a footer.");
card1.setFootnote(time);

With GDK API it is not possible.

However assuming that this is a view, not the card and if purpose pays the price the classic Android approach can be used. You can create a regular android view and put time wherever you like, just make sure it's right size, the size of the card. There is a way to have overlay view and put time on it in desired coords.

If the point is to have this as a card - then I am out of ideas.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top