編輯:關於android開發
xml界面布局代碼:
1 <?xml version="1.0" encoding="utf-8"?> 2 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 3 xmlns:tools="http://schemas.android.com/tools" 4 android:layout_width="match_parent" 5 android:layout_height="match_parent" 6 android:background="@drawable/bg_start" 7 tools:context=".MainActivity" > 8 9 <TextView 10 android:id="@+id/version" 11 android:layout_width="wrap_content" 12 android:layout_height="wrap_content" 13 android:layout_alignParentBottom="true" 14 android:layout_centerHorizontal="true" 15 android:layout_marginBottom="20dp" 16 android:textColor="#ffffff" /> 17 18 </RelativeLayout>
代碼實現:
1 package com.gzcivil.ui;
2
3 import android.app.Activity;
4 import android.os.Bundle;
5 import android.os.Handler;
6 import android.widget.TextView;
7
8 import com.gzcivil.R;
9 import com.gzcivil.ui.login.ActivityLogin;
10 import com.gzcivil.utils.CommonUtil;
11 import com.gzcivil.utils.SysUtils;
12 import com.gzcivil.utils.Utils;
13
14 public class Activity_Start extends Activity {
15 private Handler handler = new Handler();
16 private TextView mVersion;
17
18 @Override
19 protected void onCreate(Bundle savedInstanceState) {
20 super.onCreate(savedInstanceState);
21 setContentView(R.layout.activity_start);
22
23 SysUtils.IS_LOCK = false;
24 mVersion = (TextView) this.findViewById(R.id.version);
25 mVersion.setText("當前版本:V" + CommonUtil.getVersion(this));
26 handler.postDelayed(new Runnable() {
27 @Override
28 public void run() {
29 Utils.pushLeftIn(Activity_Start.this, ActivityLogin.class, null);
30 finish();
31 }
32 }, 3000);
33
34 }
35
36 }
Linux0.11內核--內存管理之1.初始化,linux0.11內存管理
Linux0.11內核--內存管理之1.初始化,linux0.11內存管理【版權所有,轉載請注明出處。出處:http://www.cnblogs.com/joey-hua
注冊界面設計及實現之(二)注冊業務邏輯的實現,界面設計業務
注冊界面設計及實現之(二)注冊業務邏輯的實現,界面設計業務業務流程圖: 1 //Register_Activity.java 2 3 private boo
RecyclerView,androidrecyclerview
RecyclerView,androidrecyclerview1.簡介 RecyclerView是一種新的視圖組,目標是為任何基於適配器的視圖提供相似的渲染方式。它
HTML5的五種客戶端離線存儲方案
HTML5的五種客戶端離線存儲方案最近折騰HTML5游戲需要離線存儲功能,便把目前可用的幾種HTML5存儲方式研究了下,基於HT for Web寫了個綜合的實例,分別利用