Skip to content

Instantly share code, notes, and snippets.

@cyc115
Created May 16, 2014 15:01
Show Gist options
  • Save cyc115/5217d7a50f29caff4d60 to your computer and use it in GitHub Desktop.
Save cyc115/5217d7a50f29caff4d60 to your computer and use it in GitHub Desktop.
simple card view
/**
* import com.google.android.glass.app.Card;
* extends Activity
*
**/
/**
* simple card view example
*/
protected void onCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
Card card = new Card(this);
card.setText("hello world from Card");
card.setFootnote("this is a footnote");
card.setTimestamp("timeStamp");
setContentView(card.getView());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment