package android_programmers_guide.HelloWorldImage;
import android.app.Activity;
import android.os.Bundle;
import android.widget.ImageView;
public class HelloWorldImage extends Activity {
/** Called when the activity is first created. */

@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
/**Hello World Image JFD*/
/**BEGIN */
/**Create the ImageView */
ImageView HelloWorldImageView = new ImageView(this);
/**Set the ImageView to helloworld.png */
HelloWorldImageView.setImageResource(S.drawable.hello);
/**Set the ContentView to the ImageView */
setContentView(HelloWorldImageView);
/**END */
}
}

更多相关文章

  1. 代码中设置drawableleft
  2. android 3.0 隐藏 系统标题栏
  3. Android开发中activity切换动画的实现
  4. Android(安卓)学习 笔记_05. 文件下载
  5. Android中直播视频技术探究之—摄像头Camera视频源数据采集解析
  6. 技术博客汇总
  7. android 2.3 wifi (一)
  8. AndRoid Notification的清空和修改
  9. Android中的Chronometer

随机推荐

  1. Andriod内核分析
  2. 了解Android和数据库连接
  3. [置顶] 安卓实现序列化之Parcelable接口
  4. shape的使用总结
  5. Android Phone设计介绍
  6. android面试题之六
  7. Android实现文件上传下载【xUtils工具实
  8. android 混合开发之与js交互
  9. Android(安卓)高手进阶教程(十三)之----A
  10. Android(安卓)的上下文菜单: Context Menu