waleedAhmad1 / google-glass-api

Automatically exported from code.google.com/p/google-glass-api
0 stars 0 forks source link

GDK Card.ImageLayout.FULL does not match docs #574

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Create a card with Card.ImageLayout.FULL as described in docs 
https://developers.google.com/glass/develop/gdk/ui-widgets

What is the expected output? What do you see instead?

Text does not word wrap and appears at bottom compared to the documentation 
screenshot 
https://developers.google.com/glass/images/glass-screens/card-with-bg.png 

What version of the product are you using? On what operating system?
XE18.3

Please provide any additional information below.

See attached screenshot.

Original issue reported on code.google.com by kevinlin...@gmail.com on 16 Jul 2014 at 4:54

Attachments:

GoogleCodeExporter commented 9 years ago
Forgot the code to reproduce the problem, forgive me.

// Create a card with a full-screen background image.
Card card2 = new Card(this);
card2.setText("This card does not have a puppy background image, and the text 
overflows.");
card2.setFootnote("This is unfortunate.");
card2.setImageLayout(Card.ImageLayout.FULL);
card2.addImage(R.drawable.ic_launcher);
View card2View = card2.getView();
setContentView(card2View); 

Original comment by kevinlin...@gmail.com on 16 Jul 2014 at 5:00