hello world
来源:互联网 发布:南京市网络问政平台 编辑:程序博客网 时间:2024/06/06 12:52
this is my first application of android.
here is the source of the hello world ?
ok .that is begin :
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_activity01); TextView mytest=(TextView) findViewById(R.id.buttion_01); mytest.setText("nihao"); }
evey time why you want get a TextView or other View object,you need setContentView first
0 0
- Hello World!【Hello World】
- Hello, world!
- Hello World!
- Hello world!
- Hello World!
- Hello World!
- hello world!
- Hello World !
- Hello,World!
- Hello World!
- Hello world!
- Hello World!
- Hello World
- Hello World
- Hello world
- Hello World!
- Hello world
- Hello World !
- NSString NSMutableString NSArray NSMutableArray copy和mutablecopy方法
- fork与vfork
- hdu 1097 2014731 A Hard Puzzle
- [算法浅析] 如何在O(1)的时间里删除单链表的结点
- 推测Oracle GoldenGate(OGG)目的端 rep进程Checkpoint Lag的计算方法
- hello world
- 微信的尚方宝剑——互联网闭环
- PHP 5.3.0以上推荐使用mysqlnd驱动
- 【iOS开发技术】对象关联(objc_setAssociatedObject、objc_getAssociatedObject、objc_removeAssociatedObjects)
- 数星星~
- 对spark和scala的进一步学习
- 谷歌浏览器如何设置为无图模式
- 【iOS开发技术】将iOS6 原生Navigtaion和Tab 修改的接近iOS7的样式
- 用栈实现计算器