Commit 22ba898160dd86b63ee776094605e33afb3450c9
1 parent
d7fa3f40
1 提出蓝牙依赖
Showing
8 changed files
with
8 additions
and
12 deletions
build.gradle
module_xiaojiaSoundBox/build.gradle
| ... | ... | @@ -56,7 +56,7 @@ dependencies { |
| 56 | 56 | implementation "com.cnlive.libs:network:$rootProject.libNetwork" |
| 57 | 57 | |
| 58 | 58 | // 蓝牙相关 |
| 59 | - implementation 'com.clj.fastble:FastBleLib:2.3.4' | |
| 59 | + implementation "com.clj.fastble:FastBleLib:$rootProject.BleLib" | |
| 60 | 60 | |
| 61 | 61 | // https://github.com/Blankj/AndroidUtilCode/blob/master/lib/utilcode/README-CN.md |
| 62 | 62 | ... | ... |
module_xiaojiaSoundBox/src/main/java/com/cnlive/strike/xiaojiaspeaker/ui/adapter/SelectIMFriendAdapter.java
| ... | ... | @@ -103,7 +103,7 @@ public class SelectIMFriendAdapter extends RecyclerView.Adapter { |
| 103 | 103 | case IMFriendHasLetterInfo.USER_INFO: |
| 104 | 104 | ItemListSelectImContactBinding binding = ((MyViewHolder) viewHolder).getBinding(); |
| 105 | 105 | //设置联系人头像 |
| 106 | - GlideApp.with(context).load(imFriendInfoList.get(position).getUserIcon()).placeholder(R.drawable.touxiang).into(binding.ivIcon); | |
| 106 | + GlideApp.with(context).load(imFriendInfoList.get(position).getUserIcon()).placeholder(R.drawable.xiaojia_touxiang).into(binding.ivIcon); | |
| 107 | 107 | //设置联系人名称 |
| 108 | 108 | binding.tvName.setText(imFriendInfoList.get(position).getUserName()); |
| 109 | 109 | //设置是否可以进行选择 | ... | ... |
module_xiaojiaSoundBox/src/main/java/com/cnlive/strike/xiaojiaspeaker/ui/adapter/SetRoleAdapter.java
| ... | ... | @@ -78,7 +78,7 @@ public class SetRoleAdapter extends RecyclerView.Adapter { |
| 78 | 78 | public void onBindViewHolder(@NonNull RecyclerView.ViewHolder viewHolder, int position) { |
| 79 | 79 | ItemListSetRoleBinding binding = ((MyViewHolder) viewHolder).getBinding(); |
| 80 | 80 | binding.tvName.setText(roleInfoList.get(position).getUserName()); |
| 81 | - GlideApp.with(context).load(roleInfoList.get(position).getUserIcon()).placeholder(R.drawable.touxiang).into(binding.ivIcon); | |
| 81 | + GlideApp.with(context).load(roleInfoList.get(position).getUserIcon()).placeholder(R.drawable.xiaojia_touxiang).into(binding.ivIcon); | |
| 82 | 82 | if (isShowItemUserInfo == View.VISIBLE) { |
| 83 | 83 | binding.llUserInfo.setVisibility(View.VISIBLE); |
| 84 | 84 | } else { | ... | ... |
module_xiaojiaSoundBox/src/main/java/com/cnlive/strike/xiaojiaspeaker/ui/adapter/UserManagerAdapter.java
| ... | ... | @@ -10,8 +10,6 @@ import android.view.ViewGroup; |
| 10 | 10 | |
| 11 | 11 | import com.cnlive.strike.application.GlideApp; |
| 12 | 12 | import com.cnlive.strike.xiaojiaspeaker.R; |
| 13 | -import com.cnlive.strike.xiaojiaspeaker.databinding.ItemListMenuSoundBoxNameBinding; | |
| 14 | -import com.cnlive.strike.xiaojiaspeaker.databinding.ItemListSetRoleBinding; | |
| 15 | 13 | import com.cnlive.strike.xiaojiaspeaker.databinding.ItemListUserHostBinding; |
| 16 | 14 | import com.cnlive.strike.xiaojiaspeaker.databinding.ItemListUserMemberBinding; |
| 17 | 15 | import com.cnlive.strike.xiaojiaspeaker.netWork.bean.FamilyRoleBean; |
| ... | ... | @@ -62,7 +60,7 @@ public class UserManagerAdapter extends RecyclerView.Adapter { |
| 62 | 60 | hostBinding.tvUserName.setText(familyRoleList.get(position).getUserMsg().getNickName()); |
| 63 | 61 | hostBinding.tvUserRole.setText(familyRoleList.get(position).getRoleName()); |
| 64 | 62 | //设置头像 |
| 65 | - GlideApp.with(context).load(familyRoleList.get(position).getUserMsg().getImage()).placeholder(R.drawable.touxiang).into(hostBinding.ivIcon); | |
| 63 | + GlideApp.with(context).load(familyRoleList.get(position).getUserMsg().getImage()).placeholder(R.drawable.xiaojia_touxiang).into(hostBinding.ivIcon); | |
| 66 | 64 | if (!isAdmin) { |
| 67 | 65 | hostBinding.tvFlag.setVisibility(View.GONE); |
| 68 | 66 | } else { |
| ... | ... | @@ -74,7 +72,7 @@ public class UserManagerAdapter extends RecyclerView.Adapter { |
| 74 | 72 | memberBinding.tvUserName.setText(familyRoleList.get(position).getUserMsg().getNickName()); |
| 75 | 73 | memberBinding.tvUserRole.setText(familyRoleList.get(position).getRoleName()); |
| 76 | 74 | //设置头像 |
| 77 | - GlideApp.with(context).load(familyRoleList.get(position).getUserMsg().getImage()).placeholder(R.drawable.touxiang).into(memberBinding.ivIcon); | |
| 75 | + GlideApp.with(context).load(familyRoleList.get(position).getUserMsg().getImage()).placeholder(R.drawable.xiaojia_touxiang).into(memberBinding.ivIcon); | |
| 78 | 76 | if (position == familyRoleList.size() - 1) { |
| 79 | 77 | memberBinding.viewLine.setVisibility(View.GONE); |
| 80 | 78 | } else { | ... | ... |
module_xiaojiaSoundBox/src/main/java/com/cnlive/strike/xiaojiaspeaker/ui/widget/EditRoleDialog.java
| ... | ... | @@ -4,7 +4,6 @@ import android.app.Dialog; |
| 4 | 4 | import android.content.Context; |
| 5 | 5 | import android.os.Bundle; |
| 6 | 6 | import android.support.annotation.NonNull; |
| 7 | -import android.support.v4.content.ContextCompat; | |
| 8 | 7 | import android.support.v7.widget.LinearLayoutManager; |
| 9 | 8 | import android.support.v7.widget.RecyclerView; |
| 10 | 9 | import android.view.LayoutInflater; |
| ... | ... | @@ -22,8 +21,6 @@ import com.cnlive.strike.xiaojiaspeaker.model.RoleInfo; |
| 22 | 21 | import com.cnlive.strike.xiaojiaspeaker.netWork.bean.FamilyRoleBean; |
| 23 | 22 | import com.cnlive.strike.xiaojiaspeaker.ui.adapter.SetRoleAdapter; |
| 24 | 23 | |
| 25 | -import org.w3c.dom.Text; | |
| 26 | - | |
| 27 | 24 | import java.util.List; |
| 28 | 25 | |
| 29 | 26 | |
| ... | ... | @@ -59,7 +56,7 @@ public class EditRoleDialog extends Dialog { |
| 59 | 56 | setRoleAdapter.setIsShowItemUserInfo(View.GONE); |
| 60 | 57 | rv_role.setLayoutManager(new LinearLayoutManager(getContext())); |
| 61 | 58 | rv_role.setAdapter(setRoleAdapter); |
| 62 | - GlideApp.with(context).load(bean.getUserMsg().getImage()).placeholder(R.drawable.touxiang).into(iv_icon); | |
| 59 | + GlideApp.with(context).load(bean.getUserMsg().getImage()).placeholder(R.drawable.xiaojia_touxiang).into(iv_icon); | |
| 63 | 60 | tv_user_name.setText(bean.getUserMsg().getNickName()); |
| 64 | 61 | } |
| 65 | 62 | ... | ... |
module_xiaojiaSoundBox/src/main/res/drawable-hdpi/touxiang.webp renamed to module_xiaojiaSoundBox/src/main/res/drawable-hdpi/xiaojia_touxiang.webp
No preview for this file type
module_xiaojiaSoundBox/src/main/res/drawable-xhdpi/touxiang.webp renamed to module_xiaojiaSoundBox/src/main/res/drawable-xhdpi/xiaojia_touxiang.webp
No preview for this file type