회원가입
- 소셜 로그인과 같은 크기의 버튼 추가
This commit is contained in:
		| @@ -35,8 +35,8 @@ android { | |||||||
|         applicationId "kr.co.vividnext.sodalive" |         applicationId "kr.co.vividnext.sodalive" | ||||||
|         minSdk 23 |         minSdk 23 | ||||||
|         targetSdk 34 |         targetSdk 34 | ||||||
|         versionCode 157 |         versionCode 158 | ||||||
|         versionName "1.33.0" |         versionName "1.34.0" | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     buildTypes { |     buildTypes { | ||||||
|   | |||||||
| @@ -95,20 +95,6 @@ class LoginActivity : BaseActivity<ActivityLoginBinding>(ActivityLoginBinding::i | |||||||
|             login() |             login() | ||||||
|         } |         } | ||||||
|  |  | ||||||
|         binding.tvSignUp.setOnClickListener { |  | ||||||
|             val nextIntent = Intent(applicationContext, SignUpActivity::class.java) |  | ||||||
|             val extras = intent.getBundleExtra(Constants.EXTRA_DATA) |  | ||||||
|                 ?: if (intent.extras != null) { |  | ||||||
|                     intent.extras |  | ||||||
|                 } else { |  | ||||||
|                     null |  | ||||||
|                 } |  | ||||||
|             if (extras != null) { |  | ||||||
|                 nextIntent.putExtra(Constants.EXTRA_DATA, extras) |  | ||||||
|             } |  | ||||||
|             startActivity(nextIntent) |  | ||||||
|         } |  | ||||||
|  |  | ||||||
|         binding.tvForgotPassword.setOnClickListener { |         binding.tvForgotPassword.setOnClickListener { | ||||||
|             startActivity( |             startActivity( | ||||||
|                 Intent( |                 Intent( | ||||||
| @@ -118,6 +104,9 @@ class LoginActivity : BaseActivity<ActivityLoginBinding>(ActivityLoginBinding::i | |||||||
|             ) |             ) | ||||||
|         } |         } | ||||||
|  |  | ||||||
|  |         binding.tvSignUp.setOnClickListener { startSignUp() } | ||||||
|  |         binding.ivSignUpEmail.setOnClickListener { startSignUp() } | ||||||
|  |  | ||||||
|         binding.ivLoginGoogle.setOnClickListener { |         binding.ivLoginGoogle.setOnClickListener { | ||||||
|             loadingDialog.show(width = screenWidth) |             loadingDialog.show(width = screenWidth) | ||||||
|             val credentialManager = CredentialManager.create(this) |             val credentialManager = CredentialManager.create(this) | ||||||
| @@ -145,7 +134,7 @@ class LoginActivity : BaseActivity<ActivityLoginBinding>(ActivityLoginBinding::i | |||||||
|                     // Extract credential from the result returned by Credential Manager |                     // Extract credential from the result returned by Credential Manager | ||||||
|                     handleSignIn(result.credential) |                     handleSignIn(result.credential) | ||||||
|                 } catch (e: GetCredentialException) { |                 } catch (e: GetCredentialException) { | ||||||
|                     showToast("로그인을 하지 못했습니다. 다시 시도해 주세요") |                     showToast("구글 로그인을 하지 못했습니다. 다시 시도해 주세요") | ||||||
|                     Logger.e("Couldn't retrieve user's credentials: ${e.localizedMessage}") |                     Logger.e("Couldn't retrieve user's credentials: ${e.localizedMessage}") | ||||||
|                     loadingDialog.dismiss() |                     loadingDialog.dismiss() | ||||||
|                 } |                 } | ||||||
| @@ -316,4 +305,18 @@ class LoginActivity : BaseActivity<ActivityLoginBinding>(ActivityLoginBinding::i | |||||||
|             startActivity(nextIntent) |             startActivity(nextIntent) | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
|  |  | ||||||
|  |     private fun startSignUp() { | ||||||
|  |         val nextIntent = Intent(applicationContext, SignUpActivity::class.java) | ||||||
|  |         val extras = intent.getBundleExtra(Constants.EXTRA_DATA) | ||||||
|  |             ?: if (intent.extras != null) { | ||||||
|  |                 intent.extras | ||||||
|  |             } else { | ||||||
|  |                 null | ||||||
|  |             } | ||||||
|  |         if (extras != null) { | ||||||
|  |             nextIntent.putExtra(Constants.EXTRA_DATA, extras) | ||||||
|  |         } | ||||||
|  |         startActivity(nextIntent) | ||||||
|  |     } | ||||||
| } | } | ||||||
|   | |||||||
							
								
								
									
										
											BIN
										
									
								
								app/src/main/res/drawable-xxhdpi/ic_login_email.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								app/src/main/res/drawable-xxhdpi/ic_login_email.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 2.9 KiB | 
| @@ -96,6 +96,28 @@ | |||||||
|             android:textColor="@color/white" |             android:textColor="@color/white" | ||||||
|             android:textSize="15sp" /> |             android:textSize="15sp" /> | ||||||
|  |  | ||||||
|  |         <TextView | ||||||
|  |             android:id="@+id/tv_forgot_password" | ||||||
|  |             android:layout_width="wrap_content" | ||||||
|  |             android:layout_height="wrap_content" | ||||||
|  |             android:layout_marginTop="30dp" | ||||||
|  |             android:fontFamily="@font/gmarket_sans_medium" | ||||||
|  |             android:paddingVertical="10dp" | ||||||
|  |             android:text="비밀번호를 잊으셨나요?" | ||||||
|  |             android:textColor="@color/color_bbbbbb" | ||||||
|  |             android:textSize="13.3sp" /> | ||||||
|  |  | ||||||
|  |         <TextView | ||||||
|  |             android:id="@+id/tv_sign_up" | ||||||
|  |             android:layout_width="wrap_content" | ||||||
|  |             android:layout_height="wrap_content" | ||||||
|  |             android:layout_marginTop="10dp" | ||||||
|  |             android:fontFamily="@font/gmarket_sans_medium" | ||||||
|  |             android:paddingVertical="10dp" | ||||||
|  |             android:text="보이스온 회원이 아닌가요? 지금 가입하세요." | ||||||
|  |             android:textColor="@color/color_bbbbbb" | ||||||
|  |             android:textSize="13.3sp" /> | ||||||
|  |  | ||||||
|         <LinearLayout |         <LinearLayout | ||||||
|             android:layout_width="match_parent" |             android:layout_width="match_parent" | ||||||
|             android:layout_height="wrap_content" |             android:layout_height="wrap_content" | ||||||
| @@ -103,6 +125,14 @@ | |||||||
|             android:layout_marginTop="20dp" |             android:layout_marginTop="20dp" | ||||||
|             android:gravity="center"> |             android:gravity="center"> | ||||||
|  |  | ||||||
|  |             <ImageView | ||||||
|  |                 android:id="@+id/iv_sign_up_email" | ||||||
|  |                 android:layout_width="wrap_content" | ||||||
|  |                 android:layout_height="wrap_content" | ||||||
|  |                 android:layout_marginEnd="13.3dp" | ||||||
|  |                 android:contentDescription="@null" | ||||||
|  |                 android:src="@drawable/ic_login_email" /> | ||||||
|  |  | ||||||
|             <ImageView |             <ImageView | ||||||
|                 android:id="@+id/iv_login_kakao" |                 android:id="@+id/iv_login_kakao" | ||||||
|                 android:layout_width="wrap_content" |                 android:layout_width="wrap_content" | ||||||
| @@ -118,27 +148,5 @@ | |||||||
|                 android:contentDescription="@null" |                 android:contentDescription="@null" | ||||||
|                 android:src="@drawable/ic_login_google" /> |                 android:src="@drawable/ic_login_google" /> | ||||||
|         </LinearLayout> |         </LinearLayout> | ||||||
|  |  | ||||||
|         <TextView |  | ||||||
|             android:id="@+id/tv_forgot_password" |  | ||||||
|             android:layout_width="wrap_content" |  | ||||||
|             android:layout_height="wrap_content" |  | ||||||
|             android:layout_marginTop="30dp" |  | ||||||
|             android:fontFamily="@font/gmarket_sans_medium" |  | ||||||
|             android:paddingVertical="10dp" |  | ||||||
|             android:text="비밀번호를 잊으셨나요?" |  | ||||||
|             android:textColor="@color/color_bbbbbb" |  | ||||||
|             android:textSize="13.3sp" /> |  | ||||||
|  |  | ||||||
|         <TextView |  | ||||||
|             android:id="@+id/tv_sign_up" |  | ||||||
|             android:layout_width="wrap_content" |  | ||||||
|             android:layout_height="wrap_content" |  | ||||||
|             android:layout_marginTop="20dp" |  | ||||||
|             android:fontFamily="@font/gmarket_sans_medium" |  | ||||||
|             android:paddingVertical="10dp" |  | ||||||
|             android:text="보이스온 회원이 아닌가요? 지금 가입하세요." |  | ||||||
|             android:textColor="@color/color_bbbbbb" |  | ||||||
|             android:textSize="13.3sp" /> |  | ||||||
|     </LinearLayout> |     </LinearLayout> | ||||||
| </androidx.constraintlayout.widget.ConstraintLayout> | </androidx.constraintlayout.widget.ConstraintLayout> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user