个人中心头像框显示QQ头像 - #1
Merged
Merged
Conversation
根据绑定的QQ号从腾讯qlogo接口拉取头像并圆形裁剪显示, 未绑定QQ时保留原有占位图标,不影响其他功能。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改动说明
个人中心(Profile 页)的头像框原本是空白占位图标,本次新增:根据用户绑定的 QQ 号,从腾讯 qlogo 接口拉取对应头像并圆形裁剪显示。
改动内容
fragment_profile.xml:头像 ImageView 增加id=iv_avatar,铺满 56dp 圆形头像框ProfileFragment.java:新增loadAvatar(qq)方法,用 Glide 加载 QQ 头像(圆形裁剪),未绑定 QQ 时保留原有占位图标影响范围
仅涉及个人中心页,不影响其他功能。已在模拟器验证。