登录百合网

来源:互联网 发布:java soapenv svc 编辑:程序博客网 时间:2024/04/29 00:09
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:padding="15dp"
    tools:context="com.qf.login.MainActivity" >


    <TextView
        android:id="@+id/title_textView"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerHorizontal="true"
        android:textSize="18sp"
        android:textColor="#FF69B4"
        android:text="欢迎登陆百合网" />
    
    <TextView 
        android:id="@+id/name_textView"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="昵称:"
        android:layout_marginTop="20dp"
        android:layout_below="@id/title_textView"
        />
    
    <EditText 
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_toRightOf="@id/name_textView"
        android:layout_alignBaseline="@id/name_textView"
        />
   
    <TextView 
        android:id="@+id/pwd_textView"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="密码:"
        android:layout_below="@id/name_textView"
        android:layout_marginTop="20dp"
        />
    
    <EditText 
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_toRightOf="@id/pwd_textView"
        android:layout_alignBaseline="@id/pwd_textView"
        android:inputType="textPassword"
        />
    
    <Button 
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="确认登陆"
        android:layout_below="@id/pwd_textView"
        android:layout_marginTop="20dp"
        android:layout_centerHorizontal="true"
        />


</RelativeLayout>




<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical" >
    <LinearLayout 
        android:weightSum="1.2"
        android:layout_width="match_parent"
        android:layout_height="70dp"
        android:background="#44ff0000"
        android:gravity="center_vertical"
        android:orientation="horizontal">
        <Button 
            android:layout_weight="0.3"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="取消"
            android:background="#88FF0000"
            android:layout_marginLeft="15dp"/>
        <TextView
            android:layout_weight="0.6"
android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:gravity="center"
            android:textSize="18sp"
            android:text="百合网"/>
        <Button 
            android:layout_weight="0.3"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:background="#88FF0000"
            android:text="确定"
            android:layout_marginRight="15dp"/>
        
    </LinearLayout>
    <RelativeLayout 
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="10dp"
        android:padding="15dp">
        <TextView 
            android:id="@+id/name2_textView"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignBottom="@+id/name2_editText"
            android:text="昵称:"   />
        <EditText 
            android:id="@+id/name2_editText"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_toRightOf="@id/name2_textView"
            
            />
        
         <TextView 
            android:id="@+id/pwd2_textView"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignBottom="@+id/pwd2_editText"
            android:text="密码:"   />
        <EditText 
            android:id="@+id/pwd2_editText"
            android:layout_width="match_parent"
            android:layout_below="@id/name2_editText"
            android:layout_height="wrap_content"
            android:layout_toRightOf="@id/pwd2_textView"
            android:inputType="textPassword"
            />
    </RelativeLayout>
    <TextView 
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="忘记密码?"
        android:textSize="12sp"
        android:textColor="#990000ff"
        android:layout_marginTop="15dp"
        android:layout_marginLeft="15dp"/>


</LinearLayout>

0 0
原创粉丝点击