Commit 3890402a9f8474497261cdf2e6ef808671d2b2ee
1 parent
323d386e
1 修复提示对话框显示异常问题
Showing
5 changed files
with
3 additions
and
3 deletions
config.gradle
moudle_pedometer/src/main/java/com/cnlive/moudle/pedometer/ui/widget/SelectDialog.java
| @@ -35,7 +35,7 @@ public class SelectDialog extends Dialog { | @@ -35,7 +35,7 @@ public class SelectDialog extends Dialog { | ||
| 35 | public SelectDialog(@NonNull Context context, String tipText, String btnCancelText, DialogInterface cancelInterface, String btnOkText, DialogInterface okInterface) { | 35 | public SelectDialog(@NonNull Context context, String tipText, String btnCancelText, DialogInterface cancelInterface, String btnOkText, DialogInterface okInterface) { |
| 36 | super(context, R.style.MyDialog); | 36 | super(context, R.style.MyDialog); |
| 37 | this.context = context; | 37 | this.context = context; |
| 38 | - view = LayoutInflater.from(context).inflate(R.layout.dialog_select, null); | 38 | + view = LayoutInflater.from(context).inflate(R.layout.pedometer_dialog_select, null); |
| 39 | initView(view); | 39 | initView(view); |
| 40 | layoutParams = new LinearLayout.LayoutParams((int) (getScreenWidth(context) * 0.8), ViewGroup.LayoutParams.WRAP_CONTENT); | 40 | layoutParams = new LinearLayout.LayoutParams((int) (getScreenWidth(context) * 0.8), ViewGroup.LayoutParams.WRAP_CONTENT); |
| 41 | ll_child.setLayoutParams(layoutParams); | 41 | ll_child.setLayoutParams(layoutParams); |
moudle_pedometer/src/main/java/com/cnlive/moudle/pedometer/ui/widget/TipDialog.java
| @@ -33,7 +33,7 @@ public class TipDialog extends Dialog { | @@ -33,7 +33,7 @@ public class TipDialog extends Dialog { | ||
| 33 | public TipDialog(@NonNull Context context, String tipText, String btnOkText, int okTextColor, DialogInterface okInterface) { | 33 | public TipDialog(@NonNull Context context, String tipText, String btnOkText, int okTextColor, DialogInterface okInterface) { |
| 34 | super(context, R.style.MyDialog); | 34 | super(context, R.style.MyDialog); |
| 35 | this.context = context; | 35 | this.context = context; |
| 36 | - view = LayoutInflater.from(context).inflate(R.layout.dialog_tip, null); | 36 | + view = LayoutInflater.from(context).inflate(R.layout.pedometer_dialog_tip, null); |
| 37 | initView(view); | 37 | initView(view); |
| 38 | layoutParams = new LinearLayout.LayoutParams((int) (getScreenWidth(context) * 0.75), ViewGroup.LayoutParams.WRAP_CONTENT); | 38 | layoutParams = new LinearLayout.LayoutParams((int) (getScreenWidth(context) * 0.75), ViewGroup.LayoutParams.WRAP_CONTENT); |
| 39 | ll_child.setLayoutParams(layoutParams); | 39 | ll_child.setLayoutParams(layoutParams); |
moudle_pedometer/src/main/res/layout/dialog_select.xml renamed to moudle_pedometer/src/main/res/layout/pedometer_dialog_select.xml
moudle_pedometer/src/main/res/layout/dialog_tip.xml renamed to moudle_pedometer/src/main/res/layout/pedometer_dialog_tip.xml