当前位置 博文首页 > 程序员A的博客:简单安卓QQ登录界面

    程序员A的博客:简单安卓QQ登录界面

    作者:[db:作者] 时间:2021-06-14 12:39

    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:gravity="center_horizontal"     //控件居中显示
        android:paddingLeft="10dp"         //控件离左右10dp
        android:paddingRight="10dp"
        android:orientation="vertical" >   
    
    
        <ImageView
            android:layout_width="200dip"
            android:layout_height="200dip"
            android:src="@drawable/ic_launcher" />
    
    
        <EditText
            android:id="@+id/et_qq"
            android:inputType="text"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:hint="请输入qq号码" />
    
    
         <EditText
             android:id="@+id/et_pwd"
             android:layout_width="match_parent"
             android:layout_height="wrap_content"
             android:hint="请输入密码"
             android:inputType="textPassword" />
         
         <CheckBox 
             android:id="@+id/cb_remember"
               android:layout_width="match_parent"
             android:layout_height="wrap_content"
             android:text="记住密码"
             />
    
    
         <Button
             android:onClick="login" 
             android:layout_width="match_parent"
             android:layout_height="wrap_content"
             android:text="登陆"
             
             />
    </LinearLayout>