Created
May 16, 2014 15:01
-
-
Save cyc115/5217d7a50f29caff4d60 to your computer and use it in GitHub Desktop.
simple card view
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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