Android实现启动画面
来源:互联网 发布:linux c 系统启动时间 编辑:程序博客网 时间:2024/04/29 22:04
为后台准备资源做准备
XML布局文件:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_height="fill_parent" android:layout_width="fill_parent" android:orientation="vertical"><ImageView android:layout_height="fill_parent" android:layout_width="fill_parent" android:scaleType="fitCenter" android:src="@drawable/splash"></ImageView></LinearLayout>
Activity:
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.splash); Handler x = new Handler(); x.postDelayed(new splashhandler(), 2000); } class splashhandler implements Runnable{ public void run() { startActivity(new Intent(getApplication(),MainActivity.class)); SplashActivity.this.finish(); } }
摘自:http://www.cnblogs.com/dawei/archive/2010/04/29/1724044.html
- Android启动画面实现
- Android启动画面实现
- Android启动画面实现
- Android实现启动画面
- Android启动画面实现
- Android启动画面实现
- Android启动画面实现
- Android启动画面实现
- Android启动画面实现
- Android启动画面实现
- Android启动画面实现
- Android启动画面实现
- Android启动画面实现
- Android启动画面实现
- Android启动画面实现
- Android启动画面的实现
- android程序启动画面实现
- Android应用启动画面实现
- openerp对象字段定义的详解
- android下搭建ndk环境以及hellojni
- 设置chart饼图中显示的线,以及显示百分比
- 一个简单的Android生成二维码Demo。
- How to install NVidia driver in Fedora 13
- Android实现启动画面
- 算法导论 2-1
- 关于strut1 对比 servlet 的内部原理及相关实现方案
- Xcode and iOS Simulator issue report: got 'Thread 1: Signal SIGABRT' for single view application
- ObjectiveC新手推荐《Objective-C开发范例代码大全》
- 浅谈程序员的三个出路
- 时间相关的控件
- hdu-1874
- 如何從 OCUnit 結果產生 Jenkins 看的懂的 (junit) 報表