회원가입 구현시 emailArea붉은색
310
hajin46
投稿した質問数 8
1
안녕하세요.
Firebase회원가입 구현 강의의 8:00 따라 하고 있습니다.
activity_join.xml에서 아이디 다 추가주었는데 이렇게 뜨네요

Unresolved reference: passwordArea2
private lateinit var auth: FirebaseAuth
private lateinit var binding: ActivityIntroBinding
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
auth = Firebase.auth
//setContentView(R.layout.activity_join)
binding = DataBindingUtil.setContentView(this, R.layout.activity_join)
binding.joinBtn.setOnClickListener {
val email = binding.emailArea.text.toString()
val password1 = binding.passwordArea1.text.toString()
val password2 = binding.passwordArea2.text.toString()
// 저기 값이 비어있는지 확인
if (email.isEmpty()){
Toast.makeText(this, "이메일을 입력해주세요", Toast.LENGTH_LONG).show()
}
if(password1.isEmpty()){
Toast.makeText(this, "password1을 입력해주세요", Toast.LENGTH_LONG).show()
}
if(password2.isEmpty()){
Toast.makeText(this, "password2을 입력해주세요", Toast.LENGTH_LONG).show()
}
if (!password1.equals(password2)){
Toast.makeText(this, "비밀번호을 똑같이 입력해주세요", Toast.LENGTH_LONG).show()
}
}
}
android
kotlin
firebase
回答 3
0
<?xml version="1.0" encoding="utf-8"?>
<layout>
<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"
tools:context=".auth.JoinActivity"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="150dp"
android:background="@color/maincolor">
<TextView
android:layout_width="match_parent"
android:layout_height="50dp"
android:gravity="center"
android:text="회원가입"
android:textColor="#000000"
android:textSize="20sp"
android:textStyle="bold" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="50dp"
android:orientation="vertical">
<!--이메일 입력받기 -->
<EditText
android:id="@+id/emailArea"
android:hint="email"
android:layout_width="match_parent"
android:layout_height="50dp"
style="@style/AuthEditText"/>
<!--아래 선 만들기-->
<LinearLayout
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_width="match_parent"
android:layout_height="0.5dp"
android:background="#999999" />
<!--password 입력받기 -->
<EditText
android:id="@+id/passwordArea1"
android:hint="password"
android:layout_width="match_parent"
android:layout_height="50dp"
android:inputType="textPassword"
style="@style/AuthEditText"/>
<!--아래 선 만들기-->
<LinearLayout
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_width="match_parent"
android:layout_height="0.5dp"
android:background="#999999" />
<!--password check -->
<EditText
android:id="@+id/passwordArea2"
android:hint="password check"
android:layout_width="match_parent"
android:layout_height="50dp"
android:inputType="textPassword"
style="@style/AuthEditText"/>
<!--아래 선 만들기-->
<LinearLayout
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_width="match_parent"
android:layout_height="0.5dp"
android:background="#999999" />
<Button
android:id="@+id/joinBtn"
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_margin="20dp"
android:text="회원가입하기"
android:background="@drawable/background_yellow"
/>
</LinearLayout>
</LinearLayout>
</layout>
이미지가 기본이미지인지 확인
0
131
1
NavController error 발생
0
140
1
fragment 생성하고 메인에서 불러왔는데 안뜹니다.
0
139
2
67강 댓글
0
95
2
7강 데이터바인딩 에러
0
112
2
Firebase 스토리지 유료화 문제
1
292
2
게시글 이미지가 파이어베이스에 저장되지 않습니다.
0
180
2
AVD 갤러리에 이미지 저장 안되는 문제
0
238
2
이미지 받아오는 방법?
0
202
2
회원탈퇴 기능을 추가하려고 합니다.
0
186
2
상태바 질문 드립니다.
0
109
1
섹션2 인트로 페이지 꾸미기 질문 드립니다.
0
108
1
게시판 글을 길게 쓸경우
0
123
2
로그인 로그아웃
0
175
2
갤럭시 연결시 게시판에 업로드한 사진이 보이지 않아요.
0
202
2
웹뷰 AVD 실행안됨
0
189
1
자막켜기가 안되요 ㅜ.ㅜ
1
185
1
리사이클러뷰, 그리드레이아웃 오류
0
185
2
리사이클러뷰 오류 해결 방법이 궁금합니다.
0
193
1
firebase 스마트폰으로 연결이 안되는데 원인이 있을까요
0
256
2
안드로이드 스튜디오 게시글 이미지 업로드 유무
0
217
1
firebase 설정 오류
0
302
2
홈 화면 커뮤니티
0
177
1
게시판 글 읽기
0
238
2

