app 启动页面_html/css_WEB-ITnose
标签: Android
[1].[代码] [Java]代码 跳至 [1] [2]
?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
public class SplashRootLayout extends LinearLayout {
public SplashRootLayout(Context context, AttributeSet attrs) { super (context, attrs); }
public SplashRootLayout(Context context) { super (context); }
@Override protected void onDraw(Canvas canvas) { super .onDraw(canvas); postDelayed(splashRunnable, 3000 ); }
private Runnable splashRunnable = new Runnable() { @Override public void run() { ViewGroup p = (ViewGroup) getParent(); if (p != null ) { p.removeView(SplashRootLayout. this ); } if (mSplashDismissListener != null ) { mSplashDismissListener.onSplashDimiss(SplashRootLayout. this ); } } };
public interface OnSplashDismissListener { public void onSplashDimiss(SplashRootLayout v); }
private OnSplashDismissListener mSplashDismissListener;
public void setOnSpalshDismissListener(OnSplashDismissListener l) { mSplashDismissListener = l; } } |
[2].[代码] [Java]代码 跳至 [1] [2]
?
1 2 3 4 5 6 7 8 9 10 11 |
android:id= "@+id/splash_view" android:layout_width= "match_parent" android:layout_height= "match_parent" android:background= "@color/white" android:gravity= "center_horizontal" android:orientation= "vertical" > |
上一篇: strtotime 对待数组怎么处理
下一篇: Django项目部署
推荐阅读
-
MUI框架开发HTML5手机APP(二)--页面跳转传值&底部选项卡切换
-
html5页面中打开本地app,没有跳转下载页面的解决方案
-
HTML5页面音视频在微信和app下自动播放的实现方法
-
浅谈Html5页面打开app的一些思考
-
HTML5页面中尝试调起APP功能
-
京东在html5页面中打开本地app的解决方案
-
html5启动原生APP总结
-
如何在安卓APP中嵌入HTML页面
-
iframe页面修改parent页面的隐藏input部件value值,不能触发change事件。_html/css_WEB-ITnose
-
jinja2模版生成页面时会产生大量空行和空格,如何移除?_html/css_WEB-ITnose