Commit e97def06ec579ff63eadda4be5a451ac3add8e8f
Merge branch 'master' of bj.gitlab.cnlive.com:yangshuai/XiaojiaSoundBox
Showing
38 changed files
with
44 additions
and
36 deletions
build.gradle
| @@ -7,7 +7,7 @@ buildscript { | @@ -7,7 +7,7 @@ buildscript { | ||
| 7 | 7 | ||
| 8 | } | 8 | } |
| 9 | dependencies { | 9 | dependencies { |
| 10 | - classpath 'com.android.tools.build:gradle:3.5.0' | 10 | + classpath 'com.android.tools.build:gradle:3.5.1' |
| 11 | 11 | ||
| 12 | // NOTE: Do not place your application dependencies here; they belong | 12 | // NOTE: Do not place your application dependencies here; they belong |
| 13 | // in the individual module build.gradle files | 13 | // in the individual module build.gradle files |
| @@ -92,6 +92,7 @@ ext { | @@ -92,6 +92,7 @@ ext { | ||
| 92 | greendao = '3.2.2' | 92 | greendao = '3.2.2' |
| 93 | // loading动画 | 93 | // loading动画 |
| 94 | avi = "2.1.3" | 94 | avi = "2.1.3" |
| 95 | - | 95 | + //蓝牙 |
| 96 | + BleLib="2.3.4" | ||
| 96 | } | 97 | } |
| 97 | 98 |
config.gradle
module_xiaojiaSoundBox/build.gradle
| @@ -56,7 +56,7 @@ dependencies { | @@ -56,7 +56,7 @@ dependencies { | ||
| 56 | implementation "com.cnlive.libs:network:$rootProject.libNetwork" | 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 | // https://github.com/Blankj/AndroidUtilCode/blob/master/lib/utilcode/README-CN.md | 61 | // https://github.com/Blankj/AndroidUtilCode/blob/master/lib/utilcode/README-CN.md |
| 62 | 62 | ||
| @@ -81,5 +81,5 @@ dependencies { | @@ -81,5 +81,5 @@ dependencies { | ||
| 81 | implementation 'com.daimajia.easing:library:2.0@aar' | 81 | implementation 'com.daimajia.easing:library:2.0@aar' |
| 82 | implementation 'com.daimajia.androidanimations:library:2.3@aar' | 82 | implementation 'com.daimajia.androidanimations:library:2.3@aar' |
| 83 | implementation 'com.android.support.constraint:constraint-layout:1.1.3' | 83 | implementation 'com.android.support.constraint:constraint-layout:1.1.3' |
| 84 | - implementation files('libs/pinyin4j-2.5.0.jar') | 84 | + api files('libs/pinyin4j-2.5.0.jar') |
| 85 | } | 85 | } |
module_xiaojiaSoundBox/src/main/java/com/cnlive/strike/xiaojiaspeaker/constants/XiaoJiaConst.java
| @@ -4,7 +4,4 @@ public class XiaoJiaConst { | @@ -4,7 +4,4 @@ public class XiaoJiaConst { | ||
| 4 | public static final String QRCODE_TYPE="xiaoJiaSpeakerType"; | 4 | public static final String QRCODE_TYPE="xiaoJiaSpeakerType"; |
| 5 | public static final String INVIT_QRCODE="1";//二维码邀请 | 5 | public static final String INVIT_QRCODE="1";//二维码邀请 |
| 6 | public static final String INVIT_FRIEND="2";//联系人邀请 | 6 | public static final String INVIT_FRIEND="2";//联系人邀请 |
| 7 | - | ||
| 8 | - | ||
| 9 | - | ||
| 10 | } | 7 | } |
module_xiaojiaSoundBox/src/main/java/com/cnlive/strike/xiaojiaspeaker/frame/view/InvitFriendView.java
| @@ -2,6 +2,7 @@ package com.cnlive.strike.xiaojiaspeaker.frame.view; | @@ -2,6 +2,7 @@ package com.cnlive.strike.xiaojiaspeaker.frame.view; | ||
| 2 | 2 | ||
| 3 | import android.app.Activity; | 3 | import android.app.Activity; |
| 4 | import android.graphics.Bitmap; | 4 | import android.graphics.Bitmap; |
| 5 | +import android.graphics.BitmapFactory; | ||
| 5 | import android.net.Uri; | 6 | import android.net.Uri; |
| 6 | import android.support.v7.widget.LinearLayoutManager; | 7 | import android.support.v7.widget.LinearLayoutManager; |
| 7 | import android.text.TextUtils; | 8 | import android.text.TextUtils; |
| @@ -121,7 +122,11 @@ public class InvitFriendView implements MvpView { | @@ -121,7 +122,11 @@ public class InvitFriendView implements MvpView { | ||
| 121 | if (null == service) { | 122 | if (null == service) { |
| 122 | return; | 123 | return; |
| 123 | } | 124 | } |
| 124 | - Bitmap bitmap = service.createQRNoIconBitmap(encryptionContent, DensityUtil.dp2px(getContext(), 245)); | 125 | + Bitmap logo = BitmapFactory.decodeResource(getContext().getResources(), R.mipmap.ic_launcher); |
| 126 | + if (null == logo) { | ||
| 127 | + return; | ||
| 128 | + } | ||
| 129 | + Bitmap bitmap = service.createQrIconBitMap(encryptionContent, DensityUtil.dp2px(getContext(), 245), logo, 10); | ||
| 125 | // binding.ivQr.setBackgroundDrawable(bitmap); | 130 | // binding.ivQr.setBackgroundDrawable(bitmap); |
| 126 | if (getContext() == null) { | 131 | if (getContext() == null) { |
| 127 | return; | 132 | return; |
module_xiaojiaSoundBox/src/main/java/com/cnlive/strike/xiaojiaspeaker/ui/activity/AllDeviceActivity.java
| 1 | package com.cnlive.strike.xiaojiaspeaker.ui.activity; | 1 | package com.cnlive.strike.xiaojiaspeaker.ui.activity; |
| 2 | 2 | ||
| 3 | +import android.app.Activity; | ||
| 4 | +import android.content.Intent; | ||
| 3 | import android.database.DatabaseUtils; | 5 | import android.database.DatabaseUtils; |
| 4 | import android.databinding.DataBindingUtil; | 6 | import android.databinding.DataBindingUtil; |
| 5 | import android.support.v4.content.ContextCompat; | 7 | import android.support.v4.content.ContextCompat; |
| @@ -31,6 +33,8 @@ public class AllDeviceActivity extends AppCompatActivity { | @@ -31,6 +33,8 @@ public class AllDeviceActivity extends AppCompatActivity { | ||
| 31 | getSupportFragmentManager().beginTransaction().replace(R.id.fragment_container, AllDeviceFragment.newInstance()).commitAllowingStateLoss(); | 33 | getSupportFragmentManager().beginTransaction().replace(R.id.fragment_container, AllDeviceFragment.newInstance()).commitAllowingStateLoss(); |
| 32 | 34 | ||
| 33 | } | 35 | } |
| 34 | - | 36 | + public static void startActivity(Activity activity) { |
| 37 | + activity.startActivity(new Intent(activity, AllDeviceActivity.class)); | ||
| 38 | + } | ||
| 35 | 39 | ||
| 36 | } | 40 | } |
module_xiaojiaSoundBox/src/main/java/com/cnlive/strike/xiaojiaspeaker/ui/adapter/SelectIMFriendAdapter.java
| @@ -103,7 +103,7 @@ public class SelectIMFriendAdapter extends RecyclerView.Adapter { | @@ -103,7 +103,7 @@ public class SelectIMFriendAdapter extends RecyclerView.Adapter { | ||
| 103 | case IMFriendHasLetterInfo.USER_INFO: | 103 | case IMFriendHasLetterInfo.USER_INFO: |
| 104 | ItemListSelectImContactBinding binding = ((MyViewHolder) viewHolder).getBinding(); | 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 | binding.tvName.setText(imFriendInfoList.get(position).getUserName()); | 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,7 +78,7 @@ public class SetRoleAdapter extends RecyclerView.Adapter { | ||
| 78 | public void onBindViewHolder(@NonNull RecyclerView.ViewHolder viewHolder, int position) { | 78 | public void onBindViewHolder(@NonNull RecyclerView.ViewHolder viewHolder, int position) { |
| 79 | ItemListSetRoleBinding binding = ((MyViewHolder) viewHolder).getBinding(); | 79 | ItemListSetRoleBinding binding = ((MyViewHolder) viewHolder).getBinding(); |
| 80 | binding.tvName.setText(roleInfoList.get(position).getUserName()); | 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 | if (isShowItemUserInfo == View.VISIBLE) { | 82 | if (isShowItemUserInfo == View.VISIBLE) { |
| 83 | binding.llUserInfo.setVisibility(View.VISIBLE); | 83 | binding.llUserInfo.setVisibility(View.VISIBLE); |
| 84 | } else { | 84 | } else { |
module_xiaojiaSoundBox/src/main/java/com/cnlive/strike/xiaojiaspeaker/ui/adapter/UserManagerAdapter.java
| @@ -10,8 +10,6 @@ import android.view.ViewGroup; | @@ -10,8 +10,6 @@ import android.view.ViewGroup; | ||
| 10 | 10 | ||
| 11 | import com.cnlive.strike.application.GlideApp; | 11 | import com.cnlive.strike.application.GlideApp; |
| 12 | import com.cnlive.strike.xiaojiaspeaker.R; | 12 | import com.cnlive.strike.xiaojiaspeaker.R; |
| 13 | -import com.cnlive.strike.xiaojiaspeaker.databinding.ItemListMenuSoundBoxNameBinding; | ||
| 14 | -import com.cnlive.strike.xiaojiaspeaker.databinding.ItemListSetRoleBinding; | ||
| 15 | import com.cnlive.strike.xiaojiaspeaker.databinding.ItemListUserHostBinding; | 13 | import com.cnlive.strike.xiaojiaspeaker.databinding.ItemListUserHostBinding; |
| 16 | import com.cnlive.strike.xiaojiaspeaker.databinding.ItemListUserMemberBinding; | 14 | import com.cnlive.strike.xiaojiaspeaker.databinding.ItemListUserMemberBinding; |
| 17 | import com.cnlive.strike.xiaojiaspeaker.netWork.bean.FamilyRoleBean; | 15 | import com.cnlive.strike.xiaojiaspeaker.netWork.bean.FamilyRoleBean; |
| @@ -62,7 +60,7 @@ public class UserManagerAdapter extends RecyclerView.Adapter { | @@ -62,7 +60,7 @@ public class UserManagerAdapter extends RecyclerView.Adapter { | ||
| 62 | hostBinding.tvUserName.setText(familyRoleList.get(position).getUserMsg().getNickName()); | 60 | hostBinding.tvUserName.setText(familyRoleList.get(position).getUserMsg().getNickName()); |
| 63 | hostBinding.tvUserRole.setText(familyRoleList.get(position).getRoleName()); | 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 | if (!isAdmin) { | 64 | if (!isAdmin) { |
| 67 | hostBinding.tvFlag.setVisibility(View.GONE); | 65 | hostBinding.tvFlag.setVisibility(View.GONE); |
| 68 | } else { | 66 | } else { |
| @@ -74,7 +72,7 @@ public class UserManagerAdapter extends RecyclerView.Adapter { | @@ -74,7 +72,7 @@ public class UserManagerAdapter extends RecyclerView.Adapter { | ||
| 74 | memberBinding.tvUserName.setText(familyRoleList.get(position).getUserMsg().getNickName()); | 72 | memberBinding.tvUserName.setText(familyRoleList.get(position).getUserMsg().getNickName()); |
| 75 | memberBinding.tvUserRole.setText(familyRoleList.get(position).getRoleName()); | 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 | if (position == familyRoleList.size() - 1) { | 76 | if (position == familyRoleList.size() - 1) { |
| 79 | memberBinding.viewLine.setVisibility(View.GONE); | 77 | memberBinding.viewLine.setVisibility(View.GONE); |
| 80 | } else { | 78 | } else { |
module_xiaojiaSoundBox/src/main/java/com/cnlive/strike/xiaojiaspeaker/ui/widget/EditRoleDialog.java
| @@ -4,7 +4,6 @@ import android.app.Dialog; | @@ -4,7 +4,6 @@ import android.app.Dialog; | ||
| 4 | import android.content.Context; | 4 | import android.content.Context; |
| 5 | import android.os.Bundle; | 5 | import android.os.Bundle; |
| 6 | import android.support.annotation.NonNull; | 6 | import android.support.annotation.NonNull; |
| 7 | -import android.support.v4.content.ContextCompat; | ||
| 8 | import android.support.v7.widget.LinearLayoutManager; | 7 | import android.support.v7.widget.LinearLayoutManager; |
| 9 | import android.support.v7.widget.RecyclerView; | 8 | import android.support.v7.widget.RecyclerView; |
| 10 | import android.view.LayoutInflater; | 9 | import android.view.LayoutInflater; |
| @@ -22,8 +21,6 @@ import com.cnlive.strike.xiaojiaspeaker.model.RoleInfo; | @@ -22,8 +21,6 @@ import com.cnlive.strike.xiaojiaspeaker.model.RoleInfo; | ||
| 22 | import com.cnlive.strike.xiaojiaspeaker.netWork.bean.FamilyRoleBean; | 21 | import com.cnlive.strike.xiaojiaspeaker.netWork.bean.FamilyRoleBean; |
| 23 | import com.cnlive.strike.xiaojiaspeaker.ui.adapter.SetRoleAdapter; | 22 | import com.cnlive.strike.xiaojiaspeaker.ui.adapter.SetRoleAdapter; |
| 24 | 23 | ||
| 25 | -import org.w3c.dom.Text; | ||
| 26 | - | ||
| 27 | import java.util.List; | 24 | import java.util.List; |
| 28 | 25 | ||
| 29 | 26 | ||
| @@ -59,7 +56,7 @@ public class EditRoleDialog extends Dialog { | @@ -59,7 +56,7 @@ public class EditRoleDialog extends Dialog { | ||
| 59 | setRoleAdapter.setIsShowItemUserInfo(View.GONE); | 56 | setRoleAdapter.setIsShowItemUserInfo(View.GONE); |
| 60 | rv_role.setLayoutManager(new LinearLayoutManager(getContext())); | 57 | rv_role.setLayoutManager(new LinearLayoutManager(getContext())); |
| 61 | rv_role.setAdapter(setRoleAdapter); | 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 | tv_user_name.setText(bean.getUserMsg().getNickName()); | 60 | tv_user_name.setText(bean.getUserMsg().getNickName()); |
| 64 | } | 61 | } |
| 65 | 62 |
module_xiaojiaSoundBox/src/main/res/drawable-hdpi/check_normal.png renamed to module_xiaojiaSoundBox/src/main/res/drawable-hdpi/check_xiaojia_normal.png
1.25 KB
module_xiaojiaSoundBox/src/main/res/drawable-hdpi/check_normal_no_enable.png renamed to module_xiaojiaSoundBox/src/main/res/drawable-hdpi/check_xiaojia_normal_no_enable.png
1.37 KB
module_xiaojiaSoundBox/src/main/res/drawable-hdpi/check_press.png renamed to module_xiaojiaSoundBox/src/main/res/drawable-hdpi/check_xiaojia_press.png
1.43 KB
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/check_normal.png renamed to module_xiaojiaSoundBox/src/main/res/drawable-xhdpi/check_xiaojia_normal.png
1.16 KB
module_xiaojiaSoundBox/src/main/res/drawable-xhdpi/check_normal_no_enable.png renamed to module_xiaojiaSoundBox/src/main/res/drawable-xhdpi/check_xiaojia_normal_no_enable.png
1.34 KB
module_xiaojiaSoundBox/src/main/res/drawable-xhdpi/check_press.png renamed to module_xiaojiaSoundBox/src/main/res/drawable-xhdpi/check_xiaojia_press.png
1.45 KB
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
module_xiaojiaSoundBox/src/main/res/drawable-xxhdpi/check_normal.png renamed to module_xiaojiaSoundBox/src/main/res/drawable-xxhdpi/check_xiaojia_normal.png
2.48 KB
module_xiaojiaSoundBox/src/main/res/drawable-xxhdpi/check_normal_no_enable.png renamed to module_xiaojiaSoundBox/src/main/res/drawable-xxhdpi/check_xiaojia_normal_no_enable.png
2.74 KB
module_xiaojiaSoundBox/src/main/res/drawable-xxhdpi/check_press.png renamed to module_xiaojiaSoundBox/src/main/res/drawable-xxhdpi/check_xiaojia_press.png
2.86 KB
module_xiaojiaSoundBox/src/main/res/drawable/selector_btn_gray.xml
| 1 | <?xml version="1.0" encoding="utf-8"?> | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <selector xmlns:android="http://schemas.android.com/apk/res/android"> | 2 | <selector xmlns:android="http://schemas.android.com/apk/res/android"> |
| 3 | - <item android:drawable="@drawable/shape_btn_gray" android:state_pressed="false" /> | 3 | + <item android:drawable="@drawable/shape_xiaojia_btn_gray" android:state_pressed="false" /> |
| 4 | <item android:drawable="@drawable/shape_btn_press" android:state_pressed="true" /> | 4 | <item android:drawable="@drawable/shape_btn_press" android:state_pressed="true" /> |
| 5 | 5 | ||
| 6 | </selector> | 6 | </selector> |
| 7 | \ No newline at end of file | 7 | \ No newline at end of file |
module_xiaojiaSoundBox/src/main/res/drawable/selector_btn_green.xml
| 1 | <?xml version="1.0" encoding="utf-8"?> | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <selector xmlns:android="http://schemas.android.com/apk/res/android"> | 2 | <selector xmlns:android="http://schemas.android.com/apk/res/android"> |
| 3 | - <item android:drawable="@drawable/shape_btn_green" android:state_pressed="false" /> | 3 | + <item android:drawable="@drawable/shape_xiaojia_btn_green" android:state_pressed="false" /> |
| 4 | <item android:drawable="@drawable/shape_btn_press" android:state_pressed="true" /> | 4 | <item android:drawable="@drawable/shape_btn_press" android:state_pressed="true" /> |
| 5 | 5 | ||
| 6 | </selector> | 6 | </selector> |
| 7 | \ No newline at end of file | 7 | \ No newline at end of file |
module_xiaojiaSoundBox/src/main/res/drawable/selector_checkbox.xml deleted
100644 → 0
| 1 | -<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | -<selector xmlns:android="http://schemas.android.com/apk/res/android"> | ||
| 3 | - <item android:drawable="@drawable/check_press" android:state_checked="true"/> | ||
| 4 | - <item android:drawable="@drawable/check_normal" android:state_checked="false" android:state_enabled="true" /> | ||
| 5 | - <item android:drawable="@drawable/check_normal_no_enable" android:state_checked="false" android:state_enabled="false" /> | ||
| 6 | - | ||
| 7 | -</selector> | ||
| 8 | \ No newline at end of file | 0 | \ No newline at end of file |
module_xiaojiaSoundBox/src/main/res/drawable/selector_checkbox_no_default.xml
| 1 | <?xml version="1.0" encoding="utf-8"?> | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <selector xmlns:android="http://schemas.android.com/apk/res/android"> | 2 | <selector xmlns:android="http://schemas.android.com/apk/res/android"> |
| 3 | - <item android:drawable="@drawable/check_press" android:state_checked="true"/> | ||
| 4 | - <item android:drawable="@drawable/check_normal" android:state_checked="false" /> | 3 | + <item android:drawable="@drawable/check_xiaojia_press" android:state_checked="true"/> |
| 4 | + <item android:drawable="@drawable/check_xiaojia_normal" android:state_checked="false" /> | ||
| 5 | 5 | ||
| 6 | </selector> | 6 | </selector> |
| 7 | \ No newline at end of file | 7 | \ No newline at end of file |
module_xiaojiaSoundBox/src/main/res/drawable/selector_xiaojia_checkbox.xml
0 → 100644
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<selector xmlns:android="http://schemas.android.com/apk/res/android"> | ||
| 3 | + <item android:drawable="@drawable/check_xiaojia_press" android:state_checked="true"/> | ||
| 4 | + <item android:drawable="@drawable/check_xiaojia_normal" android:state_checked="false" android:state_enabled="true" /> | ||
| 5 | + <item android:drawable="@drawable/check_xiaojia_normal_no_enable" android:state_checked="false" android:state_enabled="false" /> | ||
| 6 | + | ||
| 7 | +</selector> | ||
| 0 | \ No newline at end of file | 8 | \ No newline at end of file |
module_xiaojiaSoundBox/src/main/res/drawable/shape_btn_gray.xml renamed to module_xiaojiaSoundBox/src/main/res/drawable/shape_xiaojia_btn_gray.xml
module_xiaojiaSoundBox/src/main/res/drawable/shape_btn_green.xml renamed to module_xiaojiaSoundBox/src/main/res/drawable/shape_xiaojia_btn_green.xml
module_xiaojiaSoundBox/src/main/res/drawable/shape_green_circle.xml renamed to module_xiaojiaSoundBox/src/main/res/drawable/shape_xiaojia_green_circle.xml
module_xiaojiaSoundBox/src/main/res/layout/activity_change_device_name.xml
| @@ -77,7 +77,7 @@ | @@ -77,7 +77,7 @@ | ||
| 77 | android:layout_marginLeft="30dp" | 77 | android:layout_marginLeft="30dp" |
| 78 | android:layout_marginTop="20dp" | 78 | android:layout_marginTop="20dp" |
| 79 | android:layout_marginRight="30dp" | 79 | android:layout_marginRight="30dp" |
| 80 | - android:background="@drawable/shape_btn_gray" | 80 | + android:background="@drawable/shape_xiaojia_btn_gray" |
| 81 | android:clickable="false" | 81 | android:clickable="false" |
| 82 | android:text="保存" | 82 | android:text="保存" |
| 83 | android:textColor="@color/white" | 83 | android:textColor="@color/white" |
module_xiaojiaSoundBox/src/main/res/layout/fragment_invit_friend.xml
| @@ -115,7 +115,7 @@ | @@ -115,7 +115,7 @@ | ||
| 115 | <TextView | 115 | <TextView |
| 116 | android:layout_width="15dp" | 116 | android:layout_width="15dp" |
| 117 | android:layout_height="15dp" | 117 | android:layout_height="15dp" |
| 118 | - android:background="@drawable/shape_green_circle" | 118 | + android:background="@drawable/shape_xiaojia_green_circle" |
| 119 | android:gravity="center" | 119 | android:gravity="center" |
| 120 | android:text="1" | 120 | android:text="1" |
| 121 | android:textColor="@color/white" | 121 | android:textColor="@color/white" |
| @@ -135,7 +135,7 @@ | @@ -135,7 +135,7 @@ | ||
| 135 | <TextView | 135 | <TextView |
| 136 | android:layout_width="15dp" | 136 | android:layout_width="15dp" |
| 137 | android:layout_height="15dp" | 137 | android:layout_height="15dp" |
| 138 | - android:background="@drawable/shape_green_circle" | 138 | + android:background="@drawable/shape_xiaojia_green_circle" |
| 139 | android:gravity="center" | 139 | android:gravity="center" |
| 140 | android:text="2" | 140 | android:text="2" |
| 141 | android:textColor="@color/white" | 141 | android:textColor="@color/white" |
| @@ -155,7 +155,7 @@ | @@ -155,7 +155,7 @@ | ||
| 155 | <TextView | 155 | <TextView |
| 156 | android:layout_width="15dp" | 156 | android:layout_width="15dp" |
| 157 | android:layout_height="15dp" | 157 | android:layout_height="15dp" |
| 158 | - android:background="@drawable/shape_green_circle" | 158 | + android:background="@drawable/shape_xiaojia_green_circle" |
| 159 | android:gravity="center" | 159 | android:gravity="center" |
| 160 | android:text="3" | 160 | android:text="3" |
| 161 | android:textColor="@color/white" | 161 | android:textColor="@color/white" |
module_xiaojiaSoundBox/src/main/res/layout/item_list_select_im_contact.xml
| @@ -36,7 +36,7 @@ | @@ -36,7 +36,7 @@ | ||
| 36 | android:layout_height="21dp" | 36 | android:layout_height="21dp" |
| 37 | android:layout_marginLeft="10dp" | 37 | android:layout_marginLeft="10dp" |
| 38 | android:layout_marginRight="20dp" | 38 | android:layout_marginRight="20dp" |
| 39 | - android:background="@drawable/selector_checkbox" | 39 | + style="@style/CustomCheckboxHasDefault" |
| 40 | android:button="@null" | 40 | android:button="@null" |
| 41 | android:clickable="false" | 41 | android:clickable="false" |
| 42 | android:focusable="false" /> | 42 | android:focusable="false" /> |
module_xiaojiaSoundBox/src/main/res/mipmap-hdpi/ic_launcher.png
0 → 100644
3.87 KB
module_xiaojiaSoundBox/src/main/res/mipmap-mdpi/ic_launcher.png
0 → 100644
2.94 KB
module_xiaojiaSoundBox/src/main/res/mipmap-xhdpi/ic_launcher.png
0 → 100644
5.19 KB
module_xiaojiaSoundBox/src/main/res/mipmap-xxhdpi/ic_launcher.png
0 → 100644
7.91 KB
module_xiaojiaSoundBox/src/main/res/mipmap-xxxhdpi/ic_launcher.png
0 → 100644
10.6 KB
module_xiaojiaSoundBox/src/main/res/values/styles.xml
| @@ -15,6 +15,12 @@ | @@ -15,6 +15,12 @@ | ||
| 15 | <item name="android:maxHeight">21dp</item> | 15 | <item name="android:maxHeight">21dp</item> |
| 16 | <item name="android:background">@drawable/selector_checkbox_no_default</item> | 16 | <item name="android:background">@drawable/selector_checkbox_no_default</item> |
| 17 | </style> | 17 | </style> |
| 18 | + | ||
| 19 | + <style name="CustomCheckboxHasDefault" parent="@android:style/Widget.CompoundButton.CheckBox"> | ||
| 20 | + <item name="android:button">@null</item> | ||
| 21 | + <item name="android:maxHeight">21dp</item> | ||
| 22 | + <item name="android:background">@drawable/selector_xiaojia_checkbox</item> | ||
| 23 | + </style> | ||
| 18 | <!-- switch--> | 24 | <!-- switch--> |
| 19 | <style name="SwitchButtonMD" tools:ignore="ResourceName"> | 25 | <style name="SwitchButtonMD" tools:ignore="ResourceName"> |
| 20 | <item name="kswThumbDrawable">@drawable/ksw_md_thumb</item> | 26 | <item name="kswThumbDrawable">@drawable/ksw_md_thumb</item> |