Page 123 - MDP2022-2
P. 123

{
                                            Intent  intent  =  new  Intent(SubActivity.this  ,popup.class);
                                            intent.putExtra("data","아이디  중복입니다.\n다른  아이디를  사용해주세요");
                                            startActivityForResult(intent,  1);
                                    }
                                    if(result.equals("blank"))  {
                                            Intent  intent  =  new  Intent(SubActivity.this  ,popup.class);
                                            intent.putExtra("data","모든  입력을  채워주세요!");
                                            startActivityForResult(intent,  1);
                                    }
                                    if(result.equals("same")){
                                            notsameid.setVisibility(View.INVISIBLE);
                                            sameid.setVisibility(View.VISIBLE);
                                    }
                                    if(result.equals("notsame")){
                                            sameid.setVisibility(View.INVISIBLE);
                                            notsameid.setVisibility(View.VISIBLE);
                                    }
                                    if(result.equals("non")){
                                            sameid.setVisibility(View.INVISIBLE);
                                            notsameid.setVisibility(View.INVISIBLE);
                                    }
                            }
                    }
            }
            회원가입  화면(xml)
            <?xml  version="1.0"  encoding="utf-8"?>
            <androidx.constraintlayout.widget.ConstraintLayout  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"
                    tools:context=".SubActivity">


                    <EditText
                            android:id="@+id/phone"
                            android:layout_width="480dp"
                            android:layout_height="80dp"
                            android:layout_marginTop="70dp"
                            android:layout_weight="1"
                            android:ems="10"
                            android:hint="번호"
                            android:inputType="none|textPersonName"
                            app:layout_constraintEnd_toEndOf="@+id/name"
   118   119   120   121   122   123   124   125   126   127   128