안드로이드/불명예의 전당 5

[Android/Kotlin/Firebase] Firebase auth - Google 계정으로 로그인 구현 중 Missing Feature{name=auth_api_credentials_begin_sign_in, version=6}해결.

제목 그대로 Firebase auth를 통해 - Google 계정으로 로그인을 구현 하고 있었다. https://firebase.google.com/docs/auth/android/google-signin?hl=ko Android에서 Google에 인증 | Firebase 인증 2022년 10월 18일에 오프라인과 온라인으로 진행될 Firebase Summit에 참여하세요. Firebase로 앱을 빠르게 개발하고 안심하고 앱을 출시하며 손쉽게 확장하는 방법을 알아보세요. 지금 등록하기 의견 보 firebase.google.com https://developers.google.com/identity/one-tap/android/get-saved-credentials?hl=ko 저장된 자격 증명으로 사용자 ..

애니메이션 translation(x축 or y축) 이동에 관한 문제 해결ObjectAnimator.ofFloat(...), 오른쪽으로 가야될 것 같은데 왜 왼쪽으로?

private fun translater() { //x축 방향 200픽셀만큼 + (우측) 으로 이동 val animator = ObjectAnimator.ofFloat(star, View.TRANSLATION_X, 200f) Log.i(TAG, "TranslationX : ${star.translationX}, TranslationY : ${star.translationY}") //200픽셀만큼 우측으로 이동하고 난 뒤, view를 다시 움직이고 싶을 것이다. //이 때 우리는 animator 의 repeat 개념에 대해 인지하고 이를 수정해나가야 한다. // animator.repeatCount = 1 animator.repeatMode = ObjectAnimator.REVERSE //disableVi..

[Android/Kotlin] ViewPager2와 FragmentStateAdapter를 이용했을 때, UI에서 adatper를 통해 Fragment를 add 했을 때 추가된 프래그먼트가 곧바로 생성되지 않는 점 해결.

문제점 FriendAddAdapter class FriendAddAdapter(fm: FragmentManager, lifecycle:Lifecycle) : FragmentStateAdapter(fm, lifecycle) { var list : List = listOf() override fun getItemCount(): Int = list.size override fun createFragment(position: Int): Fragment { return list[position] } fun addReceptionFragment(fragment: Fragment, friendCode:Long) { Log.i(TAG,"addReceptionFragment") fragment.arguments = Bu..

[fragment] view_background_color 바꿔보기.

왜why? 엑비티비티에 뷰 페이져가 있고, 그 뷰페이져에 생성된 fragment내 view의 색상을 바꾸고 싶어서. 사용. ...\ ///////////////////////////// //fragment class // ///////////////////////////// //fragment class fun changeLeaderBoardColor(view: View, idx: Int) { when (idx) { 0 -> { view.currAlcohol?.setBackgroundColor( ContextCompat.getColor( view.context, R.color.soju ) ) view.maxAlcohol?.background = ContextCompat.getDrawable(view.co..