저는 Firebase (웹)을 처음 사용하고 img 태그보기에서 사용자의 photoURL을 표시하려고합니다. 같은 뭔가 :사용자의 사진 URL 표시
자바 스크립트는 ID로 요소를 얻고 src 속성을 변경하려면 무엇입니까? 나는 기본 예제를 사용하고
는 여기에서 찾을 : https://github.com/firebase/FirebaseUI-Web#using-firebaseui-for-authentication
감사합니다,
이저는 Firebase (웹)을 처음 사용하고 img 태그보기에서 사용자의 photoURL을 표시하려고합니다. 같은 뭔가 :사용자의 사진 URL 표시
자바 스크립트는 ID로 요소를 얻고 src 속성을 변경하려면 무엇입니까? 나는 기본 예제를 사용하고
는 여기에서 찾을 : https://github.com/firebase/FirebaseUI-Web#using-firebaseui-for-authentication
감사합니다,
이당신은 당신에게 Build.Gradle (응용 프로그램 레벨) 파일 새로운 depedencie을 추가해야합니다
compile 'com.github.bumptech.glide:glide:3.7.0'
을 ImageView 만들기보다. 이제 FirebaseUsers PhotoURL와 이미지 뷰의 SRC 설정할 수 있습니다
ImageView iw = find.....
Glide.with(this).load(*).centerCrop().override(512, 512).into(iw);
* Can you replace with the current User (z.B : mFirebaseUser.getPhotoUrl().toString())
그게 전부.
document.getElementById('imgId').src= firebase.auth().currentUser.photoURL;