From b2dd50988a69011b92f5699d065f7aa076058007 Mon Sep 17 00:00:00 2001
From: lh <1209405678@qq.com>
Date: Tue, 3 Apr 2018 11:03:06 +0800
Subject: [PATCH] no message
---
.../qhclh/ytzh/ui/Chose2timePopuWindow.java | 8 +-
app/src/main/res/drawable/shape_white_pop.xml | 15 +++
app/src/main/res/layout/pop_chosetime.xml | 97 +++++++++++--------
3 files changed, 74 insertions(+), 46 deletions(-)
create mode 100644 app/src/main/res/drawable/shape_white_pop.xml
diff --git a/app/src/main/java/com/qhclh/ytzh/ui/Chose2timePopuWindow.java b/app/src/main/java/com/qhclh/ytzh/ui/Chose2timePopuWindow.java
index 219fbac..8f0f81c 100644
--- a/app/src/main/java/com/qhclh/ytzh/ui/Chose2timePopuWindow.java
+++ b/app/src/main/java/com/qhclh/ytzh/ui/Chose2timePopuWindow.java
@@ -48,22 +48,22 @@ public class Chose2timePopuWindow extends PopupWindow {
// 设置SelectPicPopupWindow的View
this.setContentView(conentView);
// 设置SelectPicPopupWindow弹出窗体的宽
- this.setWidth(w / 2 + 50);
+ this.setWidth(LinearLayout.LayoutParams.MATCH_PARENT);
// 设置SelectPicPopupWindow弹出窗体的高
- this.setHeight(LinearLayout.LayoutParams.WRAP_CONTENT);
+ this.setHeight(LinearLayout.LayoutParams.MATCH_PARENT);
// 设置SelectPicPopupWindow弹出窗体可点击
this.setFocusable(true);
this.setOutsideTouchable(true);
// 刷新状态
this.update();
// 实例化一个ColorDrawable颜色为半透明
- ColorDrawable dw = new ColorDrawable(0000000000);
+ ColorDrawable dw = new ColorDrawable(0xb0000000);
// 点back键和其他地方使其消失,设置了这个才能触发OnDismisslistener ,设置其他控件变化等操作
this.setBackgroundDrawable(dw);
LinearLayout ll_pop_start = conentView.findViewById(R.id.ll_pop_start);
LinearLayout ll_pop_end = conentView.findViewById(R.id.ll_pop_end);
- Button pop_btn = conentView.findViewById(R.id.pop_btn);
+ TextView pop_btn = conentView.findViewById(R.id.pop_btn);
final TextView tv_start = conentView.findViewById(R.id.tv_start);
final TextView tv_end = conentView.findViewById(R.id.tv_end);
diff --git a/app/src/main/res/drawable/shape_white_pop.xml b/app/src/main/res/drawable/shape_white_pop.xml
new file mode 100644
index 0000000..6e47bb2
--- /dev/null
+++ b/app/src/main/res/drawable/shape_white_pop.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/pop_chosetime.xml b/app/src/main/res/layout/pop_chosetime.xml
index 4dc1dd4..2b74339 100644
--- a/app/src/main/res/layout/pop_chosetime.xml
+++ b/app/src/main/res/layout/pop_chosetime.xml
@@ -5,72 +5,85 @@
android:gravity="center"
android:orientation="vertical">
-
-
+ android:orientation="vertical">
-
-
-
+ android:orientation="horizontal"
+ android:paddingBottom="@dimen/dp_10"
+ android:paddingLeft="@dimen/dp_20"
+ android:paddingTop="@dimen/dp_10">
-
+
-
+
-
+
-
+ android:orientation="horizontal"
+ android:paddingBottom="@dimen/dp_10"
+ android:paddingLeft="@dimen/dp_20"
+ android:paddingTop="@dimen/dp_10">
-
+
+
+
+
+
-