Browse Source

修改部分样式问题

Pq 1 year ago
parent
commit
357986c823

+ 9 - 0
chatModule/src/main/java/com/cooleshow/chatmodule/utils/helper/IMThemManager.java

@@ -138,6 +138,15 @@ public class IMThemManager {
         }
     }
 
+    public void setEditStyle(EditText... editTexts) {
+        if(editTexts == null){
+            return;
+        }
+        for (int i = 0; i < editTexts.length; i++) {
+            setEditStyle(editTexts[i]);
+        }
+    }
+
     public void setEditStyle(EditText editText) {
         Drawable textCursorDrawable = null;
         if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.Q) {

+ 2 - 0
student/src/main/java/com/cooleshow/student/ui/mine/CheckModifyPhoneNumActivity.java

@@ -14,6 +14,7 @@ import com.cooleshow.base.router.RouterPath;
 import com.cooleshow.base.ui.activity.BaseMVPActivity;
 import com.cooleshow.base.utils.ToastUtil;
 import com.cooleshow.base.utils.ToastUtils;
+import com.cooleshow.chatmodule.utils.helper.IMThemManager;
 import com.cooleshow.student.R;
 import com.cooleshow.student.contract.CheckModifyPhoneNumContract;
 import com.cooleshow.student.databinding.ActivityCheckModifyPhonenumBinding;
@@ -60,6 +61,7 @@ public class CheckModifyPhoneNumActivity extends BaseMVPActivity<ActivityCheckMo
     protected void initView() {
         initMidTitleToolBar(viewBinding.toolbarInclude.toolbar, "修改手机号");
         viewBinding.tvConfirm.setOnClickListener(this);
+        IMThemManager.getInstance().setEditStyle(viewBinding.etPhoneNum,viewBinding.etPassword);
     }
 
     @Override

+ 2 - 0
student/src/main/java/com/cooleshow/student/ui/mine/FeedBackActivity.java

@@ -12,6 +12,7 @@ import com.cooleshow.base.router.RouterPath;
 import com.cooleshow.base.ui.activity.BaseMVPActivity;
 import com.cooleshow.base.utils.ToastUtil;
 import com.cooleshow.base.utils.ToastUtils;
+import com.cooleshow.chatmodule.utils.helper.IMThemManager;
 import com.cooleshow.student.R;
 import com.cooleshow.student.contract.FeedBackContract;
 import com.cooleshow.student.databinding.ActivityFeedbackBinding;
@@ -66,6 +67,7 @@ public class FeedBackActivity extends BaseMVPActivity<ActivityFeedbackBinding, F
     protected void initView() {
         initMidTitleToolBar(viewBinding.toolbarInclude.toolbar, "意见反馈");
         viewBinding.tvSubmit.setOnClickListener(this);
+        IMThemManager.getInstance().setEditStyle(viewBinding.etContent);
     }
 
     @Override

+ 2 - 0
student/src/main/java/com/cooleshow/student/ui/mine/ModifyNickNameActivity.java

@@ -15,6 +15,7 @@ import com.cooleshow.base.router.RouterPath;
 import com.cooleshow.base.ui.activity.BaseMVPActivity;
 import com.cooleshow.base.utils.ToastUtil;
 import com.cooleshow.base.utils.ToastUtils;
+import com.cooleshow.chatmodule.utils.helper.IMThemManager;
 import com.cooleshow.student.R;
 import com.cooleshow.student.contract.ModifyNickNameContract;
 import com.cooleshow.student.databinding.ActivityModifyNicknameBinding;
@@ -76,6 +77,7 @@ public class ModifyNickNameActivity extends BaseMVPActivity<ActivityModifyNickna
             viewBinding.etNickname.setText(userName);
         }
         viewBinding.imClose.setOnClickListener(this);
+        IMThemManager.getInstance().setEditStyle(viewBinding.etNickname);
     }
 
     @Override

+ 3 - 0
student/src/main/java/com/cooleshow/student/ui/mine/ModifyPasswordActivity.java

@@ -19,6 +19,7 @@ import com.cooleshow.base.ui.activity.BaseMVPActivity;
 import com.cooleshow.base.utils.ToastUtil;
 import com.cooleshow.base.utils.ToastUtils;
 import com.cooleshow.base.widgets.dialog.ImgVerifyCodeDialog;
+import com.cooleshow.chatmodule.utils.helper.IMThemManager;
 import com.cooleshow.student.R;
 import com.cooleshow.student.contract.ModifyPasswordContract;
 import com.cooleshow.student.databinding.ActivityModifyPasswordBinding;
@@ -92,6 +93,8 @@ public class ModifyPasswordActivity extends BaseMVPActivity<ActivityModifyPasswo
         viewBinding.tvGetAuthCode.setOnClickListener(this);
         String cPhone = phoneNum.substring(0, 3) + "****" + phoneNum.substring(7, phoneNum.length());
         viewBinding.tvPhone.setText(cPhone);
+
+        IMThemManager.getInstance().setEditStyle(viewBinding.etAuthCode,viewBinding.etPassword);
     }
 
 

+ 2 - 0
student/src/main/java/com/cooleshow/student/ui/mine/ModifyPhoneNumActivity.java

@@ -19,6 +19,7 @@ import com.cooleshow.base.ui.activity.BaseMVPActivity;
 import com.cooleshow.base.utils.ToastUtil;
 import com.cooleshow.base.utils.ToastUtils;
 import com.cooleshow.base.widgets.dialog.ImgVerifyCodeDialog;
+import com.cooleshow.chatmodule.utils.helper.IMThemManager;
 import com.cooleshow.student.R;
 import com.cooleshow.student.contract.ModifyPhoneNumContract;
 import com.cooleshow.student.databinding.ActivityModifyPhonenumBinding;
@@ -92,6 +93,7 @@ public class ModifyPhoneNumActivity extends BaseMVPActivity<ActivityModifyPhonen
         initMidTitleToolBar(viewBinding.toolbarInclude.toolbar, "新手机号绑定");
         viewBinding.tvGetAuthCode.setOnClickListener(this);
         viewBinding.tvSave.setOnClickListener(this);
+        IMThemManager.getInstance().setEditStyle(viewBinding.etPhoneNum,viewBinding.etAuthCode);
     }
 
     private void showImgVerifyCodeDialog(String phone) {

+ 10 - 6
student/src/main/res/layout/activity_check_modify_phonenum.xml

@@ -4,7 +4,6 @@
     xmlns:tools="http://schemas.android.com/tools"
     android:layout_width="match_parent"
     android:layout_height="match_parent"
-    android:background="@color/color_f6f8f9"
     android:orientation="vertical"
     tools:ignore="MissingDefaultResource">
 
@@ -16,9 +15,12 @@
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:layout_marginTop="15dp"
-        android:background="@color/white">
+        android:layout_marginStart="13dp"
+        android:layout_marginEnd="13dp"
+        android:background="@drawable/bg_white_10dp">
 
         <EditText
+            android:textCursorDrawable="@drawable/shape_2dc7aa_1dp"
             android:id="@+id/et_phone_num"
             android:layout_width="match_parent"
             android:layout_height="@dimen/dp_48"
@@ -45,6 +47,7 @@
             app:layout_constraintTop_toBottomOf="@+id/et_phone_num" />
 
         <EditText
+            android:textCursorDrawable="@drawable/shape_2dc7aa_1dp"
             android:id="@+id/et_password"
             android:layout_width="match_parent"
             android:layout_height="@dimen/dp_48"
@@ -67,14 +70,15 @@
         android:id="@+id/tv_confirm"
         android:layout_width="match_parent"
         android:layout_height="44dp"
-        android:layout_marginLeft="28dp"
-        android:layout_marginTop="20dp"
-        android:layout_marginRight="28dp"
+        android:layout_marginLeft="25dp"
+        android:layout_marginTop="30dp"
+        android:layout_marginRight="25dp"
         android:layout_marginBottom="48dp"
         android:background="?attr/klx_main_bt_background"
         android:gravity="center"
         android:text="确定"
+        android:textStyle="bold"
         android:textColor="@color/white"
-        android:textSize="@dimen/sp_14" />
+        android:textSize="@dimen/sp_18" />
 
 </LinearLayout>

+ 2 - 2
student/src/main/res/layout/activity_feedback.xml

@@ -22,13 +22,13 @@
         <EditText
             android:id="@+id/et_content"
             android:layout_width="match_parent"
-            android:layout_height="wrap_content"
+            android:layout_height="@dimen/dp_239"
             android:background="@color/transparent"
             android:gravity="left"
             android:hint="请输入您的反馈意见"
-            android:inputType="text"
             android:maxLength="500"
             android:paddingLeft="12dp"
+            android:textCursorDrawable="@drawable/shape_2dc7aa_1dp"
             android:paddingTop="10dp"
             android:paddingRight="12dp"
             android:paddingBottom="10dp"

+ 5 - 3
student/src/main/res/layout/activity_modify_nickname.xml

@@ -3,7 +3,6 @@
     android:layout_width="match_parent"
     android:layout_height="match_parent"
     xmlns:app="http://schemas.android.com/apk/res-auto"
-    android:background="@color/color_f6f8f9"
     android:orientation="vertical">
 
     <include
@@ -11,6 +10,8 @@
         layout="@layout/common_toolbar_layout" />
 
     <androidx.constraintlayout.widget.ConstraintLayout
+        android:layout_marginStart="13dp"
+        android:layout_marginEnd="13dp"
         android:layout_width="match_parent"
         android:layout_height="@dimen/dp_56"
         android:layout_marginTop="15dp"
@@ -25,6 +26,7 @@
             android:hint="请输入昵称"
             android:maxLength="12"
             android:paddingLeft="14dp"
+            android:textCursorDrawable="@drawable/shape_2dc7aa_1dp"
             android:paddingRight="30dp"
             android:textColor="@color/color_1a1a1a"
             android:textColorHint="@color/color_999999"
@@ -32,8 +34,8 @@
 
         <ImageView
             android:id="@+id/im_close"
-            android:layout_width="@dimen/dp_41"
-            android:layout_height="@dimen/dp_41"
+            android:layout_width="@dimen/dp_50"
+            android:layout_height="@dimen/dp_50"
             app:layout_constraintRight_toRightOf="parent"
             app:layout_constraintTop_toTopOf="parent"
             android:padding="13dp"

+ 10 - 6
student/src/main/res/layout/activity_modify_password.xml

@@ -4,7 +4,6 @@
     xmlns:tools="http://schemas.android.com/tools"
     android:layout_width="match_parent"
     android:layout_height="match_parent"
-    android:background="@color/color_f6f8f9"
     android:orientation="vertical"
     tools:ignore="MissingDefaultResource">
 
@@ -26,9 +25,12 @@
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:layout_marginTop="15dp"
-        android:background="@color/white">
+        android:layout_marginStart="13dp"
+        android:layout_marginEnd="13dp"
+        android:background="@drawable/bg_white_10dp">
 
         <EditText
+            android:textCursorDrawable="@drawable/shape_2dc7aa_1dp"
             android:id="@+id/et_password"
             android:layout_width="match_parent"
             android:layout_height="@dimen/dp_48"
@@ -62,6 +64,7 @@
             android:hint="请输入验证码"
             android:inputType="number"
             android:maxLength="6"
+            android:textCursorDrawable="@drawable/shape_2dc7aa_1dp"
             android:paddingLeft="14dp"
             android:paddingRight="14dp"
             android:textColor="@color/color_1a1a1a"
@@ -88,14 +91,15 @@
         android:id="@+id/tv_confirm"
         android:layout_width="match_parent"
         android:layout_height="44dp"
-        android:layout_marginLeft="28dp"
-        android:layout_marginTop="20dp"
-        android:layout_marginRight="28dp"
+        android:layout_marginLeft="25dp"
+        android:layout_marginTop="30dp"
+        android:layout_marginRight="25dp"
         android:layout_marginBottom="48dp"
         android:background="?attr/klx_main_bt_background"
         android:gravity="center"
         android:text="确定"
+        android:textStyle="bold"
         android:textColor="@color/white"
-        android:textSize="@dimen/sp_14" />
+        android:textSize="@dimen/sp_18" />
 
 </LinearLayout>

+ 10 - 6
student/src/main/res/layout/activity_modify_phonenum.xml

@@ -4,7 +4,6 @@
     xmlns:tools="http://schemas.android.com/tools"
     android:layout_width="match_parent"
     android:layout_height="match_parent"
-    android:background="@color/color_f6f8f9"
     android:orientation="vertical"
     tools:ignore="MissingDefaultResource">
 
@@ -13,12 +12,15 @@
         layout="@layout/common_toolbar_layout" />
 
     <androidx.constraintlayout.widget.ConstraintLayout
+        android:layout_marginStart="13dp"
+        android:layout_marginEnd="13dp"
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:layout_marginTop="15dp"
-        android:background="@color/white">
+        android:background="@drawable/bg_white_10dp">
 
         <EditText
+            android:textCursorDrawable="@drawable/shape_2dc7aa_1dp"
             android:id="@+id/et_phone_num"
             android:layout_width="match_parent"
             android:layout_height="@dimen/dp_48"
@@ -45,6 +47,7 @@
             app:layout_constraintTop_toBottomOf="@+id/et_phone_num" />
 
         <EditText
+            android:textCursorDrawable="@drawable/shape_2dc7aa_1dp"
             android:id="@+id/et_auth_code"
             android:layout_width="match_parent"
             android:layout_height="@dimen/dp_48"
@@ -78,14 +81,15 @@
         android:id="@+id/tv_save"
         android:layout_width="match_parent"
         android:layout_height="44dp"
-        android:layout_marginLeft="28dp"
-        android:layout_marginTop="20dp"
-        android:layout_marginRight="28dp"
+        android:textStyle="bold"
+        android:layout_marginLeft="25dp"
+        android:layout_marginTop="30dp"
+        android:layout_marginRight="25dp"
         android:layout_marginBottom="48dp"
         android:background="?attr/klx_main_bt_background"
         android:gravity="center"
         android:text="确定"
         android:textColor="@color/white"
-        android:textSize="@dimen/sp_14" />
+        android:textSize="@dimen/sp_18" />
 
 </LinearLayout>

+ 1 - 2
teacher/src/main/res/layout/activity_feedback.xml

@@ -22,11 +22,10 @@
         <EditText
             android:id="@+id/et_content"
             android:layout_width="match_parent"
-            android:layout_height="wrap_content"
+            android:layout_height="@dimen/dp_239"
             android:background="@color/transparent"
             android:gravity="left"
             android:hint="请输入您的反馈意见"
-            android:inputType="text"
             android:maxLength="500"
             android:paddingLeft="12dp"
             android:paddingTop="10dp"