반응형
구글 로그인 버튼의 Text를 바꾸고 싶었다.
조금 옛날 글이지만 역시.. 해결책은 존재했다.
Can I edit the text of sign in button on Google?
I am integrating my application with google plus. I have installed google play services and signed in to my account. Also I could publish and plus one for what ever I want. My problem I can't cha...
stackoverflow.com
이 방법을 코틀린으로 살짝 바꾸자면
val textView : TextView = binding.btnGoogleLogin.getChildAt(0) as TextView
textView.text = "Google 계정으로 로그인"
참고로 binding 사용했고, google SignIn Button의 id는 btn_google_login으로 지정하였다.
'IT > Android' 카테고리의 다른 글
안드로이드 스튜디오 / koin 으로viewModel 의존성 주입 시 viewModel을 공유할 경우 (0) | 2022.04.13 |
---|---|
안드로이드 스튜디오 / Constraintlayout app 속성 (0) | 2022.03.30 |
안드로이드 스튜디오 / layout 둥근 모서리 적용 (0) | 2022.03.24 |
안드로이드 스튜디오/ Retrofit/OkHttpClient 로그 찍는 방법 (0) | 2022.03.23 |
안드로이드 스튜디오/ startActivityForResult Deprecated (0) | 2022.03.23 |