안드로이드 로그인 화면

 

-xml코드-

 

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
       xmlns:app="http://schemas.android.com/apk/res-auto"
       xmlns:tools="http://schemas.android.com/tools"
       android:layout_width="match_parent"
       android:layout_height="match_parent"
       android:gravity="center"
       android:padding="40dp"
       android:orientation="vertical"
       tools:context="com.example.lhcgram.partythink19.MainActivity">

       <ImageView
              android:layout_width="90dp"
              android:layout_height="90dp"
              android:src="@drawable/login_logo"/>
       <TextView
              android:layout_marginBottom="30dp"
              android:textStyle="bold"
              android:textSize="30dp"
              android:textColor="#000000"
              android:text="PARTYTHINK"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content" />

       <TableLayout
              android:stretchColumns="*"
              android:layout_width="match_parent"
              android:layout_height="wrap_content">
              <TableRow>
                     <LinearLayout>
                     <TextView
                            android:textStyle="bold"
                            android:paddingRight="15dp"
                            android:text="E-mail"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content" />
                     <EditText
                            android:textSize="15dp"
                            android:inputType="textEmailAddress"
                            android:id="@+id/edtlogin_email"
                            android:layout_width="match_parent"
                            android:layout_height="wrap_content"
                            android:hint="이메일 주소를 입력해 주세요."/>
                     </LinearLayout>
              </TableRow>
              <TableRow>
                     <LinearLayout>
                     <TextView
                            android:textStyle="bold"
                            android:paddingRight="31dp"
                            android:text="PW"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content" />
                     <EditText
                            android:inputType="textPassword"
                            android:layout_marginBottom="15dp"
                            android:textSize="15dp"
                            android:id="@+id/edtlogin_passwd"
                            android:layout_width="match_parent"
                            android:layout_height="wrap_content"
                            android:hint="비밀번호를 입력해 주세요."/>
                     </LinearLayout>
              </TableRow>
              <TableRow>
                     <CheckBox
                            android:id="@+id/chremember"
                            android:gravity="center"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                           android:text="E-mail, PW 기억하기"
                           android:layout_marginBottom="5dp"/>
              </TableRow>
              <TableRow>
                     <Button
                            android:layout_marginBottom="5dp"
                            android:background="@drawable/button_setting"
                            android:textColor="#ffffff"
                            android:text="로그인"
                            android:id="@+id/btnlogin"
                            android:layout_width="match_parent"
                            android:layout_height="40dp"/>
              </TableRow>
              <TableRow>
                     <Button
                            android:layout_marginBottom="5dp"
                            android:background="@drawable/button_setting_sub"
                            android:textColor="#ffffff"
                            android:text="회원가입"
                            android:id="@+id/btnsignup"
                            android:layout_width="match_parent"
                            android:layout_height="40dp"/>
              </TableRow>

       </TableLayout>


       <LinearLayout
              android:layout_gravity="right"
              android:layout_width="wrap_content"
              android:layout_height="25dp"
              android:orientation="horizontal">
                     <Button
                            android:layout_marginRight="3dp"
                            android:background="@drawable/button_setting"
                            android:textColor="#ffffff"
                            android:id="@+id/btnsearchemail"
                            android:layout_gravity="right"
                            android:text="E-mail 찾기"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content" />
                     <Button
                            android:background="@drawable/button_setting"
                            android:textColor="#ffffff"
                            android:id="@+id/btnsearchpasswd"
                            android:layout_gravity="right"
                            android:text="PW 찾기"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content" />
       </LinearLayout>
</LinearLayout>