Android仿新浪微博欢迎界面的实现
来源:互联网 发布:不知为不知是知也的知 编辑:程序博客网 时间:2024/05/23 18:31
activity先显示布局文件first.xml,然后调用一个线程推迟执行,来启动另一个activity,来实现欢迎界面,效果如图。
first.xml文件中用一个ImageView控件,全屏显示欢迎图片。
<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_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/image" />
</LinearLayout>
first.java
activity中设置全屏,并开一一个新的线程推迟执行。
public class first extends Activity{/** Called when the activity is first created. */@Overridepublic void onCreate(Bundle savedInstanceState){super.onCreate(savedInstanceState);// 无titlerequestWindowFeature(Window.FEATURE_NO_TITLE);// 全屏getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN);setContentView(R.layout.first);Handler handler = new Handler();handler.postDelayed(new firsthandler(), 3000);}class firsthandler implements Runnable{public void run(){// TODO Auto-generated method stubstartActivity(new Intent(first.this, login.class));first.this.finish();}}}
- Android仿新浪微博欢迎界面的实现
- android仿新浪引导界面
- android仿新浪引导界面 .
- android仿新浪引导界面
- android仿新浪引导界面
- Android 仿QQ、新浪相册的实现
- android Tab实现(仿新浪微博)
- Android仿平行空间炫酷欢迎界面实现
- 【Android】欢迎界面的实现
- Android仿人人客户端(v5.7.1)——欢迎和导引界面的编码实现
- 仿新浪微博返回顶部的js实现(jQuery)
- RadioGroup实现仿新浪微博的效果
- 仿twitter的欢迎界面的动画的实现
- android 仿新浪微博的弹性滑动
- Android TabHost实现新浪微博菜单界面
- 仿新浪微博加号弹出界面动画
- android仿新浪微博刷新列表
- Android仿新浪微博ListView效果
- {'id':'name','id1':'name1'}转换为json
- Java将Unix时间戳转换成普通日期型的函数
- list不支持通用的sort算法
- ios使用zxing遇到的问题
- cocos2d-x【小菜在学习】如何增加光晕效果以及CCSpriteFrameCache使用
- Android仿新浪微博欢迎界面的实现
- IOS开发之---static变量
- Qt中通过设置位图掩码生成异形控件
- Hdu 4517 小小明系列故事——游戏的烦恼
- 如何快速建立用户信任感
- ubuntu中打开终端的方法
- ASPxPivotGrid 属性
- static在oc中的使用
- C# - 函数参数的传递