로그인 화면에 일본어 SNS 아이콘 표시
This commit is contained in:
@@ -87,6 +87,23 @@ class LoginActivity : BaseActivity<ActivityLoginBinding>(ActivityLoginBinding::i
|
|||||||
binding.tvSignUp.setOnClickListener { startSignUp() }
|
binding.tvSignUp.setOnClickListener { startSignUp() }
|
||||||
binding.ivSignUpEmail.setOnClickListener { startSignUp() }
|
binding.ivSignUpEmail.setOnClickListener { startSignUp() }
|
||||||
|
|
||||||
|
val language = if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.N) {
|
||||||
|
resources.configuration.locales[0].language
|
||||||
|
} else {
|
||||||
|
@Suppress("DEPRECATION")
|
||||||
|
resources.configuration.locale.language
|
||||||
|
}
|
||||||
|
|
||||||
|
if (language == "ja") {
|
||||||
|
binding.ivLoginLine.visibility = android.view.View.VISIBLE
|
||||||
|
binding.ivLoginX.visibility = android.view.View.VISIBLE
|
||||||
|
binding.ivLoginKakao.visibility = android.view.View.GONE
|
||||||
|
} else {
|
||||||
|
binding.ivLoginLine.visibility = android.view.View.GONE
|
||||||
|
binding.ivLoginX.visibility = android.view.View.GONE
|
||||||
|
binding.ivLoginKakao.visibility = android.view.View.VISIBLE
|
||||||
|
}
|
||||||
|
|
||||||
binding.ivLoginGoogle.setOnClickListener {
|
binding.ivLoginGoogle.setOnClickListener {
|
||||||
loadingDialog.show(width = screenWidth)
|
loadingDialog.show(width = screenWidth)
|
||||||
val credentialManager = CredentialManager.create(this)
|
val credentialManager = CredentialManager.create(this)
|
||||||
|
|||||||
BIN
app/src/main/res/drawable-xxhdpi/ic_login_line.png
Normal file
BIN
app/src/main/res/drawable-xxhdpi/ic_login_line.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 8.2 KiB |
BIN
app/src/main/res/drawable-xxhdpi/ic_login_x.png
Normal file
BIN
app/src/main/res/drawable-xxhdpi/ic_login_x.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.9 KiB |
@@ -129,24 +129,43 @@
|
|||||||
android:id="@+id/iv_sign_up_email"
|
android:id="@+id/iv_sign_up_email"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginEnd="13.3dp"
|
|
||||||
android:contentDescription="@null"
|
android:contentDescription="@null"
|
||||||
android:src="@drawable/ic_login_email" />
|
android:src="@drawable/ic_login_email" />
|
||||||
|
|
||||||
<ImageView
|
|
||||||
android:id="@+id/iv_login_kakao"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginEnd="13.3dp"
|
|
||||||
android:contentDescription="@null"
|
|
||||||
android:src="@drawable/ic_login_kakao" />
|
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/iv_login_google"
|
android:id="@+id/iv_login_google"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="13.3dp"
|
||||||
android:contentDescription="@null"
|
android:contentDescription="@null"
|
||||||
android:src="@drawable/ic_login_google" />
|
android:src="@drawable/ic_login_google" />
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/iv_login_kakao"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="13.3dp"
|
||||||
|
android:contentDescription="@null"
|
||||||
|
android:src="@drawable/ic_login_kakao"
|
||||||
|
android:visibility="gone" />
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/iv_login_line"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="13.3dp"
|
||||||
|
android:contentDescription="@null"
|
||||||
|
android:src="@drawable/ic_login_line"
|
||||||
|
android:visibility="gone" />
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/iv_login_x"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="13.3dp"
|
||||||
|
android:contentDescription="@null"
|
||||||
|
android:src="@drawable/ic_login_x"
|
||||||
|
android:visibility="gone" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
|||||||
Reference in New Issue
Block a user