【No1.】开始我的CSDN博客之路
2014-07-16 16:12
232 查看
I'm Android Development
activity_main.xml
我们是攻城狮、我们是程序猿、我们为自己代盐!
目前在Android开发道路上慢慢前进~HelloWorld 第一个android程序
MainActivity.javaimport android.os.Bundle; import android.app.Activity; import android.view.Menu; public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.main, menu); return true; } }
activity_main.xml
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:paddingBottom="@dimen/activity_vertical_margin" android:paddingLeft="@dimen/activity_horizontal_margin" android:paddingRight="@dimen/activity_horizontal_margin" android:paddingTop="@dimen/activity_vertical_margin" tools:context=".MainActivity" > <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/hello_world" /> </RelativeLayout>
相关文章推荐
- 开始在CSDN上面写自己的博客了
- 放弃csdn,开始启用自己搭建的博客
- 开始博客之路,记录word代码之路
- 在CSDN开始写博客
- 开始用CSDN记录自己的学习之路,自己的成长之路!!!
- 开始我的Csdn博客
- 今天开始用CSDN博客~
- 毕业快一年了,从CSDN的博客开始记录一下工作的轨迹。
- 决定开始在CSDN写博客
- 在CSDN博客开始复习资料
- 基于libevent, libuv和android Looper不断演进socket编程 - 走向架构师之路 - 博客频道 - CSDN.NET
- 写在博客之路开始之前
- 开始csdn博客生涯啦
- 开始CSDN博客
- Ubuntu 出现apt-get: Package has no installation candidate问题 - 刘毅枫的博客 - 博客频道 - CSDN.NET
- 2017年8月19日,我的技术博客之路开始!
- 开始我的Csdn博客
- 2017.03.14,CS逍遥剑仙的CSDN博客开始同步更新
- 开始在CSDN上写自己的博客
- CSDN的博文之路的开始