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. 【Android】Vibrator(震动模式)设置长短
  2. Android(安卓)Dex:com.android.dex.DexEx
  3. android8.0 反射Application 启动过程
  4. Android 6.0、7.0、8.0、9.0适配
  5. 【Android实战】Android中处理崩溃异常
  6. Android -- 图片画画板(canvas、paint、bi
  7. Android中binderDied()以及"Unknown bind
  8. Android之canvas详解
  9. android radiobutton选中字体颜色改变的
  10. Android将assets文件复制到sd卡上