大作业 Android高仿微信(1部分)

本文介绍了Android平台下高仿微信应用的开发过程,包括欢迎界面的创建与登录界面的实现,特别是登录界面中实现的左滑查看图片的交互功能。
摘要由CSDN通过智能技术生成

1 欢迎界面的实现

Appstart.xml

<?xml version="1.0" encoding="utf-8"?>
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:background="@drawable/welcome" >

</LinearLayout>

Appstart.java
package cn.buaa.myweixin;
import android.os.Bundle;
import android.os.Handler;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.WindowManager;
 
public class Appstart extends Activity{
 
  @Override
  public void onCreate(Bundle savedInstanceState){
     // TODO Auto-generated methodstub
     super.onCreate(savedInstanceState);   
     setContentView(R.layout.appstart);
    
  new Handler().postDelayed(newRunnable(){
     @Override
     public void run(){
         Intent intent = new Intent(Appstart.this,Welcome.class);         
         startActivity(intent);         
         Appstart.this.finish();
     }
  }, 1000);
   }
}



2实现密码登录界面


Login.xml
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:background="#eee"
    android:orientation="vertical" 
    android:gravity="center_horizontal">
    <RelativeLayout 
        android:id
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值