diff --git a/app/src/main/java/com/casic/app/smartwell/view/WellManagementActivity.kt b/app/src/main/java/com/casic/app/smartwell/view/WellManagementActivity.kt
index b8f589c..9b25651 100644
--- a/app/src/main/java/com/casic/app/smartwell/view/WellManagementActivity.kt
+++ b/app/src/main/java/com/casic/app/smartwell/view/WellManagementActivity.kt
@@ -4,7 +4,6 @@
import android.os.Handler
import android.os.Looper
import android.os.Message
-import android.view.View
import android.view.animation.LinearInterpolator
import androidx.lifecycle.ViewModelProvider
import androidx.recyclerview.widget.LinearLayoutManager
@@ -23,7 +22,6 @@
import com.casic.app.smartwell.vm.WellTypeViewModel
import com.casic.app.smartwell.widgets.EasyPopupWindow
import kotlinx.android.synthetic.main.activity_well_management.*
-import kotlinx.android.synthetic.main.include_base_title.*
import kotlinx.android.synthetic.main.include_empty_view.*
import kotlinx.android.synthetic.main.include_search_bar.*
import java.lang.ref.WeakReference
@@ -48,9 +46,7 @@
override fun initLayoutView(): Int = R.layout.activity_well_management
override fun setupTopBarLayout() {
- titleView.text = "窨井管理"
- leftBackView.visibility = View.VISIBLE
- leftBackView.setOnClickListener { finish() }
+
}
override fun initData() {
diff --git a/app/src/main/java/com/casic/app/smartwell/view/WellManagementActivity.kt b/app/src/main/java/com/casic/app/smartwell/view/WellManagementActivity.kt
index b8f589c..9b25651 100644
--- a/app/src/main/java/com/casic/app/smartwell/view/WellManagementActivity.kt
+++ b/app/src/main/java/com/casic/app/smartwell/view/WellManagementActivity.kt
@@ -4,7 +4,6 @@
import android.os.Handler
import android.os.Looper
import android.os.Message
-import android.view.View
import android.view.animation.LinearInterpolator
import androidx.lifecycle.ViewModelProvider
import androidx.recyclerview.widget.LinearLayoutManager
@@ -23,7 +22,6 @@
import com.casic.app.smartwell.vm.WellTypeViewModel
import com.casic.app.smartwell.widgets.EasyPopupWindow
import kotlinx.android.synthetic.main.activity_well_management.*
-import kotlinx.android.synthetic.main.include_base_title.*
import kotlinx.android.synthetic.main.include_empty_view.*
import kotlinx.android.synthetic.main.include_search_bar.*
import java.lang.ref.WeakReference
@@ -48,9 +46,7 @@
override fun initLayoutView(): Int = R.layout.activity_well_management
override fun setupTopBarLayout() {
- titleView.text = "窨井管理"
- leftBackView.visibility = View.VISIBLE
- leftBackView.setOnClickListener { finish() }
+
}
override fun initData() {
diff --git a/app/src/main/java/com/casic/app/smartwell/view/WellOperationActivity.kt b/app/src/main/java/com/casic/app/smartwell/view/WellOperationActivity.kt
index 9876f1e..561d5d4 100644
--- a/app/src/main/java/com/casic/app/smartwell/view/WellOperationActivity.kt
+++ b/app/src/main/java/com/casic/app/smartwell/view/WellOperationActivity.kt
@@ -4,7 +4,6 @@
import android.os.Handler
import android.os.Looper
import android.os.Message
-import android.view.View
import android.view.animation.LinearInterpolator
import androidx.lifecycle.ViewModelProvider
import androidx.recyclerview.widget.LinearLayoutManager
@@ -27,7 +26,6 @@
import com.casic.app.smartwell.widgets.EasyPopupWindow
import com.pengxh.app.multilib.widget.dialog.AlertControlDialog
import kotlinx.android.synthetic.main.activity_well_operation.*
-import kotlinx.android.synthetic.main.include_base_title.*
import kotlinx.android.synthetic.main.include_empty_view.*
import kotlinx.android.synthetic.main.include_search_bar.*
import java.lang.ref.WeakReference
@@ -53,9 +51,7 @@
override fun initLayoutView(): Int = R.layout.activity_well_operation
override fun setupTopBarLayout() {
- titleView.text = "布防撤防"
- leftBackView.visibility = View.VISIBLE
- leftBackView.setOnClickListener { finish() }
+
}
override fun initData() {
diff --git a/app/src/main/java/com/casic/app/smartwell/view/WellManagementActivity.kt b/app/src/main/java/com/casic/app/smartwell/view/WellManagementActivity.kt
index b8f589c..9b25651 100644
--- a/app/src/main/java/com/casic/app/smartwell/view/WellManagementActivity.kt
+++ b/app/src/main/java/com/casic/app/smartwell/view/WellManagementActivity.kt
@@ -4,7 +4,6 @@
import android.os.Handler
import android.os.Looper
import android.os.Message
-import android.view.View
import android.view.animation.LinearInterpolator
import androidx.lifecycle.ViewModelProvider
import androidx.recyclerview.widget.LinearLayoutManager
@@ -23,7 +22,6 @@
import com.casic.app.smartwell.vm.WellTypeViewModel
import com.casic.app.smartwell.widgets.EasyPopupWindow
import kotlinx.android.synthetic.main.activity_well_management.*
-import kotlinx.android.synthetic.main.include_base_title.*
import kotlinx.android.synthetic.main.include_empty_view.*
import kotlinx.android.synthetic.main.include_search_bar.*
import java.lang.ref.WeakReference
@@ -48,9 +46,7 @@
override fun initLayoutView(): Int = R.layout.activity_well_management
override fun setupTopBarLayout() {
- titleView.text = "窨井管理"
- leftBackView.visibility = View.VISIBLE
- leftBackView.setOnClickListener { finish() }
+
}
override fun initData() {
diff --git a/app/src/main/java/com/casic/app/smartwell/view/WellOperationActivity.kt b/app/src/main/java/com/casic/app/smartwell/view/WellOperationActivity.kt
index 9876f1e..561d5d4 100644
--- a/app/src/main/java/com/casic/app/smartwell/view/WellOperationActivity.kt
+++ b/app/src/main/java/com/casic/app/smartwell/view/WellOperationActivity.kt
@@ -4,7 +4,6 @@
import android.os.Handler
import android.os.Looper
import android.os.Message
-import android.view.View
import android.view.animation.LinearInterpolator
import androidx.lifecycle.ViewModelProvider
import androidx.recyclerview.widget.LinearLayoutManager
@@ -27,7 +26,6 @@
import com.casic.app.smartwell.widgets.EasyPopupWindow
import com.pengxh.app.multilib.widget.dialog.AlertControlDialog
import kotlinx.android.synthetic.main.activity_well_operation.*
-import kotlinx.android.synthetic.main.include_base_title.*
import kotlinx.android.synthetic.main.include_empty_view.*
import kotlinx.android.synthetic.main.include_search_bar.*
import java.lang.ref.WeakReference
@@ -53,9 +51,7 @@
override fun initLayoutView(): Int = R.layout.activity_well_operation
override fun setupTopBarLayout() {
- titleView.text = "布防撤防"
- leftBackView.visibility = View.VISIBLE
- leftBackView.setOnClickListener { finish() }
+
}
override fun initData() {
diff --git a/app/src/main/java/com/casic/app/smartwell/view/fragment/HomePageFragment.kt b/app/src/main/java/com/casic/app/smartwell/view/fragment/HomePageFragment.kt
index ed8f009..78e7414 100644
--- a/app/src/main/java/com/casic/app/smartwell/view/fragment/HomePageFragment.kt
+++ b/app/src/main/java/com/casic/app/smartwell/view/fragment/HomePageFragment.kt
@@ -28,6 +28,8 @@
import com.casic.app.smartwell.vm.WellListViewModel
import com.casic.app.smartwell.vm.WorkOrderViewModel
import com.casic.app.smartwell.widgets.GaoDeClusterMarkerView
+import com.google.android.material.bottomsheet.BottomSheetBehavior
+import com.pengxh.app.multilib.utils.SizeUtil
import com.pengxh.app.multilib.widget.dialog.AlertControlDialog
import kotlinx.android.synthetic.main.fragment_home.view.*
import kotlinx.android.synthetic.main.include_base_title.view.*
@@ -62,6 +64,18 @@
homeView = inflater.inflate(R.layout.fragment_home, container, false)
homeView.titleView.text = "首页"
+ //代码设置底部拉升距离
+ val bottomSheetBehavior = BottomSheetBehavior.from(homeView.bottomBehaviorLayout)
+ homeView.coordinatorLayout.post {
+ bottomSheetBehavior.isFitToContents = false
+ bottomSheetBehavior.halfExpandedRatio = 0.23f
+ bottomSheetBehavior.isHideable = false
+ bottomSheetBehavior.peekHeight = SizeUtil.dp2px(requireContext(), 30f)
+ bottomSheetBehavior.setExpandedOffset(
+ (SizeUtil.getScreenHeight(requireContext()) * 0.3).toInt()
+ )
+ }
+
//初始化vm
wellCountViewModel = ViewModelProvider(this).get(WellCountViewModel::class.java)
workOrderViewModel = ViewModelProvider(this).get(WorkOrderViewModel::class.java)
diff --git a/app/src/main/java/com/casic/app/smartwell/view/WellManagementActivity.kt b/app/src/main/java/com/casic/app/smartwell/view/WellManagementActivity.kt
index b8f589c..9b25651 100644
--- a/app/src/main/java/com/casic/app/smartwell/view/WellManagementActivity.kt
+++ b/app/src/main/java/com/casic/app/smartwell/view/WellManagementActivity.kt
@@ -4,7 +4,6 @@
import android.os.Handler
import android.os.Looper
import android.os.Message
-import android.view.View
import android.view.animation.LinearInterpolator
import androidx.lifecycle.ViewModelProvider
import androidx.recyclerview.widget.LinearLayoutManager
@@ -23,7 +22,6 @@
import com.casic.app.smartwell.vm.WellTypeViewModel
import com.casic.app.smartwell.widgets.EasyPopupWindow
import kotlinx.android.synthetic.main.activity_well_management.*
-import kotlinx.android.synthetic.main.include_base_title.*
import kotlinx.android.synthetic.main.include_empty_view.*
import kotlinx.android.synthetic.main.include_search_bar.*
import java.lang.ref.WeakReference
@@ -48,9 +46,7 @@
override fun initLayoutView(): Int = R.layout.activity_well_management
override fun setupTopBarLayout() {
- titleView.text = "窨井管理"
- leftBackView.visibility = View.VISIBLE
- leftBackView.setOnClickListener { finish() }
+
}
override fun initData() {
diff --git a/app/src/main/java/com/casic/app/smartwell/view/WellOperationActivity.kt b/app/src/main/java/com/casic/app/smartwell/view/WellOperationActivity.kt
index 9876f1e..561d5d4 100644
--- a/app/src/main/java/com/casic/app/smartwell/view/WellOperationActivity.kt
+++ b/app/src/main/java/com/casic/app/smartwell/view/WellOperationActivity.kt
@@ -4,7 +4,6 @@
import android.os.Handler
import android.os.Looper
import android.os.Message
-import android.view.View
import android.view.animation.LinearInterpolator
import androidx.lifecycle.ViewModelProvider
import androidx.recyclerview.widget.LinearLayoutManager
@@ -27,7 +26,6 @@
import com.casic.app.smartwell.widgets.EasyPopupWindow
import com.pengxh.app.multilib.widget.dialog.AlertControlDialog
import kotlinx.android.synthetic.main.activity_well_operation.*
-import kotlinx.android.synthetic.main.include_base_title.*
import kotlinx.android.synthetic.main.include_empty_view.*
import kotlinx.android.synthetic.main.include_search_bar.*
import java.lang.ref.WeakReference
@@ -53,9 +51,7 @@
override fun initLayoutView(): Int = R.layout.activity_well_operation
override fun setupTopBarLayout() {
- titleView.text = "布防撤防"
- leftBackView.visibility = View.VISIBLE
- leftBackView.setOnClickListener { finish() }
+
}
override fun initData() {
diff --git a/app/src/main/java/com/casic/app/smartwell/view/fragment/HomePageFragment.kt b/app/src/main/java/com/casic/app/smartwell/view/fragment/HomePageFragment.kt
index ed8f009..78e7414 100644
--- a/app/src/main/java/com/casic/app/smartwell/view/fragment/HomePageFragment.kt
+++ b/app/src/main/java/com/casic/app/smartwell/view/fragment/HomePageFragment.kt
@@ -28,6 +28,8 @@
import com.casic.app.smartwell.vm.WellListViewModel
import com.casic.app.smartwell.vm.WorkOrderViewModel
import com.casic.app.smartwell.widgets.GaoDeClusterMarkerView
+import com.google.android.material.bottomsheet.BottomSheetBehavior
+import com.pengxh.app.multilib.utils.SizeUtil
import com.pengxh.app.multilib.widget.dialog.AlertControlDialog
import kotlinx.android.synthetic.main.fragment_home.view.*
import kotlinx.android.synthetic.main.include_base_title.view.*
@@ -62,6 +64,18 @@
homeView = inflater.inflate(R.layout.fragment_home, container, false)
homeView.titleView.text = "首页"
+ //代码设置底部拉升距离
+ val bottomSheetBehavior = BottomSheetBehavior.from(homeView.bottomBehaviorLayout)
+ homeView.coordinatorLayout.post {
+ bottomSheetBehavior.isFitToContents = false
+ bottomSheetBehavior.halfExpandedRatio = 0.23f
+ bottomSheetBehavior.isHideable = false
+ bottomSheetBehavior.peekHeight = SizeUtil.dp2px(requireContext(), 30f)
+ bottomSheetBehavior.setExpandedOffset(
+ (SizeUtil.getScreenHeight(requireContext()) * 0.3).toInt()
+ )
+ }
+
//初始化vm
wellCountViewModel = ViewModelProvider(this).get(WellCountViewModel::class.java)
workOrderViewModel = ViewModelProvider(this).get(WorkOrderViewModel::class.java)
diff --git a/app/src/main/res/drawable/bg_layout.xml b/app/src/main/res/drawable/bg_layout.xml
index d56f439..f00d59c 100644
--- a/app/src/main/res/drawable/bg_layout.xml
+++ b/app/src/main/res/drawable/bg_layout.xml
@@ -4,5 +4,5 @@
-
+
\ No newline at end of file
diff --git a/app/src/main/java/com/casic/app/smartwell/view/WellManagementActivity.kt b/app/src/main/java/com/casic/app/smartwell/view/WellManagementActivity.kt
index b8f589c..9b25651 100644
--- a/app/src/main/java/com/casic/app/smartwell/view/WellManagementActivity.kt
+++ b/app/src/main/java/com/casic/app/smartwell/view/WellManagementActivity.kt
@@ -4,7 +4,6 @@
import android.os.Handler
import android.os.Looper
import android.os.Message
-import android.view.View
import android.view.animation.LinearInterpolator
import androidx.lifecycle.ViewModelProvider
import androidx.recyclerview.widget.LinearLayoutManager
@@ -23,7 +22,6 @@
import com.casic.app.smartwell.vm.WellTypeViewModel
import com.casic.app.smartwell.widgets.EasyPopupWindow
import kotlinx.android.synthetic.main.activity_well_management.*
-import kotlinx.android.synthetic.main.include_base_title.*
import kotlinx.android.synthetic.main.include_empty_view.*
import kotlinx.android.synthetic.main.include_search_bar.*
import java.lang.ref.WeakReference
@@ -48,9 +46,7 @@
override fun initLayoutView(): Int = R.layout.activity_well_management
override fun setupTopBarLayout() {
- titleView.text = "窨井管理"
- leftBackView.visibility = View.VISIBLE
- leftBackView.setOnClickListener { finish() }
+
}
override fun initData() {
diff --git a/app/src/main/java/com/casic/app/smartwell/view/WellOperationActivity.kt b/app/src/main/java/com/casic/app/smartwell/view/WellOperationActivity.kt
index 9876f1e..561d5d4 100644
--- a/app/src/main/java/com/casic/app/smartwell/view/WellOperationActivity.kt
+++ b/app/src/main/java/com/casic/app/smartwell/view/WellOperationActivity.kt
@@ -4,7 +4,6 @@
import android.os.Handler
import android.os.Looper
import android.os.Message
-import android.view.View
import android.view.animation.LinearInterpolator
import androidx.lifecycle.ViewModelProvider
import androidx.recyclerview.widget.LinearLayoutManager
@@ -27,7 +26,6 @@
import com.casic.app.smartwell.widgets.EasyPopupWindow
import com.pengxh.app.multilib.widget.dialog.AlertControlDialog
import kotlinx.android.synthetic.main.activity_well_operation.*
-import kotlinx.android.synthetic.main.include_base_title.*
import kotlinx.android.synthetic.main.include_empty_view.*
import kotlinx.android.synthetic.main.include_search_bar.*
import java.lang.ref.WeakReference
@@ -53,9 +51,7 @@
override fun initLayoutView(): Int = R.layout.activity_well_operation
override fun setupTopBarLayout() {
- titleView.text = "布防撤防"
- leftBackView.visibility = View.VISIBLE
- leftBackView.setOnClickListener { finish() }
+
}
override fun initData() {
diff --git a/app/src/main/java/com/casic/app/smartwell/view/fragment/HomePageFragment.kt b/app/src/main/java/com/casic/app/smartwell/view/fragment/HomePageFragment.kt
index ed8f009..78e7414 100644
--- a/app/src/main/java/com/casic/app/smartwell/view/fragment/HomePageFragment.kt
+++ b/app/src/main/java/com/casic/app/smartwell/view/fragment/HomePageFragment.kt
@@ -28,6 +28,8 @@
import com.casic.app.smartwell.vm.WellListViewModel
import com.casic.app.smartwell.vm.WorkOrderViewModel
import com.casic.app.smartwell.widgets.GaoDeClusterMarkerView
+import com.google.android.material.bottomsheet.BottomSheetBehavior
+import com.pengxh.app.multilib.utils.SizeUtil
import com.pengxh.app.multilib.widget.dialog.AlertControlDialog
import kotlinx.android.synthetic.main.fragment_home.view.*
import kotlinx.android.synthetic.main.include_base_title.view.*
@@ -62,6 +64,18 @@
homeView = inflater.inflate(R.layout.fragment_home, container, false)
homeView.titleView.text = "首页"
+ //代码设置底部拉升距离
+ val bottomSheetBehavior = BottomSheetBehavior.from(homeView.bottomBehaviorLayout)
+ homeView.coordinatorLayout.post {
+ bottomSheetBehavior.isFitToContents = false
+ bottomSheetBehavior.halfExpandedRatio = 0.23f
+ bottomSheetBehavior.isHideable = false
+ bottomSheetBehavior.peekHeight = SizeUtil.dp2px(requireContext(), 30f)
+ bottomSheetBehavior.setExpandedOffset(
+ (SizeUtil.getScreenHeight(requireContext()) * 0.3).toInt()
+ )
+ }
+
//初始化vm
wellCountViewModel = ViewModelProvider(this).get(WellCountViewModel::class.java)
workOrderViewModel = ViewModelProvider(this).get(WorkOrderViewModel::class.java)
diff --git a/app/src/main/res/drawable/bg_layout.xml b/app/src/main/res/drawable/bg_layout.xml
index d56f439..f00d59c 100644
--- a/app/src/main/res/drawable/bg_layout.xml
+++ b/app/src/main/res/drawable/bg_layout.xml
@@ -4,5 +4,5 @@
-
+
\ No newline at end of file
diff --git a/app/src/main/res/drawable/bg_layout_radius_20.xml b/app/src/main/res/drawable/bg_layout_radius_20.xml
index ba81626..0c2abfe 100644
--- a/app/src/main/res/drawable/bg_layout_radius_20.xml
+++ b/app/src/main/res/drawable/bg_layout_radius_20.xml
@@ -2,7 +2,7 @@
-
+
-
+
\ No newline at end of file
diff --git a/app/src/main/res/drawable/bg_layout_radius_20.xml b/app/src/main/res/drawable/bg_layout_radius_20.xml
index ba81626..0c2abfe 100644
--- a/app/src/main/res/drawable/bg_layout_radius_20.xml
+++ b/app/src/main/res/drawable/bg_layout_radius_20.xml
@@ -2,7 +2,7 @@
-
+
+ android:color="@color/mainBackColor" />
\ No newline at end of file
diff --git a/app/src/main/java/com/casic/app/smartwell/view/WellManagementActivity.kt b/app/src/main/java/com/casic/app/smartwell/view/WellManagementActivity.kt
index b8f589c..9b25651 100644
--- a/app/src/main/java/com/casic/app/smartwell/view/WellManagementActivity.kt
+++ b/app/src/main/java/com/casic/app/smartwell/view/WellManagementActivity.kt
@@ -4,7 +4,6 @@
import android.os.Handler
import android.os.Looper
import android.os.Message
-import android.view.View
import android.view.animation.LinearInterpolator
import androidx.lifecycle.ViewModelProvider
import androidx.recyclerview.widget.LinearLayoutManager
@@ -23,7 +22,6 @@
import com.casic.app.smartwell.vm.WellTypeViewModel
import com.casic.app.smartwell.widgets.EasyPopupWindow
import kotlinx.android.synthetic.main.activity_well_management.*
-import kotlinx.android.synthetic.main.include_base_title.*
import kotlinx.android.synthetic.main.include_empty_view.*
import kotlinx.android.synthetic.main.include_search_bar.*
import java.lang.ref.WeakReference
@@ -48,9 +46,7 @@
override fun initLayoutView(): Int = R.layout.activity_well_management
override fun setupTopBarLayout() {
- titleView.text = "窨井管理"
- leftBackView.visibility = View.VISIBLE
- leftBackView.setOnClickListener { finish() }
+
}
override fun initData() {
diff --git a/app/src/main/java/com/casic/app/smartwell/view/WellOperationActivity.kt b/app/src/main/java/com/casic/app/smartwell/view/WellOperationActivity.kt
index 9876f1e..561d5d4 100644
--- a/app/src/main/java/com/casic/app/smartwell/view/WellOperationActivity.kt
+++ b/app/src/main/java/com/casic/app/smartwell/view/WellOperationActivity.kt
@@ -4,7 +4,6 @@
import android.os.Handler
import android.os.Looper
import android.os.Message
-import android.view.View
import android.view.animation.LinearInterpolator
import androidx.lifecycle.ViewModelProvider
import androidx.recyclerview.widget.LinearLayoutManager
@@ -27,7 +26,6 @@
import com.casic.app.smartwell.widgets.EasyPopupWindow
import com.pengxh.app.multilib.widget.dialog.AlertControlDialog
import kotlinx.android.synthetic.main.activity_well_operation.*
-import kotlinx.android.synthetic.main.include_base_title.*
import kotlinx.android.synthetic.main.include_empty_view.*
import kotlinx.android.synthetic.main.include_search_bar.*
import java.lang.ref.WeakReference
@@ -53,9 +51,7 @@
override fun initLayoutView(): Int = R.layout.activity_well_operation
override fun setupTopBarLayout() {
- titleView.text = "布防撤防"
- leftBackView.visibility = View.VISIBLE
- leftBackView.setOnClickListener { finish() }
+
}
override fun initData() {
diff --git a/app/src/main/java/com/casic/app/smartwell/view/fragment/HomePageFragment.kt b/app/src/main/java/com/casic/app/smartwell/view/fragment/HomePageFragment.kt
index ed8f009..78e7414 100644
--- a/app/src/main/java/com/casic/app/smartwell/view/fragment/HomePageFragment.kt
+++ b/app/src/main/java/com/casic/app/smartwell/view/fragment/HomePageFragment.kt
@@ -28,6 +28,8 @@
import com.casic.app.smartwell.vm.WellListViewModel
import com.casic.app.smartwell.vm.WorkOrderViewModel
import com.casic.app.smartwell.widgets.GaoDeClusterMarkerView
+import com.google.android.material.bottomsheet.BottomSheetBehavior
+import com.pengxh.app.multilib.utils.SizeUtil
import com.pengxh.app.multilib.widget.dialog.AlertControlDialog
import kotlinx.android.synthetic.main.fragment_home.view.*
import kotlinx.android.synthetic.main.include_base_title.view.*
@@ -62,6 +64,18 @@
homeView = inflater.inflate(R.layout.fragment_home, container, false)
homeView.titleView.text = "首页"
+ //代码设置底部拉升距离
+ val bottomSheetBehavior = BottomSheetBehavior.from(homeView.bottomBehaviorLayout)
+ homeView.coordinatorLayout.post {
+ bottomSheetBehavior.isFitToContents = false
+ bottomSheetBehavior.halfExpandedRatio = 0.23f
+ bottomSheetBehavior.isHideable = false
+ bottomSheetBehavior.peekHeight = SizeUtil.dp2px(requireContext(), 30f)
+ bottomSheetBehavior.setExpandedOffset(
+ (SizeUtil.getScreenHeight(requireContext()) * 0.3).toInt()
+ )
+ }
+
//初始化vm
wellCountViewModel = ViewModelProvider(this).get(WellCountViewModel::class.java)
workOrderViewModel = ViewModelProvider(this).get(WorkOrderViewModel::class.java)
diff --git a/app/src/main/res/drawable/bg_layout.xml b/app/src/main/res/drawable/bg_layout.xml
index d56f439..f00d59c 100644
--- a/app/src/main/res/drawable/bg_layout.xml
+++ b/app/src/main/res/drawable/bg_layout.xml
@@ -4,5 +4,5 @@
-
+
\ No newline at end of file
diff --git a/app/src/main/res/drawable/bg_layout_radius_20.xml b/app/src/main/res/drawable/bg_layout_radius_20.xml
index ba81626..0c2abfe 100644
--- a/app/src/main/res/drawable/bg_layout_radius_20.xml
+++ b/app/src/main/res/drawable/bg_layout_radius_20.xml
@@ -2,7 +2,7 @@
-
+
+ android:color="@color/mainBackColor" />
\ No newline at end of file
diff --git a/app/src/main/res/drawable/bottom_short_line.xml b/app/src/main/res/drawable/bottom_short_line.xml
new file mode 100644
index 0000000..10c9062
--- /dev/null
+++ b/app/src/main/res/drawable/bottom_short_line.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/java/com/casic/app/smartwell/view/WellManagementActivity.kt b/app/src/main/java/com/casic/app/smartwell/view/WellManagementActivity.kt
index b8f589c..9b25651 100644
--- a/app/src/main/java/com/casic/app/smartwell/view/WellManagementActivity.kt
+++ b/app/src/main/java/com/casic/app/smartwell/view/WellManagementActivity.kt
@@ -4,7 +4,6 @@
import android.os.Handler
import android.os.Looper
import android.os.Message
-import android.view.View
import android.view.animation.LinearInterpolator
import androidx.lifecycle.ViewModelProvider
import androidx.recyclerview.widget.LinearLayoutManager
@@ -23,7 +22,6 @@
import com.casic.app.smartwell.vm.WellTypeViewModel
import com.casic.app.smartwell.widgets.EasyPopupWindow
import kotlinx.android.synthetic.main.activity_well_management.*
-import kotlinx.android.synthetic.main.include_base_title.*
import kotlinx.android.synthetic.main.include_empty_view.*
import kotlinx.android.synthetic.main.include_search_bar.*
import java.lang.ref.WeakReference
@@ -48,9 +46,7 @@
override fun initLayoutView(): Int = R.layout.activity_well_management
override fun setupTopBarLayout() {
- titleView.text = "窨井管理"
- leftBackView.visibility = View.VISIBLE
- leftBackView.setOnClickListener { finish() }
+
}
override fun initData() {
diff --git a/app/src/main/java/com/casic/app/smartwell/view/WellOperationActivity.kt b/app/src/main/java/com/casic/app/smartwell/view/WellOperationActivity.kt
index 9876f1e..561d5d4 100644
--- a/app/src/main/java/com/casic/app/smartwell/view/WellOperationActivity.kt
+++ b/app/src/main/java/com/casic/app/smartwell/view/WellOperationActivity.kt
@@ -4,7 +4,6 @@
import android.os.Handler
import android.os.Looper
import android.os.Message
-import android.view.View
import android.view.animation.LinearInterpolator
import androidx.lifecycle.ViewModelProvider
import androidx.recyclerview.widget.LinearLayoutManager
@@ -27,7 +26,6 @@
import com.casic.app.smartwell.widgets.EasyPopupWindow
import com.pengxh.app.multilib.widget.dialog.AlertControlDialog
import kotlinx.android.synthetic.main.activity_well_operation.*
-import kotlinx.android.synthetic.main.include_base_title.*
import kotlinx.android.synthetic.main.include_empty_view.*
import kotlinx.android.synthetic.main.include_search_bar.*
import java.lang.ref.WeakReference
@@ -53,9 +51,7 @@
override fun initLayoutView(): Int = R.layout.activity_well_operation
override fun setupTopBarLayout() {
- titleView.text = "布防撤防"
- leftBackView.visibility = View.VISIBLE
- leftBackView.setOnClickListener { finish() }
+
}
override fun initData() {
diff --git a/app/src/main/java/com/casic/app/smartwell/view/fragment/HomePageFragment.kt b/app/src/main/java/com/casic/app/smartwell/view/fragment/HomePageFragment.kt
index ed8f009..78e7414 100644
--- a/app/src/main/java/com/casic/app/smartwell/view/fragment/HomePageFragment.kt
+++ b/app/src/main/java/com/casic/app/smartwell/view/fragment/HomePageFragment.kt
@@ -28,6 +28,8 @@
import com.casic.app.smartwell.vm.WellListViewModel
import com.casic.app.smartwell.vm.WorkOrderViewModel
import com.casic.app.smartwell.widgets.GaoDeClusterMarkerView
+import com.google.android.material.bottomsheet.BottomSheetBehavior
+import com.pengxh.app.multilib.utils.SizeUtil
import com.pengxh.app.multilib.widget.dialog.AlertControlDialog
import kotlinx.android.synthetic.main.fragment_home.view.*
import kotlinx.android.synthetic.main.include_base_title.view.*
@@ -62,6 +64,18 @@
homeView = inflater.inflate(R.layout.fragment_home, container, false)
homeView.titleView.text = "首页"
+ //代码设置底部拉升距离
+ val bottomSheetBehavior = BottomSheetBehavior.from(homeView.bottomBehaviorLayout)
+ homeView.coordinatorLayout.post {
+ bottomSheetBehavior.isFitToContents = false
+ bottomSheetBehavior.halfExpandedRatio = 0.23f
+ bottomSheetBehavior.isHideable = false
+ bottomSheetBehavior.peekHeight = SizeUtil.dp2px(requireContext(), 30f)
+ bottomSheetBehavior.setExpandedOffset(
+ (SizeUtil.getScreenHeight(requireContext()) * 0.3).toInt()
+ )
+ }
+
//初始化vm
wellCountViewModel = ViewModelProvider(this).get(WellCountViewModel::class.java)
workOrderViewModel = ViewModelProvider(this).get(WorkOrderViewModel::class.java)
diff --git a/app/src/main/res/drawable/bg_layout.xml b/app/src/main/res/drawable/bg_layout.xml
index d56f439..f00d59c 100644
--- a/app/src/main/res/drawable/bg_layout.xml
+++ b/app/src/main/res/drawable/bg_layout.xml
@@ -4,5 +4,5 @@
-
+
\ No newline at end of file
diff --git a/app/src/main/res/drawable/bg_layout_radius_20.xml b/app/src/main/res/drawable/bg_layout_radius_20.xml
index ba81626..0c2abfe 100644
--- a/app/src/main/res/drawable/bg_layout_radius_20.xml
+++ b/app/src/main/res/drawable/bg_layout_radius_20.xml
@@ -2,7 +2,7 @@
-
+
+ android:color="@color/mainBackColor" />
\ No newline at end of file
diff --git a/app/src/main/res/drawable/bottom_short_line.xml b/app/src/main/res/drawable/bottom_short_line.xml
new file mode 100644
index 0000000..10c9062
--- /dev/null
+++ b/app/src/main/res/drawable/bottom_short_line.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/drawable/ic_up.xml b/app/src/main/res/drawable/ic_up.xml
index 151a0cb..75c718f 100644
--- a/app/src/main/res/drawable/ic_up.xml
+++ b/app/src/main/res/drawable/ic_up.xml
@@ -4,6 +4,6 @@
android:viewportWidth="1024"
android:viewportHeight="1024">
diff --git a/app/src/main/java/com/casic/app/smartwell/view/WellManagementActivity.kt b/app/src/main/java/com/casic/app/smartwell/view/WellManagementActivity.kt
index b8f589c..9b25651 100644
--- a/app/src/main/java/com/casic/app/smartwell/view/WellManagementActivity.kt
+++ b/app/src/main/java/com/casic/app/smartwell/view/WellManagementActivity.kt
@@ -4,7 +4,6 @@
import android.os.Handler
import android.os.Looper
import android.os.Message
-import android.view.View
import android.view.animation.LinearInterpolator
import androidx.lifecycle.ViewModelProvider
import androidx.recyclerview.widget.LinearLayoutManager
@@ -23,7 +22,6 @@
import com.casic.app.smartwell.vm.WellTypeViewModel
import com.casic.app.smartwell.widgets.EasyPopupWindow
import kotlinx.android.synthetic.main.activity_well_management.*
-import kotlinx.android.synthetic.main.include_base_title.*
import kotlinx.android.synthetic.main.include_empty_view.*
import kotlinx.android.synthetic.main.include_search_bar.*
import java.lang.ref.WeakReference
@@ -48,9 +46,7 @@
override fun initLayoutView(): Int = R.layout.activity_well_management
override fun setupTopBarLayout() {
- titleView.text = "窨井管理"
- leftBackView.visibility = View.VISIBLE
- leftBackView.setOnClickListener { finish() }
+
}
override fun initData() {
diff --git a/app/src/main/java/com/casic/app/smartwell/view/WellOperationActivity.kt b/app/src/main/java/com/casic/app/smartwell/view/WellOperationActivity.kt
index 9876f1e..561d5d4 100644
--- a/app/src/main/java/com/casic/app/smartwell/view/WellOperationActivity.kt
+++ b/app/src/main/java/com/casic/app/smartwell/view/WellOperationActivity.kt
@@ -4,7 +4,6 @@
import android.os.Handler
import android.os.Looper
import android.os.Message
-import android.view.View
import android.view.animation.LinearInterpolator
import androidx.lifecycle.ViewModelProvider
import androidx.recyclerview.widget.LinearLayoutManager
@@ -27,7 +26,6 @@
import com.casic.app.smartwell.widgets.EasyPopupWindow
import com.pengxh.app.multilib.widget.dialog.AlertControlDialog
import kotlinx.android.synthetic.main.activity_well_operation.*
-import kotlinx.android.synthetic.main.include_base_title.*
import kotlinx.android.synthetic.main.include_empty_view.*
import kotlinx.android.synthetic.main.include_search_bar.*
import java.lang.ref.WeakReference
@@ -53,9 +51,7 @@
override fun initLayoutView(): Int = R.layout.activity_well_operation
override fun setupTopBarLayout() {
- titleView.text = "布防撤防"
- leftBackView.visibility = View.VISIBLE
- leftBackView.setOnClickListener { finish() }
+
}
override fun initData() {
diff --git a/app/src/main/java/com/casic/app/smartwell/view/fragment/HomePageFragment.kt b/app/src/main/java/com/casic/app/smartwell/view/fragment/HomePageFragment.kt
index ed8f009..78e7414 100644
--- a/app/src/main/java/com/casic/app/smartwell/view/fragment/HomePageFragment.kt
+++ b/app/src/main/java/com/casic/app/smartwell/view/fragment/HomePageFragment.kt
@@ -28,6 +28,8 @@
import com.casic.app.smartwell.vm.WellListViewModel
import com.casic.app.smartwell.vm.WorkOrderViewModel
import com.casic.app.smartwell.widgets.GaoDeClusterMarkerView
+import com.google.android.material.bottomsheet.BottomSheetBehavior
+import com.pengxh.app.multilib.utils.SizeUtil
import com.pengxh.app.multilib.widget.dialog.AlertControlDialog
import kotlinx.android.synthetic.main.fragment_home.view.*
import kotlinx.android.synthetic.main.include_base_title.view.*
@@ -62,6 +64,18 @@
homeView = inflater.inflate(R.layout.fragment_home, container, false)
homeView.titleView.text = "首页"
+ //代码设置底部拉升距离
+ val bottomSheetBehavior = BottomSheetBehavior.from(homeView.bottomBehaviorLayout)
+ homeView.coordinatorLayout.post {
+ bottomSheetBehavior.isFitToContents = false
+ bottomSheetBehavior.halfExpandedRatio = 0.23f
+ bottomSheetBehavior.isHideable = false
+ bottomSheetBehavior.peekHeight = SizeUtil.dp2px(requireContext(), 30f)
+ bottomSheetBehavior.setExpandedOffset(
+ (SizeUtil.getScreenHeight(requireContext()) * 0.3).toInt()
+ )
+ }
+
//初始化vm
wellCountViewModel = ViewModelProvider(this).get(WellCountViewModel::class.java)
workOrderViewModel = ViewModelProvider(this).get(WorkOrderViewModel::class.java)
diff --git a/app/src/main/res/drawable/bg_layout.xml b/app/src/main/res/drawable/bg_layout.xml
index d56f439..f00d59c 100644
--- a/app/src/main/res/drawable/bg_layout.xml
+++ b/app/src/main/res/drawable/bg_layout.xml
@@ -4,5 +4,5 @@
-
+
\ No newline at end of file
diff --git a/app/src/main/res/drawable/bg_layout_radius_20.xml b/app/src/main/res/drawable/bg_layout_radius_20.xml
index ba81626..0c2abfe 100644
--- a/app/src/main/res/drawable/bg_layout_radius_20.xml
+++ b/app/src/main/res/drawable/bg_layout_radius_20.xml
@@ -2,7 +2,7 @@
-
+
+ android:color="@color/mainBackColor" />
\ No newline at end of file
diff --git a/app/src/main/res/drawable/bottom_short_line.xml b/app/src/main/res/drawable/bottom_short_line.xml
new file mode 100644
index 0000000..10c9062
--- /dev/null
+++ b/app/src/main/res/drawable/bottom_short_line.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/drawable/ic_up.xml b/app/src/main/res/drawable/ic_up.xml
index 151a0cb..75c718f 100644
--- a/app/src/main/res/drawable/ic_up.xml
+++ b/app/src/main/res/drawable/ic_up.xml
@@ -4,6 +4,6 @@
android:viewportWidth="1024"
android:viewportHeight="1024">
diff --git a/app/src/main/res/drawable/tag_normal.xml b/app/src/main/res/drawable/tag_normal.xml
index bb88697..d38b7cc 100644
--- a/app/src/main/res/drawable/tag_normal.xml
+++ b/app/src/main/res/drawable/tag_normal.xml
@@ -1,6 +1,6 @@
-
+
diff --git a/app/src/main/java/com/casic/app/smartwell/view/WellManagementActivity.kt b/app/src/main/java/com/casic/app/smartwell/view/WellManagementActivity.kt
index b8f589c..9b25651 100644
--- a/app/src/main/java/com/casic/app/smartwell/view/WellManagementActivity.kt
+++ b/app/src/main/java/com/casic/app/smartwell/view/WellManagementActivity.kt
@@ -4,7 +4,6 @@
import android.os.Handler
import android.os.Looper
import android.os.Message
-import android.view.View
import android.view.animation.LinearInterpolator
import androidx.lifecycle.ViewModelProvider
import androidx.recyclerview.widget.LinearLayoutManager
@@ -23,7 +22,6 @@
import com.casic.app.smartwell.vm.WellTypeViewModel
import com.casic.app.smartwell.widgets.EasyPopupWindow
import kotlinx.android.synthetic.main.activity_well_management.*
-import kotlinx.android.synthetic.main.include_base_title.*
import kotlinx.android.synthetic.main.include_empty_view.*
import kotlinx.android.synthetic.main.include_search_bar.*
import java.lang.ref.WeakReference
@@ -48,9 +46,7 @@
override fun initLayoutView(): Int = R.layout.activity_well_management
override fun setupTopBarLayout() {
- titleView.text = "窨井管理"
- leftBackView.visibility = View.VISIBLE
- leftBackView.setOnClickListener { finish() }
+
}
override fun initData() {
diff --git a/app/src/main/java/com/casic/app/smartwell/view/WellOperationActivity.kt b/app/src/main/java/com/casic/app/smartwell/view/WellOperationActivity.kt
index 9876f1e..561d5d4 100644
--- a/app/src/main/java/com/casic/app/smartwell/view/WellOperationActivity.kt
+++ b/app/src/main/java/com/casic/app/smartwell/view/WellOperationActivity.kt
@@ -4,7 +4,6 @@
import android.os.Handler
import android.os.Looper
import android.os.Message
-import android.view.View
import android.view.animation.LinearInterpolator
import androidx.lifecycle.ViewModelProvider
import androidx.recyclerview.widget.LinearLayoutManager
@@ -27,7 +26,6 @@
import com.casic.app.smartwell.widgets.EasyPopupWindow
import com.pengxh.app.multilib.widget.dialog.AlertControlDialog
import kotlinx.android.synthetic.main.activity_well_operation.*
-import kotlinx.android.synthetic.main.include_base_title.*
import kotlinx.android.synthetic.main.include_empty_view.*
import kotlinx.android.synthetic.main.include_search_bar.*
import java.lang.ref.WeakReference
@@ -53,9 +51,7 @@
override fun initLayoutView(): Int = R.layout.activity_well_operation
override fun setupTopBarLayout() {
- titleView.text = "布防撤防"
- leftBackView.visibility = View.VISIBLE
- leftBackView.setOnClickListener { finish() }
+
}
override fun initData() {
diff --git a/app/src/main/java/com/casic/app/smartwell/view/fragment/HomePageFragment.kt b/app/src/main/java/com/casic/app/smartwell/view/fragment/HomePageFragment.kt
index ed8f009..78e7414 100644
--- a/app/src/main/java/com/casic/app/smartwell/view/fragment/HomePageFragment.kt
+++ b/app/src/main/java/com/casic/app/smartwell/view/fragment/HomePageFragment.kt
@@ -28,6 +28,8 @@
import com.casic.app.smartwell.vm.WellListViewModel
import com.casic.app.smartwell.vm.WorkOrderViewModel
import com.casic.app.smartwell.widgets.GaoDeClusterMarkerView
+import com.google.android.material.bottomsheet.BottomSheetBehavior
+import com.pengxh.app.multilib.utils.SizeUtil
import com.pengxh.app.multilib.widget.dialog.AlertControlDialog
import kotlinx.android.synthetic.main.fragment_home.view.*
import kotlinx.android.synthetic.main.include_base_title.view.*
@@ -62,6 +64,18 @@
homeView = inflater.inflate(R.layout.fragment_home, container, false)
homeView.titleView.text = "首页"
+ //代码设置底部拉升距离
+ val bottomSheetBehavior = BottomSheetBehavior.from(homeView.bottomBehaviorLayout)
+ homeView.coordinatorLayout.post {
+ bottomSheetBehavior.isFitToContents = false
+ bottomSheetBehavior.halfExpandedRatio = 0.23f
+ bottomSheetBehavior.isHideable = false
+ bottomSheetBehavior.peekHeight = SizeUtil.dp2px(requireContext(), 30f)
+ bottomSheetBehavior.setExpandedOffset(
+ (SizeUtil.getScreenHeight(requireContext()) * 0.3).toInt()
+ )
+ }
+
//初始化vm
wellCountViewModel = ViewModelProvider(this).get(WellCountViewModel::class.java)
workOrderViewModel = ViewModelProvider(this).get(WorkOrderViewModel::class.java)
diff --git a/app/src/main/res/drawable/bg_layout.xml b/app/src/main/res/drawable/bg_layout.xml
index d56f439..f00d59c 100644
--- a/app/src/main/res/drawable/bg_layout.xml
+++ b/app/src/main/res/drawable/bg_layout.xml
@@ -4,5 +4,5 @@
-
+
\ No newline at end of file
diff --git a/app/src/main/res/drawable/bg_layout_radius_20.xml b/app/src/main/res/drawable/bg_layout_radius_20.xml
index ba81626..0c2abfe 100644
--- a/app/src/main/res/drawable/bg_layout_radius_20.xml
+++ b/app/src/main/res/drawable/bg_layout_radius_20.xml
@@ -2,7 +2,7 @@
-
+
+ android:color="@color/mainBackColor" />
\ No newline at end of file
diff --git a/app/src/main/res/drawable/bottom_short_line.xml b/app/src/main/res/drawable/bottom_short_line.xml
new file mode 100644
index 0000000..10c9062
--- /dev/null
+++ b/app/src/main/res/drawable/bottom_short_line.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/drawable/ic_up.xml b/app/src/main/res/drawable/ic_up.xml
index 151a0cb..75c718f 100644
--- a/app/src/main/res/drawable/ic_up.xml
+++ b/app/src/main/res/drawable/ic_up.xml
@@ -4,6 +4,6 @@
android:viewportWidth="1024"
android:viewportHeight="1024">
diff --git a/app/src/main/res/drawable/tag_normal.xml b/app/src/main/res/drawable/tag_normal.xml
index bb88697..d38b7cc 100644
--- a/app/src/main/res/drawable/tag_normal.xml
+++ b/app/src/main/res/drawable/tag_normal.xml
@@ -1,6 +1,6 @@
-
+
diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml
index a7fbbba..a2ccde6 100644
--- a/app/src/main/res/layout/activity_main.xml
+++ b/app/src/main/res/layout/activity_main.xml
@@ -22,6 +22,5 @@
android:background="@color/white"
app:itemIconTint="@drawable/bottom_text_color"
app:itemTextColor="@drawable/bottom_text_color"
- app:labelVisibilityMode="labeled"
app:menu="@menu/bottom_nav_menu" />
\ No newline at end of file
diff --git a/app/src/main/java/com/casic/app/smartwell/view/WellManagementActivity.kt b/app/src/main/java/com/casic/app/smartwell/view/WellManagementActivity.kt
index b8f589c..9b25651 100644
--- a/app/src/main/java/com/casic/app/smartwell/view/WellManagementActivity.kt
+++ b/app/src/main/java/com/casic/app/smartwell/view/WellManagementActivity.kt
@@ -4,7 +4,6 @@
import android.os.Handler
import android.os.Looper
import android.os.Message
-import android.view.View
import android.view.animation.LinearInterpolator
import androidx.lifecycle.ViewModelProvider
import androidx.recyclerview.widget.LinearLayoutManager
@@ -23,7 +22,6 @@
import com.casic.app.smartwell.vm.WellTypeViewModel
import com.casic.app.smartwell.widgets.EasyPopupWindow
import kotlinx.android.synthetic.main.activity_well_management.*
-import kotlinx.android.synthetic.main.include_base_title.*
import kotlinx.android.synthetic.main.include_empty_view.*
import kotlinx.android.synthetic.main.include_search_bar.*
import java.lang.ref.WeakReference
@@ -48,9 +46,7 @@
override fun initLayoutView(): Int = R.layout.activity_well_management
override fun setupTopBarLayout() {
- titleView.text = "窨井管理"
- leftBackView.visibility = View.VISIBLE
- leftBackView.setOnClickListener { finish() }
+
}
override fun initData() {
diff --git a/app/src/main/java/com/casic/app/smartwell/view/WellOperationActivity.kt b/app/src/main/java/com/casic/app/smartwell/view/WellOperationActivity.kt
index 9876f1e..561d5d4 100644
--- a/app/src/main/java/com/casic/app/smartwell/view/WellOperationActivity.kt
+++ b/app/src/main/java/com/casic/app/smartwell/view/WellOperationActivity.kt
@@ -4,7 +4,6 @@
import android.os.Handler
import android.os.Looper
import android.os.Message
-import android.view.View
import android.view.animation.LinearInterpolator
import androidx.lifecycle.ViewModelProvider
import androidx.recyclerview.widget.LinearLayoutManager
@@ -27,7 +26,6 @@
import com.casic.app.smartwell.widgets.EasyPopupWindow
import com.pengxh.app.multilib.widget.dialog.AlertControlDialog
import kotlinx.android.synthetic.main.activity_well_operation.*
-import kotlinx.android.synthetic.main.include_base_title.*
import kotlinx.android.synthetic.main.include_empty_view.*
import kotlinx.android.synthetic.main.include_search_bar.*
import java.lang.ref.WeakReference
@@ -53,9 +51,7 @@
override fun initLayoutView(): Int = R.layout.activity_well_operation
override fun setupTopBarLayout() {
- titleView.text = "布防撤防"
- leftBackView.visibility = View.VISIBLE
- leftBackView.setOnClickListener { finish() }
+
}
override fun initData() {
diff --git a/app/src/main/java/com/casic/app/smartwell/view/fragment/HomePageFragment.kt b/app/src/main/java/com/casic/app/smartwell/view/fragment/HomePageFragment.kt
index ed8f009..78e7414 100644
--- a/app/src/main/java/com/casic/app/smartwell/view/fragment/HomePageFragment.kt
+++ b/app/src/main/java/com/casic/app/smartwell/view/fragment/HomePageFragment.kt
@@ -28,6 +28,8 @@
import com.casic.app.smartwell.vm.WellListViewModel
import com.casic.app.smartwell.vm.WorkOrderViewModel
import com.casic.app.smartwell.widgets.GaoDeClusterMarkerView
+import com.google.android.material.bottomsheet.BottomSheetBehavior
+import com.pengxh.app.multilib.utils.SizeUtil
import com.pengxh.app.multilib.widget.dialog.AlertControlDialog
import kotlinx.android.synthetic.main.fragment_home.view.*
import kotlinx.android.synthetic.main.include_base_title.view.*
@@ -62,6 +64,18 @@
homeView = inflater.inflate(R.layout.fragment_home, container, false)
homeView.titleView.text = "首页"
+ //代码设置底部拉升距离
+ val bottomSheetBehavior = BottomSheetBehavior.from(homeView.bottomBehaviorLayout)
+ homeView.coordinatorLayout.post {
+ bottomSheetBehavior.isFitToContents = false
+ bottomSheetBehavior.halfExpandedRatio = 0.23f
+ bottomSheetBehavior.isHideable = false
+ bottomSheetBehavior.peekHeight = SizeUtil.dp2px(requireContext(), 30f)
+ bottomSheetBehavior.setExpandedOffset(
+ (SizeUtil.getScreenHeight(requireContext()) * 0.3).toInt()
+ )
+ }
+
//初始化vm
wellCountViewModel = ViewModelProvider(this).get(WellCountViewModel::class.java)
workOrderViewModel = ViewModelProvider(this).get(WorkOrderViewModel::class.java)
diff --git a/app/src/main/res/drawable/bg_layout.xml b/app/src/main/res/drawable/bg_layout.xml
index d56f439..f00d59c 100644
--- a/app/src/main/res/drawable/bg_layout.xml
+++ b/app/src/main/res/drawable/bg_layout.xml
@@ -4,5 +4,5 @@
-
+
\ No newline at end of file
diff --git a/app/src/main/res/drawable/bg_layout_radius_20.xml b/app/src/main/res/drawable/bg_layout_radius_20.xml
index ba81626..0c2abfe 100644
--- a/app/src/main/res/drawable/bg_layout_radius_20.xml
+++ b/app/src/main/res/drawable/bg_layout_radius_20.xml
@@ -2,7 +2,7 @@
-
+
+ android:color="@color/mainBackColor" />
\ No newline at end of file
diff --git a/app/src/main/res/drawable/bottom_short_line.xml b/app/src/main/res/drawable/bottom_short_line.xml
new file mode 100644
index 0000000..10c9062
--- /dev/null
+++ b/app/src/main/res/drawable/bottom_short_line.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/drawable/ic_up.xml b/app/src/main/res/drawable/ic_up.xml
index 151a0cb..75c718f 100644
--- a/app/src/main/res/drawable/ic_up.xml
+++ b/app/src/main/res/drawable/ic_up.xml
@@ -4,6 +4,6 @@
android:viewportWidth="1024"
android:viewportHeight="1024">
diff --git a/app/src/main/res/drawable/tag_normal.xml b/app/src/main/res/drawable/tag_normal.xml
index bb88697..d38b7cc 100644
--- a/app/src/main/res/drawable/tag_normal.xml
+++ b/app/src/main/res/drawable/tag_normal.xml
@@ -1,6 +1,6 @@
-
+
diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml
index a7fbbba..a2ccde6 100644
--- a/app/src/main/res/layout/activity_main.xml
+++ b/app/src/main/res/layout/activity_main.xml
@@ -22,6 +22,5 @@
android:background="@color/white"
app:itemIconTint="@drawable/bottom_text_color"
app:itemTextColor="@drawable/bottom_text_color"
- app:labelVisibilityMode="labeled"
app:menu="@menu/bottom_nav_menu" />
\ No newline at end of file
diff --git a/app/src/main/res/layout/activity_order_overtime.xml b/app/src/main/res/layout/activity_order_overtime.xml
index fdc1aab..914cb85 100644
--- a/app/src/main/res/layout/activity_order_overtime.xml
+++ b/app/src/main/res/layout/activity_order_overtime.xml
@@ -4,7 +4,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:background="@color/mainBackground"
+ android:background="@color/mainBackColor"
android:orientation="vertical"
tools:context=".view.OvertimeOrderActivity">
diff --git a/app/src/main/java/com/casic/app/smartwell/view/WellManagementActivity.kt b/app/src/main/java/com/casic/app/smartwell/view/WellManagementActivity.kt
index b8f589c..9b25651 100644
--- a/app/src/main/java/com/casic/app/smartwell/view/WellManagementActivity.kt
+++ b/app/src/main/java/com/casic/app/smartwell/view/WellManagementActivity.kt
@@ -4,7 +4,6 @@
import android.os.Handler
import android.os.Looper
import android.os.Message
-import android.view.View
import android.view.animation.LinearInterpolator
import androidx.lifecycle.ViewModelProvider
import androidx.recyclerview.widget.LinearLayoutManager
@@ -23,7 +22,6 @@
import com.casic.app.smartwell.vm.WellTypeViewModel
import com.casic.app.smartwell.widgets.EasyPopupWindow
import kotlinx.android.synthetic.main.activity_well_management.*
-import kotlinx.android.synthetic.main.include_base_title.*
import kotlinx.android.synthetic.main.include_empty_view.*
import kotlinx.android.synthetic.main.include_search_bar.*
import java.lang.ref.WeakReference
@@ -48,9 +46,7 @@
override fun initLayoutView(): Int = R.layout.activity_well_management
override fun setupTopBarLayout() {
- titleView.text = "窨井管理"
- leftBackView.visibility = View.VISIBLE
- leftBackView.setOnClickListener { finish() }
+
}
override fun initData() {
diff --git a/app/src/main/java/com/casic/app/smartwell/view/WellOperationActivity.kt b/app/src/main/java/com/casic/app/smartwell/view/WellOperationActivity.kt
index 9876f1e..561d5d4 100644
--- a/app/src/main/java/com/casic/app/smartwell/view/WellOperationActivity.kt
+++ b/app/src/main/java/com/casic/app/smartwell/view/WellOperationActivity.kt
@@ -4,7 +4,6 @@
import android.os.Handler
import android.os.Looper
import android.os.Message
-import android.view.View
import android.view.animation.LinearInterpolator
import androidx.lifecycle.ViewModelProvider
import androidx.recyclerview.widget.LinearLayoutManager
@@ -27,7 +26,6 @@
import com.casic.app.smartwell.widgets.EasyPopupWindow
import com.pengxh.app.multilib.widget.dialog.AlertControlDialog
import kotlinx.android.synthetic.main.activity_well_operation.*
-import kotlinx.android.synthetic.main.include_base_title.*
import kotlinx.android.synthetic.main.include_empty_view.*
import kotlinx.android.synthetic.main.include_search_bar.*
import java.lang.ref.WeakReference
@@ -53,9 +51,7 @@
override fun initLayoutView(): Int = R.layout.activity_well_operation
override fun setupTopBarLayout() {
- titleView.text = "布防撤防"
- leftBackView.visibility = View.VISIBLE
- leftBackView.setOnClickListener { finish() }
+
}
override fun initData() {
diff --git a/app/src/main/java/com/casic/app/smartwell/view/fragment/HomePageFragment.kt b/app/src/main/java/com/casic/app/smartwell/view/fragment/HomePageFragment.kt
index ed8f009..78e7414 100644
--- a/app/src/main/java/com/casic/app/smartwell/view/fragment/HomePageFragment.kt
+++ b/app/src/main/java/com/casic/app/smartwell/view/fragment/HomePageFragment.kt
@@ -28,6 +28,8 @@
import com.casic.app.smartwell.vm.WellListViewModel
import com.casic.app.smartwell.vm.WorkOrderViewModel
import com.casic.app.smartwell.widgets.GaoDeClusterMarkerView
+import com.google.android.material.bottomsheet.BottomSheetBehavior
+import com.pengxh.app.multilib.utils.SizeUtil
import com.pengxh.app.multilib.widget.dialog.AlertControlDialog
import kotlinx.android.synthetic.main.fragment_home.view.*
import kotlinx.android.synthetic.main.include_base_title.view.*
@@ -62,6 +64,18 @@
homeView = inflater.inflate(R.layout.fragment_home, container, false)
homeView.titleView.text = "首页"
+ //代码设置底部拉升距离
+ val bottomSheetBehavior = BottomSheetBehavior.from(homeView.bottomBehaviorLayout)
+ homeView.coordinatorLayout.post {
+ bottomSheetBehavior.isFitToContents = false
+ bottomSheetBehavior.halfExpandedRatio = 0.23f
+ bottomSheetBehavior.isHideable = false
+ bottomSheetBehavior.peekHeight = SizeUtil.dp2px(requireContext(), 30f)
+ bottomSheetBehavior.setExpandedOffset(
+ (SizeUtil.getScreenHeight(requireContext()) * 0.3).toInt()
+ )
+ }
+
//初始化vm
wellCountViewModel = ViewModelProvider(this).get(WellCountViewModel::class.java)
workOrderViewModel = ViewModelProvider(this).get(WorkOrderViewModel::class.java)
diff --git a/app/src/main/res/drawable/bg_layout.xml b/app/src/main/res/drawable/bg_layout.xml
index d56f439..f00d59c 100644
--- a/app/src/main/res/drawable/bg_layout.xml
+++ b/app/src/main/res/drawable/bg_layout.xml
@@ -4,5 +4,5 @@
-
+
\ No newline at end of file
diff --git a/app/src/main/res/drawable/bg_layout_radius_20.xml b/app/src/main/res/drawable/bg_layout_radius_20.xml
index ba81626..0c2abfe 100644
--- a/app/src/main/res/drawable/bg_layout_radius_20.xml
+++ b/app/src/main/res/drawable/bg_layout_radius_20.xml
@@ -2,7 +2,7 @@
-
+
+ android:color="@color/mainBackColor" />
\ No newline at end of file
diff --git a/app/src/main/res/drawable/bottom_short_line.xml b/app/src/main/res/drawable/bottom_short_line.xml
new file mode 100644
index 0000000..10c9062
--- /dev/null
+++ b/app/src/main/res/drawable/bottom_short_line.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/drawable/ic_up.xml b/app/src/main/res/drawable/ic_up.xml
index 151a0cb..75c718f 100644
--- a/app/src/main/res/drawable/ic_up.xml
+++ b/app/src/main/res/drawable/ic_up.xml
@@ -4,6 +4,6 @@
android:viewportWidth="1024"
android:viewportHeight="1024">
diff --git a/app/src/main/res/drawable/tag_normal.xml b/app/src/main/res/drawable/tag_normal.xml
index bb88697..d38b7cc 100644
--- a/app/src/main/res/drawable/tag_normal.xml
+++ b/app/src/main/res/drawable/tag_normal.xml
@@ -1,6 +1,6 @@
-
+
diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml
index a7fbbba..a2ccde6 100644
--- a/app/src/main/res/layout/activity_main.xml
+++ b/app/src/main/res/layout/activity_main.xml
@@ -22,6 +22,5 @@
android:background="@color/white"
app:itemIconTint="@drawable/bottom_text_color"
app:itemTextColor="@drawable/bottom_text_color"
- app:labelVisibilityMode="labeled"
app:menu="@menu/bottom_nav_menu" />
\ No newline at end of file
diff --git a/app/src/main/res/layout/activity_order_overtime.xml b/app/src/main/res/layout/activity_order_overtime.xml
index fdc1aab..914cb85 100644
--- a/app/src/main/res/layout/activity_order_overtime.xml
+++ b/app/src/main/res/layout/activity_order_overtime.xml
@@ -4,7 +4,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:background="@color/mainBackground"
+ android:background="@color/mainBackColor"
android:orientation="vertical"
tools:context=".view.OvertimeOrderActivity">
diff --git a/app/src/main/res/layout/activity_well_management.xml b/app/src/main/res/layout/activity_well_management.xml
index 819d37f..c87a5a3 100644
--- a/app/src/main/res/layout/activity_well_management.xml
+++ b/app/src/main/res/layout/activity_well_management.xml
@@ -7,8 +7,6 @@
android:orientation="vertical"
tools:context=".view.WellManagementActivity">
-
-
diff --git a/app/src/main/java/com/casic/app/smartwell/view/WellManagementActivity.kt b/app/src/main/java/com/casic/app/smartwell/view/WellManagementActivity.kt
index b8f589c..9b25651 100644
--- a/app/src/main/java/com/casic/app/smartwell/view/WellManagementActivity.kt
+++ b/app/src/main/java/com/casic/app/smartwell/view/WellManagementActivity.kt
@@ -4,7 +4,6 @@
import android.os.Handler
import android.os.Looper
import android.os.Message
-import android.view.View
import android.view.animation.LinearInterpolator
import androidx.lifecycle.ViewModelProvider
import androidx.recyclerview.widget.LinearLayoutManager
@@ -23,7 +22,6 @@
import com.casic.app.smartwell.vm.WellTypeViewModel
import com.casic.app.smartwell.widgets.EasyPopupWindow
import kotlinx.android.synthetic.main.activity_well_management.*
-import kotlinx.android.synthetic.main.include_base_title.*
import kotlinx.android.synthetic.main.include_empty_view.*
import kotlinx.android.synthetic.main.include_search_bar.*
import java.lang.ref.WeakReference
@@ -48,9 +46,7 @@
override fun initLayoutView(): Int = R.layout.activity_well_management
override fun setupTopBarLayout() {
- titleView.text = "窨井管理"
- leftBackView.visibility = View.VISIBLE
- leftBackView.setOnClickListener { finish() }
+
}
override fun initData() {
diff --git a/app/src/main/java/com/casic/app/smartwell/view/WellOperationActivity.kt b/app/src/main/java/com/casic/app/smartwell/view/WellOperationActivity.kt
index 9876f1e..561d5d4 100644
--- a/app/src/main/java/com/casic/app/smartwell/view/WellOperationActivity.kt
+++ b/app/src/main/java/com/casic/app/smartwell/view/WellOperationActivity.kt
@@ -4,7 +4,6 @@
import android.os.Handler
import android.os.Looper
import android.os.Message
-import android.view.View
import android.view.animation.LinearInterpolator
import androidx.lifecycle.ViewModelProvider
import androidx.recyclerview.widget.LinearLayoutManager
@@ -27,7 +26,6 @@
import com.casic.app.smartwell.widgets.EasyPopupWindow
import com.pengxh.app.multilib.widget.dialog.AlertControlDialog
import kotlinx.android.synthetic.main.activity_well_operation.*
-import kotlinx.android.synthetic.main.include_base_title.*
import kotlinx.android.synthetic.main.include_empty_view.*
import kotlinx.android.synthetic.main.include_search_bar.*
import java.lang.ref.WeakReference
@@ -53,9 +51,7 @@
override fun initLayoutView(): Int = R.layout.activity_well_operation
override fun setupTopBarLayout() {
- titleView.text = "布防撤防"
- leftBackView.visibility = View.VISIBLE
- leftBackView.setOnClickListener { finish() }
+
}
override fun initData() {
diff --git a/app/src/main/java/com/casic/app/smartwell/view/fragment/HomePageFragment.kt b/app/src/main/java/com/casic/app/smartwell/view/fragment/HomePageFragment.kt
index ed8f009..78e7414 100644
--- a/app/src/main/java/com/casic/app/smartwell/view/fragment/HomePageFragment.kt
+++ b/app/src/main/java/com/casic/app/smartwell/view/fragment/HomePageFragment.kt
@@ -28,6 +28,8 @@
import com.casic.app.smartwell.vm.WellListViewModel
import com.casic.app.smartwell.vm.WorkOrderViewModel
import com.casic.app.smartwell.widgets.GaoDeClusterMarkerView
+import com.google.android.material.bottomsheet.BottomSheetBehavior
+import com.pengxh.app.multilib.utils.SizeUtil
import com.pengxh.app.multilib.widget.dialog.AlertControlDialog
import kotlinx.android.synthetic.main.fragment_home.view.*
import kotlinx.android.synthetic.main.include_base_title.view.*
@@ -62,6 +64,18 @@
homeView = inflater.inflate(R.layout.fragment_home, container, false)
homeView.titleView.text = "首页"
+ //代码设置底部拉升距离
+ val bottomSheetBehavior = BottomSheetBehavior.from(homeView.bottomBehaviorLayout)
+ homeView.coordinatorLayout.post {
+ bottomSheetBehavior.isFitToContents = false
+ bottomSheetBehavior.halfExpandedRatio = 0.23f
+ bottomSheetBehavior.isHideable = false
+ bottomSheetBehavior.peekHeight = SizeUtil.dp2px(requireContext(), 30f)
+ bottomSheetBehavior.setExpandedOffset(
+ (SizeUtil.getScreenHeight(requireContext()) * 0.3).toInt()
+ )
+ }
+
//初始化vm
wellCountViewModel = ViewModelProvider(this).get(WellCountViewModel::class.java)
workOrderViewModel = ViewModelProvider(this).get(WorkOrderViewModel::class.java)
diff --git a/app/src/main/res/drawable/bg_layout.xml b/app/src/main/res/drawable/bg_layout.xml
index d56f439..f00d59c 100644
--- a/app/src/main/res/drawable/bg_layout.xml
+++ b/app/src/main/res/drawable/bg_layout.xml
@@ -4,5 +4,5 @@
-
+
\ No newline at end of file
diff --git a/app/src/main/res/drawable/bg_layout_radius_20.xml b/app/src/main/res/drawable/bg_layout_radius_20.xml
index ba81626..0c2abfe 100644
--- a/app/src/main/res/drawable/bg_layout_radius_20.xml
+++ b/app/src/main/res/drawable/bg_layout_radius_20.xml
@@ -2,7 +2,7 @@
-
+
+ android:color="@color/mainBackColor" />
\ No newline at end of file
diff --git a/app/src/main/res/drawable/bottom_short_line.xml b/app/src/main/res/drawable/bottom_short_line.xml
new file mode 100644
index 0000000..10c9062
--- /dev/null
+++ b/app/src/main/res/drawable/bottom_short_line.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/drawable/ic_up.xml b/app/src/main/res/drawable/ic_up.xml
index 151a0cb..75c718f 100644
--- a/app/src/main/res/drawable/ic_up.xml
+++ b/app/src/main/res/drawable/ic_up.xml
@@ -4,6 +4,6 @@
android:viewportWidth="1024"
android:viewportHeight="1024">
diff --git a/app/src/main/res/drawable/tag_normal.xml b/app/src/main/res/drawable/tag_normal.xml
index bb88697..d38b7cc 100644
--- a/app/src/main/res/drawable/tag_normal.xml
+++ b/app/src/main/res/drawable/tag_normal.xml
@@ -1,6 +1,6 @@
-
+
diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml
index a7fbbba..a2ccde6 100644
--- a/app/src/main/res/layout/activity_main.xml
+++ b/app/src/main/res/layout/activity_main.xml
@@ -22,6 +22,5 @@
android:background="@color/white"
app:itemIconTint="@drawable/bottom_text_color"
app:itemTextColor="@drawable/bottom_text_color"
- app:labelVisibilityMode="labeled"
app:menu="@menu/bottom_nav_menu" />
\ No newline at end of file
diff --git a/app/src/main/res/layout/activity_order_overtime.xml b/app/src/main/res/layout/activity_order_overtime.xml
index fdc1aab..914cb85 100644
--- a/app/src/main/res/layout/activity_order_overtime.xml
+++ b/app/src/main/res/layout/activity_order_overtime.xml
@@ -4,7 +4,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:background="@color/mainBackground"
+ android:background="@color/mainBackColor"
android:orientation="vertical"
tools:context=".view.OvertimeOrderActivity">
diff --git a/app/src/main/res/layout/activity_well_management.xml b/app/src/main/res/layout/activity_well_management.xml
index 819d37f..c87a5a3 100644
--- a/app/src/main/res/layout/activity_well_management.xml
+++ b/app/src/main/res/layout/activity_well_management.xml
@@ -7,8 +7,6 @@
android:orientation="vertical"
tools:context=".view.WellManagementActivity">
-
-
diff --git a/app/src/main/res/layout/activity_well_operation.xml b/app/src/main/res/layout/activity_well_operation.xml
index a3f1334..a695043 100644
--- a/app/src/main/res/layout/activity_well_operation.xml
+++ b/app/src/main/res/layout/activity_well_operation.xml
@@ -7,8 +7,6 @@
android:orientation="vertical"
tools:context=".view.WellOperationActivity">
-
-
diff --git a/app/src/main/java/com/casic/app/smartwell/view/WellManagementActivity.kt b/app/src/main/java/com/casic/app/smartwell/view/WellManagementActivity.kt
index b8f589c..9b25651 100644
--- a/app/src/main/java/com/casic/app/smartwell/view/WellManagementActivity.kt
+++ b/app/src/main/java/com/casic/app/smartwell/view/WellManagementActivity.kt
@@ -4,7 +4,6 @@
import android.os.Handler
import android.os.Looper
import android.os.Message
-import android.view.View
import android.view.animation.LinearInterpolator
import androidx.lifecycle.ViewModelProvider
import androidx.recyclerview.widget.LinearLayoutManager
@@ -23,7 +22,6 @@
import com.casic.app.smartwell.vm.WellTypeViewModel
import com.casic.app.smartwell.widgets.EasyPopupWindow
import kotlinx.android.synthetic.main.activity_well_management.*
-import kotlinx.android.synthetic.main.include_base_title.*
import kotlinx.android.synthetic.main.include_empty_view.*
import kotlinx.android.synthetic.main.include_search_bar.*
import java.lang.ref.WeakReference
@@ -48,9 +46,7 @@
override fun initLayoutView(): Int = R.layout.activity_well_management
override fun setupTopBarLayout() {
- titleView.text = "窨井管理"
- leftBackView.visibility = View.VISIBLE
- leftBackView.setOnClickListener { finish() }
+
}
override fun initData() {
diff --git a/app/src/main/java/com/casic/app/smartwell/view/WellOperationActivity.kt b/app/src/main/java/com/casic/app/smartwell/view/WellOperationActivity.kt
index 9876f1e..561d5d4 100644
--- a/app/src/main/java/com/casic/app/smartwell/view/WellOperationActivity.kt
+++ b/app/src/main/java/com/casic/app/smartwell/view/WellOperationActivity.kt
@@ -4,7 +4,6 @@
import android.os.Handler
import android.os.Looper
import android.os.Message
-import android.view.View
import android.view.animation.LinearInterpolator
import androidx.lifecycle.ViewModelProvider
import androidx.recyclerview.widget.LinearLayoutManager
@@ -27,7 +26,6 @@
import com.casic.app.smartwell.widgets.EasyPopupWindow
import com.pengxh.app.multilib.widget.dialog.AlertControlDialog
import kotlinx.android.synthetic.main.activity_well_operation.*
-import kotlinx.android.synthetic.main.include_base_title.*
import kotlinx.android.synthetic.main.include_empty_view.*
import kotlinx.android.synthetic.main.include_search_bar.*
import java.lang.ref.WeakReference
@@ -53,9 +51,7 @@
override fun initLayoutView(): Int = R.layout.activity_well_operation
override fun setupTopBarLayout() {
- titleView.text = "布防撤防"
- leftBackView.visibility = View.VISIBLE
- leftBackView.setOnClickListener { finish() }
+
}
override fun initData() {
diff --git a/app/src/main/java/com/casic/app/smartwell/view/fragment/HomePageFragment.kt b/app/src/main/java/com/casic/app/smartwell/view/fragment/HomePageFragment.kt
index ed8f009..78e7414 100644
--- a/app/src/main/java/com/casic/app/smartwell/view/fragment/HomePageFragment.kt
+++ b/app/src/main/java/com/casic/app/smartwell/view/fragment/HomePageFragment.kt
@@ -28,6 +28,8 @@
import com.casic.app.smartwell.vm.WellListViewModel
import com.casic.app.smartwell.vm.WorkOrderViewModel
import com.casic.app.smartwell.widgets.GaoDeClusterMarkerView
+import com.google.android.material.bottomsheet.BottomSheetBehavior
+import com.pengxh.app.multilib.utils.SizeUtil
import com.pengxh.app.multilib.widget.dialog.AlertControlDialog
import kotlinx.android.synthetic.main.fragment_home.view.*
import kotlinx.android.synthetic.main.include_base_title.view.*
@@ -62,6 +64,18 @@
homeView = inflater.inflate(R.layout.fragment_home, container, false)
homeView.titleView.text = "首页"
+ //代码设置底部拉升距离
+ val bottomSheetBehavior = BottomSheetBehavior.from(homeView.bottomBehaviorLayout)
+ homeView.coordinatorLayout.post {
+ bottomSheetBehavior.isFitToContents = false
+ bottomSheetBehavior.halfExpandedRatio = 0.23f
+ bottomSheetBehavior.isHideable = false
+ bottomSheetBehavior.peekHeight = SizeUtil.dp2px(requireContext(), 30f)
+ bottomSheetBehavior.setExpandedOffset(
+ (SizeUtil.getScreenHeight(requireContext()) * 0.3).toInt()
+ )
+ }
+
//初始化vm
wellCountViewModel = ViewModelProvider(this).get(WellCountViewModel::class.java)
workOrderViewModel = ViewModelProvider(this).get(WorkOrderViewModel::class.java)
diff --git a/app/src/main/res/drawable/bg_layout.xml b/app/src/main/res/drawable/bg_layout.xml
index d56f439..f00d59c 100644
--- a/app/src/main/res/drawable/bg_layout.xml
+++ b/app/src/main/res/drawable/bg_layout.xml
@@ -4,5 +4,5 @@
-
+
\ No newline at end of file
diff --git a/app/src/main/res/drawable/bg_layout_radius_20.xml b/app/src/main/res/drawable/bg_layout_radius_20.xml
index ba81626..0c2abfe 100644
--- a/app/src/main/res/drawable/bg_layout_radius_20.xml
+++ b/app/src/main/res/drawable/bg_layout_radius_20.xml
@@ -2,7 +2,7 @@
-
+
+ android:color="@color/mainBackColor" />
\ No newline at end of file
diff --git a/app/src/main/res/drawable/bottom_short_line.xml b/app/src/main/res/drawable/bottom_short_line.xml
new file mode 100644
index 0000000..10c9062
--- /dev/null
+++ b/app/src/main/res/drawable/bottom_short_line.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/drawable/ic_up.xml b/app/src/main/res/drawable/ic_up.xml
index 151a0cb..75c718f 100644
--- a/app/src/main/res/drawable/ic_up.xml
+++ b/app/src/main/res/drawable/ic_up.xml
@@ -4,6 +4,6 @@
android:viewportWidth="1024"
android:viewportHeight="1024">
diff --git a/app/src/main/res/drawable/tag_normal.xml b/app/src/main/res/drawable/tag_normal.xml
index bb88697..d38b7cc 100644
--- a/app/src/main/res/drawable/tag_normal.xml
+++ b/app/src/main/res/drawable/tag_normal.xml
@@ -1,6 +1,6 @@
-
+
diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml
index a7fbbba..a2ccde6 100644
--- a/app/src/main/res/layout/activity_main.xml
+++ b/app/src/main/res/layout/activity_main.xml
@@ -22,6 +22,5 @@
android:background="@color/white"
app:itemIconTint="@drawable/bottom_text_color"
app:itemTextColor="@drawable/bottom_text_color"
- app:labelVisibilityMode="labeled"
app:menu="@menu/bottom_nav_menu" />
\ No newline at end of file
diff --git a/app/src/main/res/layout/activity_order_overtime.xml b/app/src/main/res/layout/activity_order_overtime.xml
index fdc1aab..914cb85 100644
--- a/app/src/main/res/layout/activity_order_overtime.xml
+++ b/app/src/main/res/layout/activity_order_overtime.xml
@@ -4,7 +4,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:background="@color/mainBackground"
+ android:background="@color/mainBackColor"
android:orientation="vertical"
tools:context=".view.OvertimeOrderActivity">
diff --git a/app/src/main/res/layout/activity_well_management.xml b/app/src/main/res/layout/activity_well_management.xml
index 819d37f..c87a5a3 100644
--- a/app/src/main/res/layout/activity_well_management.xml
+++ b/app/src/main/res/layout/activity_well_management.xml
@@ -7,8 +7,6 @@
android:orientation="vertical"
tools:context=".view.WellManagementActivity">
-
-
diff --git a/app/src/main/res/layout/activity_well_operation.xml b/app/src/main/res/layout/activity_well_operation.xml
index a3f1334..a695043 100644
--- a/app/src/main/res/layout/activity_well_operation.xml
+++ b/app/src/main/res/layout/activity_well_operation.xml
@@ -7,8 +7,6 @@
android:orientation="vertical"
tools:context=".view.WellOperationActivity">
-
-
diff --git a/app/src/main/res/layout/fragment_home.xml b/app/src/main/res/layout/fragment_home.xml
index 37d50e5..8c5f4a4 100644
--- a/app/src/main/res/layout/fragment_home.xml
+++ b/app/src/main/res/layout/fragment_home.xml
@@ -9,6 +9,7 @@
@@ -18,193 +19,179 @@
android:layout_height="match_parent" />
+ android:layout_height="@dimen/dp_30">
-
+
-
-
-
+ android:layout_marginHorizontal="@dimen/dp_10"
+ android:background="@drawable/bg_layout">
-
+
+
+
+ android:background="@drawable/bg_layout"
+ android:orientation="vertical">
+
+
+
+
+ android:orientation="horizontal">
-
+
-
+
-
+
+
-
+
-
+
-
-
+
+
-
+
-
+
-
-
-
-
-
-
-
-
-
+
-
+
-
+ android:background="@drawable/bg_layout"
+ android:orientation="vertical">
+
+
+
+
+ android:orientation="horizontal">
-
+
-
+
-
+
+
-
+
-
+
-
-
+
+
-
+
-
+
-
-
+
+
-
+
-
+
-
-
-
-
-
-
-
-
-
+
-
+
\ No newline at end of file
diff --git a/app/src/main/java/com/casic/app/smartwell/view/WellManagementActivity.kt b/app/src/main/java/com/casic/app/smartwell/view/WellManagementActivity.kt
index b8f589c..9b25651 100644
--- a/app/src/main/java/com/casic/app/smartwell/view/WellManagementActivity.kt
+++ b/app/src/main/java/com/casic/app/smartwell/view/WellManagementActivity.kt
@@ -4,7 +4,6 @@
import android.os.Handler
import android.os.Looper
import android.os.Message
-import android.view.View
import android.view.animation.LinearInterpolator
import androidx.lifecycle.ViewModelProvider
import androidx.recyclerview.widget.LinearLayoutManager
@@ -23,7 +22,6 @@
import com.casic.app.smartwell.vm.WellTypeViewModel
import com.casic.app.smartwell.widgets.EasyPopupWindow
import kotlinx.android.synthetic.main.activity_well_management.*
-import kotlinx.android.synthetic.main.include_base_title.*
import kotlinx.android.synthetic.main.include_empty_view.*
import kotlinx.android.synthetic.main.include_search_bar.*
import java.lang.ref.WeakReference
@@ -48,9 +46,7 @@
override fun initLayoutView(): Int = R.layout.activity_well_management
override fun setupTopBarLayout() {
- titleView.text = "窨井管理"
- leftBackView.visibility = View.VISIBLE
- leftBackView.setOnClickListener { finish() }
+
}
override fun initData() {
diff --git a/app/src/main/java/com/casic/app/smartwell/view/WellOperationActivity.kt b/app/src/main/java/com/casic/app/smartwell/view/WellOperationActivity.kt
index 9876f1e..561d5d4 100644
--- a/app/src/main/java/com/casic/app/smartwell/view/WellOperationActivity.kt
+++ b/app/src/main/java/com/casic/app/smartwell/view/WellOperationActivity.kt
@@ -4,7 +4,6 @@
import android.os.Handler
import android.os.Looper
import android.os.Message
-import android.view.View
import android.view.animation.LinearInterpolator
import androidx.lifecycle.ViewModelProvider
import androidx.recyclerview.widget.LinearLayoutManager
@@ -27,7 +26,6 @@
import com.casic.app.smartwell.widgets.EasyPopupWindow
import com.pengxh.app.multilib.widget.dialog.AlertControlDialog
import kotlinx.android.synthetic.main.activity_well_operation.*
-import kotlinx.android.synthetic.main.include_base_title.*
import kotlinx.android.synthetic.main.include_empty_view.*
import kotlinx.android.synthetic.main.include_search_bar.*
import java.lang.ref.WeakReference
@@ -53,9 +51,7 @@
override fun initLayoutView(): Int = R.layout.activity_well_operation
override fun setupTopBarLayout() {
- titleView.text = "布防撤防"
- leftBackView.visibility = View.VISIBLE
- leftBackView.setOnClickListener { finish() }
+
}
override fun initData() {
diff --git a/app/src/main/java/com/casic/app/smartwell/view/fragment/HomePageFragment.kt b/app/src/main/java/com/casic/app/smartwell/view/fragment/HomePageFragment.kt
index ed8f009..78e7414 100644
--- a/app/src/main/java/com/casic/app/smartwell/view/fragment/HomePageFragment.kt
+++ b/app/src/main/java/com/casic/app/smartwell/view/fragment/HomePageFragment.kt
@@ -28,6 +28,8 @@
import com.casic.app.smartwell.vm.WellListViewModel
import com.casic.app.smartwell.vm.WorkOrderViewModel
import com.casic.app.smartwell.widgets.GaoDeClusterMarkerView
+import com.google.android.material.bottomsheet.BottomSheetBehavior
+import com.pengxh.app.multilib.utils.SizeUtil
import com.pengxh.app.multilib.widget.dialog.AlertControlDialog
import kotlinx.android.synthetic.main.fragment_home.view.*
import kotlinx.android.synthetic.main.include_base_title.view.*
@@ -62,6 +64,18 @@
homeView = inflater.inflate(R.layout.fragment_home, container, false)
homeView.titleView.text = "首页"
+ //代码设置底部拉升距离
+ val bottomSheetBehavior = BottomSheetBehavior.from(homeView.bottomBehaviorLayout)
+ homeView.coordinatorLayout.post {
+ bottomSheetBehavior.isFitToContents = false
+ bottomSheetBehavior.halfExpandedRatio = 0.23f
+ bottomSheetBehavior.isHideable = false
+ bottomSheetBehavior.peekHeight = SizeUtil.dp2px(requireContext(), 30f)
+ bottomSheetBehavior.setExpandedOffset(
+ (SizeUtil.getScreenHeight(requireContext()) * 0.3).toInt()
+ )
+ }
+
//初始化vm
wellCountViewModel = ViewModelProvider(this).get(WellCountViewModel::class.java)
workOrderViewModel = ViewModelProvider(this).get(WorkOrderViewModel::class.java)
diff --git a/app/src/main/res/drawable/bg_layout.xml b/app/src/main/res/drawable/bg_layout.xml
index d56f439..f00d59c 100644
--- a/app/src/main/res/drawable/bg_layout.xml
+++ b/app/src/main/res/drawable/bg_layout.xml
@@ -4,5 +4,5 @@
-
+
\ No newline at end of file
diff --git a/app/src/main/res/drawable/bg_layout_radius_20.xml b/app/src/main/res/drawable/bg_layout_radius_20.xml
index ba81626..0c2abfe 100644
--- a/app/src/main/res/drawable/bg_layout_radius_20.xml
+++ b/app/src/main/res/drawable/bg_layout_radius_20.xml
@@ -2,7 +2,7 @@
-
+
+ android:color="@color/mainBackColor" />
\ No newline at end of file
diff --git a/app/src/main/res/drawable/bottom_short_line.xml b/app/src/main/res/drawable/bottom_short_line.xml
new file mode 100644
index 0000000..10c9062
--- /dev/null
+++ b/app/src/main/res/drawable/bottom_short_line.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/drawable/ic_up.xml b/app/src/main/res/drawable/ic_up.xml
index 151a0cb..75c718f 100644
--- a/app/src/main/res/drawable/ic_up.xml
+++ b/app/src/main/res/drawable/ic_up.xml
@@ -4,6 +4,6 @@
android:viewportWidth="1024"
android:viewportHeight="1024">
diff --git a/app/src/main/res/drawable/tag_normal.xml b/app/src/main/res/drawable/tag_normal.xml
index bb88697..d38b7cc 100644
--- a/app/src/main/res/drawable/tag_normal.xml
+++ b/app/src/main/res/drawable/tag_normal.xml
@@ -1,6 +1,6 @@
-
+
diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml
index a7fbbba..a2ccde6 100644
--- a/app/src/main/res/layout/activity_main.xml
+++ b/app/src/main/res/layout/activity_main.xml
@@ -22,6 +22,5 @@
android:background="@color/white"
app:itemIconTint="@drawable/bottom_text_color"
app:itemTextColor="@drawable/bottom_text_color"
- app:labelVisibilityMode="labeled"
app:menu="@menu/bottom_nav_menu" />
\ No newline at end of file
diff --git a/app/src/main/res/layout/activity_order_overtime.xml b/app/src/main/res/layout/activity_order_overtime.xml
index fdc1aab..914cb85 100644
--- a/app/src/main/res/layout/activity_order_overtime.xml
+++ b/app/src/main/res/layout/activity_order_overtime.xml
@@ -4,7 +4,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:background="@color/mainBackground"
+ android:background="@color/mainBackColor"
android:orientation="vertical"
tools:context=".view.OvertimeOrderActivity">
diff --git a/app/src/main/res/layout/activity_well_management.xml b/app/src/main/res/layout/activity_well_management.xml
index 819d37f..c87a5a3 100644
--- a/app/src/main/res/layout/activity_well_management.xml
+++ b/app/src/main/res/layout/activity_well_management.xml
@@ -7,8 +7,6 @@
android:orientation="vertical"
tools:context=".view.WellManagementActivity">
-
-
diff --git a/app/src/main/res/layout/activity_well_operation.xml b/app/src/main/res/layout/activity_well_operation.xml
index a3f1334..a695043 100644
--- a/app/src/main/res/layout/activity_well_operation.xml
+++ b/app/src/main/res/layout/activity_well_operation.xml
@@ -7,8 +7,6 @@
android:orientation="vertical"
tools:context=".view.WellOperationActivity">
-
-
diff --git a/app/src/main/res/layout/fragment_home.xml b/app/src/main/res/layout/fragment_home.xml
index 37d50e5..8c5f4a4 100644
--- a/app/src/main/res/layout/fragment_home.xml
+++ b/app/src/main/res/layout/fragment_home.xml
@@ -9,6 +9,7 @@
@@ -18,193 +19,179 @@
android:layout_height="match_parent" />
+ android:layout_height="@dimen/dp_30">
-
+
-
-
-
+ android:layout_marginHorizontal="@dimen/dp_10"
+ android:background="@drawable/bg_layout">
-
+
+
+
+ android:background="@drawable/bg_layout"
+ android:orientation="vertical">
+
+
+
+
+ android:orientation="horizontal">
-
+
-
+
-
+
+
-
+
-
+
-
-
+
+
-
+
-
+
-
-
-
-
-
-
-
-
-
+
-
+
-
+ android:background="@drawable/bg_layout"
+ android:orientation="vertical">
+
+
+
+
+ android:orientation="horizontal">
-
+
-
+
-
+
+
-
+
-
+
-
-
+
+
-
+
-
+
-
-
+
+
-
+
-
+
-
-
-
-
-
-
-
-
-
+
-
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/fragment_order.xml b/app/src/main/res/layout/fragment_order.xml
index e798ed8..06dc5dc 100644
--- a/app/src/main/res/layout/fragment_order.xml
+++ b/app/src/main/res/layout/fragment_order.xml
@@ -3,7 +3,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:background="@color/mainBackground"
+ android:background="@color/mainBackColor"
android:orientation="vertical">
-
+
\ No newline at end of file
diff --git a/app/src/main/res/drawable/bg_layout_radius_20.xml b/app/src/main/res/drawable/bg_layout_radius_20.xml
index ba81626..0c2abfe 100644
--- a/app/src/main/res/drawable/bg_layout_radius_20.xml
+++ b/app/src/main/res/drawable/bg_layout_radius_20.xml
@@ -2,7 +2,7 @@
-
+
+ android:color="@color/mainBackColor" />
\ No newline at end of file
diff --git a/app/src/main/res/drawable/bottom_short_line.xml b/app/src/main/res/drawable/bottom_short_line.xml
new file mode 100644
index 0000000..10c9062
--- /dev/null
+++ b/app/src/main/res/drawable/bottom_short_line.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/drawable/ic_up.xml b/app/src/main/res/drawable/ic_up.xml
index 151a0cb..75c718f 100644
--- a/app/src/main/res/drawable/ic_up.xml
+++ b/app/src/main/res/drawable/ic_up.xml
@@ -4,6 +4,6 @@
android:viewportWidth="1024"
android:viewportHeight="1024">
diff --git a/app/src/main/res/drawable/tag_normal.xml b/app/src/main/res/drawable/tag_normal.xml
index bb88697..d38b7cc 100644
--- a/app/src/main/res/drawable/tag_normal.xml
+++ b/app/src/main/res/drawable/tag_normal.xml
@@ -1,6 +1,6 @@
-
+
diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml
index a7fbbba..a2ccde6 100644
--- a/app/src/main/res/layout/activity_main.xml
+++ b/app/src/main/res/layout/activity_main.xml
@@ -22,6 +22,5 @@
android:background="@color/white"
app:itemIconTint="@drawable/bottom_text_color"
app:itemTextColor="@drawable/bottom_text_color"
- app:labelVisibilityMode="labeled"
app:menu="@menu/bottom_nav_menu" />
\ No newline at end of file
diff --git a/app/src/main/res/layout/activity_order_overtime.xml b/app/src/main/res/layout/activity_order_overtime.xml
index fdc1aab..914cb85 100644
--- a/app/src/main/res/layout/activity_order_overtime.xml
+++ b/app/src/main/res/layout/activity_order_overtime.xml
@@ -4,7 +4,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:background="@color/mainBackground"
+ android:background="@color/mainBackColor"
android:orientation="vertical"
tools:context=".view.OvertimeOrderActivity">
diff --git a/app/src/main/res/layout/activity_well_management.xml b/app/src/main/res/layout/activity_well_management.xml
index 819d37f..c87a5a3 100644
--- a/app/src/main/res/layout/activity_well_management.xml
+++ b/app/src/main/res/layout/activity_well_management.xml
@@ -7,8 +7,6 @@
android:orientation="vertical"
tools:context=".view.WellManagementActivity">
-
-
diff --git a/app/src/main/res/layout/activity_well_operation.xml b/app/src/main/res/layout/activity_well_operation.xml
index a3f1334..a695043 100644
--- a/app/src/main/res/layout/activity_well_operation.xml
+++ b/app/src/main/res/layout/activity_well_operation.xml
@@ -7,8 +7,6 @@
android:orientation="vertical"
tools:context=".view.WellOperationActivity">
-
-
diff --git a/app/src/main/res/layout/fragment_home.xml b/app/src/main/res/layout/fragment_home.xml
index 37d50e5..8c5f4a4 100644
--- a/app/src/main/res/layout/fragment_home.xml
+++ b/app/src/main/res/layout/fragment_home.xml
@@ -9,6 +9,7 @@
@@ -18,193 +19,179 @@
android:layout_height="match_parent" />
+ android:layout_height="@dimen/dp_30">
-
+
-
-
-
+ android:layout_marginHorizontal="@dimen/dp_10"
+ android:background="@drawable/bg_layout">
-
+
+
+
+ android:background="@drawable/bg_layout"
+ android:orientation="vertical">
+
+
+
+
+ android:orientation="horizontal">
-
+
-
+
-
+
+
-
+
-
+
-
-
+
+
-
+
-
+
-
-
-
-
-
-
-
-
-
+
-
+
-
+ android:background="@drawable/bg_layout"
+ android:orientation="vertical">
+
+
+
+
+ android:orientation="horizontal">
-
+
-
+
-
+
+
-
+
-
+
-
-
+
+
-
+
-
+
-
-
+
+
-
+
-
+
-
-
-
-
-
-
-
-
-
+
-
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/fragment_order.xml b/app/src/main/res/layout/fragment_order.xml
index e798ed8..06dc5dc 100644
--- a/app/src/main/res/layout/fragment_order.xml
+++ b/app/src/main/res/layout/fragment_order.xml
@@ -3,7 +3,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:background="@color/mainBackground"
+ android:background="@color/mainBackColor"
android:orientation="vertical">
+ android:text="全\u3000部"
+ android:textColor="@color/white"
+ android:textSize="14sp" />
@@ -42,14 +43,14 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
- android:layout_marginStart="5dp"
+ android:layout_marginStart="@dimen/dp_5"
android:src="@drawable/ic_search" />
+ android:textColor="@color/colorText"
+ android:textSize="14sp" />
\ No newline at end of file
diff --git a/app/src/main/java/com/casic/app/smartwell/view/WellManagementActivity.kt b/app/src/main/java/com/casic/app/smartwell/view/WellManagementActivity.kt
index b8f589c..9b25651 100644
--- a/app/src/main/java/com/casic/app/smartwell/view/WellManagementActivity.kt
+++ b/app/src/main/java/com/casic/app/smartwell/view/WellManagementActivity.kt
@@ -4,7 +4,6 @@
import android.os.Handler
import android.os.Looper
import android.os.Message
-import android.view.View
import android.view.animation.LinearInterpolator
import androidx.lifecycle.ViewModelProvider
import androidx.recyclerview.widget.LinearLayoutManager
@@ -23,7 +22,6 @@
import com.casic.app.smartwell.vm.WellTypeViewModel
import com.casic.app.smartwell.widgets.EasyPopupWindow
import kotlinx.android.synthetic.main.activity_well_management.*
-import kotlinx.android.synthetic.main.include_base_title.*
import kotlinx.android.synthetic.main.include_empty_view.*
import kotlinx.android.synthetic.main.include_search_bar.*
import java.lang.ref.WeakReference
@@ -48,9 +46,7 @@
override fun initLayoutView(): Int = R.layout.activity_well_management
override fun setupTopBarLayout() {
- titleView.text = "窨井管理"
- leftBackView.visibility = View.VISIBLE
- leftBackView.setOnClickListener { finish() }
+
}
override fun initData() {
diff --git a/app/src/main/java/com/casic/app/smartwell/view/WellOperationActivity.kt b/app/src/main/java/com/casic/app/smartwell/view/WellOperationActivity.kt
index 9876f1e..561d5d4 100644
--- a/app/src/main/java/com/casic/app/smartwell/view/WellOperationActivity.kt
+++ b/app/src/main/java/com/casic/app/smartwell/view/WellOperationActivity.kt
@@ -4,7 +4,6 @@
import android.os.Handler
import android.os.Looper
import android.os.Message
-import android.view.View
import android.view.animation.LinearInterpolator
import androidx.lifecycle.ViewModelProvider
import androidx.recyclerview.widget.LinearLayoutManager
@@ -27,7 +26,6 @@
import com.casic.app.smartwell.widgets.EasyPopupWindow
import com.pengxh.app.multilib.widget.dialog.AlertControlDialog
import kotlinx.android.synthetic.main.activity_well_operation.*
-import kotlinx.android.synthetic.main.include_base_title.*
import kotlinx.android.synthetic.main.include_empty_view.*
import kotlinx.android.synthetic.main.include_search_bar.*
import java.lang.ref.WeakReference
@@ -53,9 +51,7 @@
override fun initLayoutView(): Int = R.layout.activity_well_operation
override fun setupTopBarLayout() {
- titleView.text = "布防撤防"
- leftBackView.visibility = View.VISIBLE
- leftBackView.setOnClickListener { finish() }
+
}
override fun initData() {
diff --git a/app/src/main/java/com/casic/app/smartwell/view/fragment/HomePageFragment.kt b/app/src/main/java/com/casic/app/smartwell/view/fragment/HomePageFragment.kt
index ed8f009..78e7414 100644
--- a/app/src/main/java/com/casic/app/smartwell/view/fragment/HomePageFragment.kt
+++ b/app/src/main/java/com/casic/app/smartwell/view/fragment/HomePageFragment.kt
@@ -28,6 +28,8 @@
import com.casic.app.smartwell.vm.WellListViewModel
import com.casic.app.smartwell.vm.WorkOrderViewModel
import com.casic.app.smartwell.widgets.GaoDeClusterMarkerView
+import com.google.android.material.bottomsheet.BottomSheetBehavior
+import com.pengxh.app.multilib.utils.SizeUtil
import com.pengxh.app.multilib.widget.dialog.AlertControlDialog
import kotlinx.android.synthetic.main.fragment_home.view.*
import kotlinx.android.synthetic.main.include_base_title.view.*
@@ -62,6 +64,18 @@
homeView = inflater.inflate(R.layout.fragment_home, container, false)
homeView.titleView.text = "首页"
+ //代码设置底部拉升距离
+ val bottomSheetBehavior = BottomSheetBehavior.from(homeView.bottomBehaviorLayout)
+ homeView.coordinatorLayout.post {
+ bottomSheetBehavior.isFitToContents = false
+ bottomSheetBehavior.halfExpandedRatio = 0.23f
+ bottomSheetBehavior.isHideable = false
+ bottomSheetBehavior.peekHeight = SizeUtil.dp2px(requireContext(), 30f)
+ bottomSheetBehavior.setExpandedOffset(
+ (SizeUtil.getScreenHeight(requireContext()) * 0.3).toInt()
+ )
+ }
+
//初始化vm
wellCountViewModel = ViewModelProvider(this).get(WellCountViewModel::class.java)
workOrderViewModel = ViewModelProvider(this).get(WorkOrderViewModel::class.java)
diff --git a/app/src/main/res/drawable/bg_layout.xml b/app/src/main/res/drawable/bg_layout.xml
index d56f439..f00d59c 100644
--- a/app/src/main/res/drawable/bg_layout.xml
+++ b/app/src/main/res/drawable/bg_layout.xml
@@ -4,5 +4,5 @@
-
+
\ No newline at end of file
diff --git a/app/src/main/res/drawable/bg_layout_radius_20.xml b/app/src/main/res/drawable/bg_layout_radius_20.xml
index ba81626..0c2abfe 100644
--- a/app/src/main/res/drawable/bg_layout_radius_20.xml
+++ b/app/src/main/res/drawable/bg_layout_radius_20.xml
@@ -2,7 +2,7 @@
-
+
+ android:color="@color/mainBackColor" />
\ No newline at end of file
diff --git a/app/src/main/res/drawable/bottom_short_line.xml b/app/src/main/res/drawable/bottom_short_line.xml
new file mode 100644
index 0000000..10c9062
--- /dev/null
+++ b/app/src/main/res/drawable/bottom_short_line.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/drawable/ic_up.xml b/app/src/main/res/drawable/ic_up.xml
index 151a0cb..75c718f 100644
--- a/app/src/main/res/drawable/ic_up.xml
+++ b/app/src/main/res/drawable/ic_up.xml
@@ -4,6 +4,6 @@
android:viewportWidth="1024"
android:viewportHeight="1024">
diff --git a/app/src/main/res/drawable/tag_normal.xml b/app/src/main/res/drawable/tag_normal.xml
index bb88697..d38b7cc 100644
--- a/app/src/main/res/drawable/tag_normal.xml
+++ b/app/src/main/res/drawable/tag_normal.xml
@@ -1,6 +1,6 @@
-
+
diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml
index a7fbbba..a2ccde6 100644
--- a/app/src/main/res/layout/activity_main.xml
+++ b/app/src/main/res/layout/activity_main.xml
@@ -22,6 +22,5 @@
android:background="@color/white"
app:itemIconTint="@drawable/bottom_text_color"
app:itemTextColor="@drawable/bottom_text_color"
- app:labelVisibilityMode="labeled"
app:menu="@menu/bottom_nav_menu" />
\ No newline at end of file
diff --git a/app/src/main/res/layout/activity_order_overtime.xml b/app/src/main/res/layout/activity_order_overtime.xml
index fdc1aab..914cb85 100644
--- a/app/src/main/res/layout/activity_order_overtime.xml
+++ b/app/src/main/res/layout/activity_order_overtime.xml
@@ -4,7 +4,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:background="@color/mainBackground"
+ android:background="@color/mainBackColor"
android:orientation="vertical"
tools:context=".view.OvertimeOrderActivity">
diff --git a/app/src/main/res/layout/activity_well_management.xml b/app/src/main/res/layout/activity_well_management.xml
index 819d37f..c87a5a3 100644
--- a/app/src/main/res/layout/activity_well_management.xml
+++ b/app/src/main/res/layout/activity_well_management.xml
@@ -7,8 +7,6 @@
android:orientation="vertical"
tools:context=".view.WellManagementActivity">
-
-
diff --git a/app/src/main/res/layout/activity_well_operation.xml b/app/src/main/res/layout/activity_well_operation.xml
index a3f1334..a695043 100644
--- a/app/src/main/res/layout/activity_well_operation.xml
+++ b/app/src/main/res/layout/activity_well_operation.xml
@@ -7,8 +7,6 @@
android:orientation="vertical"
tools:context=".view.WellOperationActivity">
-
-
diff --git a/app/src/main/res/layout/fragment_home.xml b/app/src/main/res/layout/fragment_home.xml
index 37d50e5..8c5f4a4 100644
--- a/app/src/main/res/layout/fragment_home.xml
+++ b/app/src/main/res/layout/fragment_home.xml
@@ -9,6 +9,7 @@
@@ -18,193 +19,179 @@
android:layout_height="match_parent" />
+ android:layout_height="@dimen/dp_30">
-
+
-
-
-
+ android:layout_marginHorizontal="@dimen/dp_10"
+ android:background="@drawable/bg_layout">
-
+
+
+
+ android:background="@drawable/bg_layout"
+ android:orientation="vertical">
+
+
+
+
+ android:orientation="horizontal">
-
+
-
+
-
+
+
-
+
-
+
-
-
+
+
-
+
-
+
-
-
-
-
-
-
-
-
-
+
-
+
-
+ android:background="@drawable/bg_layout"
+ android:orientation="vertical">
+
+
+
+
+ android:orientation="horizontal">
-
+
-
+
-
+
+
-
+
-
+
-
-
+
+
-
+
-
+
-
-
+
+
-
+
-
+
-
-
-
-
-
-
-
-
-
+
-
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/fragment_order.xml b/app/src/main/res/layout/fragment_order.xml
index e798ed8..06dc5dc 100644
--- a/app/src/main/res/layout/fragment_order.xml
+++ b/app/src/main/res/layout/fragment_order.xml
@@ -3,7 +3,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:background="@color/mainBackground"
+ android:background="@color/mainBackColor"
android:orientation="vertical">
+ android:text="全\u3000部"
+ android:textColor="@color/white"
+ android:textSize="14sp" />
@@ -42,14 +43,14 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
- android:layout_marginStart="5dp"
+ android:layout_marginStart="@dimen/dp_5"
android:src="@drawable/ic_search" />
+ android:textColor="@color/colorText"
+ android:textSize="14sp" />
\ No newline at end of file
diff --git a/app/src/main/res/layout/item_choice_dialog.xml b/app/src/main/res/layout/item_choice_dialog.xml
index c792afd..a8fe9f3 100644
--- a/app/src/main/res/layout/item_choice_dialog.xml
+++ b/app/src/main/res/layout/item_choice_dialog.xml
@@ -1,7 +1,7 @@
+ android:layout_height="@dimen/titleViewHeight">
-
+
\ No newline at end of file
diff --git a/app/src/main/res/drawable/bg_layout_radius_20.xml b/app/src/main/res/drawable/bg_layout_radius_20.xml
index ba81626..0c2abfe 100644
--- a/app/src/main/res/drawable/bg_layout_radius_20.xml
+++ b/app/src/main/res/drawable/bg_layout_radius_20.xml
@@ -2,7 +2,7 @@
-
+
+ android:color="@color/mainBackColor" />
\ No newline at end of file
diff --git a/app/src/main/res/drawable/bottom_short_line.xml b/app/src/main/res/drawable/bottom_short_line.xml
new file mode 100644
index 0000000..10c9062
--- /dev/null
+++ b/app/src/main/res/drawable/bottom_short_line.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/drawable/ic_up.xml b/app/src/main/res/drawable/ic_up.xml
index 151a0cb..75c718f 100644
--- a/app/src/main/res/drawable/ic_up.xml
+++ b/app/src/main/res/drawable/ic_up.xml
@@ -4,6 +4,6 @@
android:viewportWidth="1024"
android:viewportHeight="1024">
diff --git a/app/src/main/res/drawable/tag_normal.xml b/app/src/main/res/drawable/tag_normal.xml
index bb88697..d38b7cc 100644
--- a/app/src/main/res/drawable/tag_normal.xml
+++ b/app/src/main/res/drawable/tag_normal.xml
@@ -1,6 +1,6 @@
-
+
diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml
index a7fbbba..a2ccde6 100644
--- a/app/src/main/res/layout/activity_main.xml
+++ b/app/src/main/res/layout/activity_main.xml
@@ -22,6 +22,5 @@
android:background="@color/white"
app:itemIconTint="@drawable/bottom_text_color"
app:itemTextColor="@drawable/bottom_text_color"
- app:labelVisibilityMode="labeled"
app:menu="@menu/bottom_nav_menu" />
\ No newline at end of file
diff --git a/app/src/main/res/layout/activity_order_overtime.xml b/app/src/main/res/layout/activity_order_overtime.xml
index fdc1aab..914cb85 100644
--- a/app/src/main/res/layout/activity_order_overtime.xml
+++ b/app/src/main/res/layout/activity_order_overtime.xml
@@ -4,7 +4,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:background="@color/mainBackground"
+ android:background="@color/mainBackColor"
android:orientation="vertical"
tools:context=".view.OvertimeOrderActivity">
diff --git a/app/src/main/res/layout/activity_well_management.xml b/app/src/main/res/layout/activity_well_management.xml
index 819d37f..c87a5a3 100644
--- a/app/src/main/res/layout/activity_well_management.xml
+++ b/app/src/main/res/layout/activity_well_management.xml
@@ -7,8 +7,6 @@
android:orientation="vertical"
tools:context=".view.WellManagementActivity">
-
-
diff --git a/app/src/main/res/layout/activity_well_operation.xml b/app/src/main/res/layout/activity_well_operation.xml
index a3f1334..a695043 100644
--- a/app/src/main/res/layout/activity_well_operation.xml
+++ b/app/src/main/res/layout/activity_well_operation.xml
@@ -7,8 +7,6 @@
android:orientation="vertical"
tools:context=".view.WellOperationActivity">
-
-
diff --git a/app/src/main/res/layout/fragment_home.xml b/app/src/main/res/layout/fragment_home.xml
index 37d50e5..8c5f4a4 100644
--- a/app/src/main/res/layout/fragment_home.xml
+++ b/app/src/main/res/layout/fragment_home.xml
@@ -9,6 +9,7 @@
@@ -18,193 +19,179 @@
android:layout_height="match_parent" />
+ android:layout_height="@dimen/dp_30">
-
+
-
-
-
+ android:layout_marginHorizontal="@dimen/dp_10"
+ android:background="@drawable/bg_layout">
-
+
+
+
+ android:background="@drawable/bg_layout"
+ android:orientation="vertical">
+
+
+
+
+ android:orientation="horizontal">
-
+
-
+
-
+
+
-
+
-
+
-
-
+
+
-
+
-
+
-
-
-
-
-
-
-
-
-
+
-
+
-
+ android:background="@drawable/bg_layout"
+ android:orientation="vertical">
+
+
+
+
+ android:orientation="horizontal">
-
+
-
+
-
+
+
-
+
-
+
-
-
+
+
-
+
-
+
-
-
+
+
-
+
-
+
-
-
-
-
-
-
-
-
-
+
-
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/fragment_order.xml b/app/src/main/res/layout/fragment_order.xml
index e798ed8..06dc5dc 100644
--- a/app/src/main/res/layout/fragment_order.xml
+++ b/app/src/main/res/layout/fragment_order.xml
@@ -3,7 +3,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:background="@color/mainBackground"
+ android:background="@color/mainBackColor"
android:orientation="vertical">
+ android:text="全\u3000部"
+ android:textColor="@color/white"
+ android:textSize="14sp" />
@@ -42,14 +43,14 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
- android:layout_marginStart="5dp"
+ android:layout_marginStart="@dimen/dp_5"
android:src="@drawable/ic_search" />
+ android:textColor="@color/colorText"
+ android:textSize="14sp" />
\ No newline at end of file
diff --git a/app/src/main/res/layout/item_choice_dialog.xml b/app/src/main/res/layout/item_choice_dialog.xml
index c792afd..a8fe9f3 100644
--- a/app/src/main/res/layout/item_choice_dialog.xml
+++ b/app/src/main/res/layout/item_choice_dialog.xml
@@ -1,7 +1,7 @@
+ android:layout_height="@dimen/titleViewHeight">
+ android:padding="@dimen/dp_10">
-
+
\ No newline at end of file
diff --git a/app/src/main/res/drawable/bg_layout_radius_20.xml b/app/src/main/res/drawable/bg_layout_radius_20.xml
index ba81626..0c2abfe 100644
--- a/app/src/main/res/drawable/bg_layout_radius_20.xml
+++ b/app/src/main/res/drawable/bg_layout_radius_20.xml
@@ -2,7 +2,7 @@
-
+
+ android:color="@color/mainBackColor" />
\ No newline at end of file
diff --git a/app/src/main/res/drawable/bottom_short_line.xml b/app/src/main/res/drawable/bottom_short_line.xml
new file mode 100644
index 0000000..10c9062
--- /dev/null
+++ b/app/src/main/res/drawable/bottom_short_line.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/drawable/ic_up.xml b/app/src/main/res/drawable/ic_up.xml
index 151a0cb..75c718f 100644
--- a/app/src/main/res/drawable/ic_up.xml
+++ b/app/src/main/res/drawable/ic_up.xml
@@ -4,6 +4,6 @@
android:viewportWidth="1024"
android:viewportHeight="1024">
diff --git a/app/src/main/res/drawable/tag_normal.xml b/app/src/main/res/drawable/tag_normal.xml
index bb88697..d38b7cc 100644
--- a/app/src/main/res/drawable/tag_normal.xml
+++ b/app/src/main/res/drawable/tag_normal.xml
@@ -1,6 +1,6 @@
-
+
diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml
index a7fbbba..a2ccde6 100644
--- a/app/src/main/res/layout/activity_main.xml
+++ b/app/src/main/res/layout/activity_main.xml
@@ -22,6 +22,5 @@
android:background="@color/white"
app:itemIconTint="@drawable/bottom_text_color"
app:itemTextColor="@drawable/bottom_text_color"
- app:labelVisibilityMode="labeled"
app:menu="@menu/bottom_nav_menu" />
\ No newline at end of file
diff --git a/app/src/main/res/layout/activity_order_overtime.xml b/app/src/main/res/layout/activity_order_overtime.xml
index fdc1aab..914cb85 100644
--- a/app/src/main/res/layout/activity_order_overtime.xml
+++ b/app/src/main/res/layout/activity_order_overtime.xml
@@ -4,7 +4,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:background="@color/mainBackground"
+ android:background="@color/mainBackColor"
android:orientation="vertical"
tools:context=".view.OvertimeOrderActivity">
diff --git a/app/src/main/res/layout/activity_well_management.xml b/app/src/main/res/layout/activity_well_management.xml
index 819d37f..c87a5a3 100644
--- a/app/src/main/res/layout/activity_well_management.xml
+++ b/app/src/main/res/layout/activity_well_management.xml
@@ -7,8 +7,6 @@
android:orientation="vertical"
tools:context=".view.WellManagementActivity">
-
-
diff --git a/app/src/main/res/layout/activity_well_operation.xml b/app/src/main/res/layout/activity_well_operation.xml
index a3f1334..a695043 100644
--- a/app/src/main/res/layout/activity_well_operation.xml
+++ b/app/src/main/res/layout/activity_well_operation.xml
@@ -7,8 +7,6 @@
android:orientation="vertical"
tools:context=".view.WellOperationActivity">
-
-
diff --git a/app/src/main/res/layout/fragment_home.xml b/app/src/main/res/layout/fragment_home.xml
index 37d50e5..8c5f4a4 100644
--- a/app/src/main/res/layout/fragment_home.xml
+++ b/app/src/main/res/layout/fragment_home.xml
@@ -9,6 +9,7 @@
@@ -18,193 +19,179 @@
android:layout_height="match_parent" />
+ android:layout_height="@dimen/dp_30">
-
+
-
-
-
+ android:layout_marginHorizontal="@dimen/dp_10"
+ android:background="@drawable/bg_layout">
-
+
+
+
+ android:background="@drawable/bg_layout"
+ android:orientation="vertical">
+
+
+
+
+ android:orientation="horizontal">
-
+
-
+
-
+
+
-
+
-
+
-
-
+
+
-
+
-
+
-
-
-
-
-
-
-
-
-
+
-
+
-
+ android:background="@drawable/bg_layout"
+ android:orientation="vertical">
+
+
+
+
+ android:orientation="horizontal">
-
+
-
+
-
+
+
-
+
-
+
-
-
+
+
-
+
-
+
-
-
+
+
-
+
-
+
-
-
-
-
-
-
-
-
-
+
-
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/fragment_order.xml b/app/src/main/res/layout/fragment_order.xml
index e798ed8..06dc5dc 100644
--- a/app/src/main/res/layout/fragment_order.xml
+++ b/app/src/main/res/layout/fragment_order.xml
@@ -3,7 +3,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:background="@color/mainBackground"
+ android:background="@color/mainBackColor"
android:orientation="vertical">
+ android:text="全\u3000部"
+ android:textColor="@color/white"
+ android:textSize="14sp" />
@@ -42,14 +43,14 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
- android:layout_marginStart="5dp"
+ android:layout_marginStart="@dimen/dp_5"
android:src="@drawable/ic_search" />
+ android:textColor="@color/colorText"
+ android:textSize="14sp" />
\ No newline at end of file
diff --git a/app/src/main/res/layout/item_choice_dialog.xml b/app/src/main/res/layout/item_choice_dialog.xml
index c792afd..a8fe9f3 100644
--- a/app/src/main/res/layout/item_choice_dialog.xml
+++ b/app/src/main/res/layout/item_choice_dialog.xml
@@ -1,7 +1,7 @@
+ android:layout_height="@dimen/titleViewHeight">
+ android:padding="@dimen/dp_10">
#1D55C6
#333333
#626262
- #F7F7F7
+ #F7F7FA
#CCCCCC
#00A000
#FF0000
diff --git a/app/src/main/java/com/casic/app/smartwell/view/WellManagementActivity.kt b/app/src/main/java/com/casic/app/smartwell/view/WellManagementActivity.kt
index b8f589c..9b25651 100644
--- a/app/src/main/java/com/casic/app/smartwell/view/WellManagementActivity.kt
+++ b/app/src/main/java/com/casic/app/smartwell/view/WellManagementActivity.kt
@@ -4,7 +4,6 @@
import android.os.Handler
import android.os.Looper
import android.os.Message
-import android.view.View
import android.view.animation.LinearInterpolator
import androidx.lifecycle.ViewModelProvider
import androidx.recyclerview.widget.LinearLayoutManager
@@ -23,7 +22,6 @@
import com.casic.app.smartwell.vm.WellTypeViewModel
import com.casic.app.smartwell.widgets.EasyPopupWindow
import kotlinx.android.synthetic.main.activity_well_management.*
-import kotlinx.android.synthetic.main.include_base_title.*
import kotlinx.android.synthetic.main.include_empty_view.*
import kotlinx.android.synthetic.main.include_search_bar.*
import java.lang.ref.WeakReference
@@ -48,9 +46,7 @@
override fun initLayoutView(): Int = R.layout.activity_well_management
override fun setupTopBarLayout() {
- titleView.text = "窨井管理"
- leftBackView.visibility = View.VISIBLE
- leftBackView.setOnClickListener { finish() }
+
}
override fun initData() {
diff --git a/app/src/main/java/com/casic/app/smartwell/view/WellOperationActivity.kt b/app/src/main/java/com/casic/app/smartwell/view/WellOperationActivity.kt
index 9876f1e..561d5d4 100644
--- a/app/src/main/java/com/casic/app/smartwell/view/WellOperationActivity.kt
+++ b/app/src/main/java/com/casic/app/smartwell/view/WellOperationActivity.kt
@@ -4,7 +4,6 @@
import android.os.Handler
import android.os.Looper
import android.os.Message
-import android.view.View
import android.view.animation.LinearInterpolator
import androidx.lifecycle.ViewModelProvider
import androidx.recyclerview.widget.LinearLayoutManager
@@ -27,7 +26,6 @@
import com.casic.app.smartwell.widgets.EasyPopupWindow
import com.pengxh.app.multilib.widget.dialog.AlertControlDialog
import kotlinx.android.synthetic.main.activity_well_operation.*
-import kotlinx.android.synthetic.main.include_base_title.*
import kotlinx.android.synthetic.main.include_empty_view.*
import kotlinx.android.synthetic.main.include_search_bar.*
import java.lang.ref.WeakReference
@@ -53,9 +51,7 @@
override fun initLayoutView(): Int = R.layout.activity_well_operation
override fun setupTopBarLayout() {
- titleView.text = "布防撤防"
- leftBackView.visibility = View.VISIBLE
- leftBackView.setOnClickListener { finish() }
+
}
override fun initData() {
diff --git a/app/src/main/java/com/casic/app/smartwell/view/fragment/HomePageFragment.kt b/app/src/main/java/com/casic/app/smartwell/view/fragment/HomePageFragment.kt
index ed8f009..78e7414 100644
--- a/app/src/main/java/com/casic/app/smartwell/view/fragment/HomePageFragment.kt
+++ b/app/src/main/java/com/casic/app/smartwell/view/fragment/HomePageFragment.kt
@@ -28,6 +28,8 @@
import com.casic.app.smartwell.vm.WellListViewModel
import com.casic.app.smartwell.vm.WorkOrderViewModel
import com.casic.app.smartwell.widgets.GaoDeClusterMarkerView
+import com.google.android.material.bottomsheet.BottomSheetBehavior
+import com.pengxh.app.multilib.utils.SizeUtil
import com.pengxh.app.multilib.widget.dialog.AlertControlDialog
import kotlinx.android.synthetic.main.fragment_home.view.*
import kotlinx.android.synthetic.main.include_base_title.view.*
@@ -62,6 +64,18 @@
homeView = inflater.inflate(R.layout.fragment_home, container, false)
homeView.titleView.text = "首页"
+ //代码设置底部拉升距离
+ val bottomSheetBehavior = BottomSheetBehavior.from(homeView.bottomBehaviorLayout)
+ homeView.coordinatorLayout.post {
+ bottomSheetBehavior.isFitToContents = false
+ bottomSheetBehavior.halfExpandedRatio = 0.23f
+ bottomSheetBehavior.isHideable = false
+ bottomSheetBehavior.peekHeight = SizeUtil.dp2px(requireContext(), 30f)
+ bottomSheetBehavior.setExpandedOffset(
+ (SizeUtil.getScreenHeight(requireContext()) * 0.3).toInt()
+ )
+ }
+
//初始化vm
wellCountViewModel = ViewModelProvider(this).get(WellCountViewModel::class.java)
workOrderViewModel = ViewModelProvider(this).get(WorkOrderViewModel::class.java)
diff --git a/app/src/main/res/drawable/bg_layout.xml b/app/src/main/res/drawable/bg_layout.xml
index d56f439..f00d59c 100644
--- a/app/src/main/res/drawable/bg_layout.xml
+++ b/app/src/main/res/drawable/bg_layout.xml
@@ -4,5 +4,5 @@
-
+
\ No newline at end of file
diff --git a/app/src/main/res/drawable/bg_layout_radius_20.xml b/app/src/main/res/drawable/bg_layout_radius_20.xml
index ba81626..0c2abfe 100644
--- a/app/src/main/res/drawable/bg_layout_radius_20.xml
+++ b/app/src/main/res/drawable/bg_layout_radius_20.xml
@@ -2,7 +2,7 @@
-
+
+ android:color="@color/mainBackColor" />
\ No newline at end of file
diff --git a/app/src/main/res/drawable/bottom_short_line.xml b/app/src/main/res/drawable/bottom_short_line.xml
new file mode 100644
index 0000000..10c9062
--- /dev/null
+++ b/app/src/main/res/drawable/bottom_short_line.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/drawable/ic_up.xml b/app/src/main/res/drawable/ic_up.xml
index 151a0cb..75c718f 100644
--- a/app/src/main/res/drawable/ic_up.xml
+++ b/app/src/main/res/drawable/ic_up.xml
@@ -4,6 +4,6 @@
android:viewportWidth="1024"
android:viewportHeight="1024">
diff --git a/app/src/main/res/drawable/tag_normal.xml b/app/src/main/res/drawable/tag_normal.xml
index bb88697..d38b7cc 100644
--- a/app/src/main/res/drawable/tag_normal.xml
+++ b/app/src/main/res/drawable/tag_normal.xml
@@ -1,6 +1,6 @@
-
+
diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml
index a7fbbba..a2ccde6 100644
--- a/app/src/main/res/layout/activity_main.xml
+++ b/app/src/main/res/layout/activity_main.xml
@@ -22,6 +22,5 @@
android:background="@color/white"
app:itemIconTint="@drawable/bottom_text_color"
app:itemTextColor="@drawable/bottom_text_color"
- app:labelVisibilityMode="labeled"
app:menu="@menu/bottom_nav_menu" />
\ No newline at end of file
diff --git a/app/src/main/res/layout/activity_order_overtime.xml b/app/src/main/res/layout/activity_order_overtime.xml
index fdc1aab..914cb85 100644
--- a/app/src/main/res/layout/activity_order_overtime.xml
+++ b/app/src/main/res/layout/activity_order_overtime.xml
@@ -4,7 +4,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:background="@color/mainBackground"
+ android:background="@color/mainBackColor"
android:orientation="vertical"
tools:context=".view.OvertimeOrderActivity">
diff --git a/app/src/main/res/layout/activity_well_management.xml b/app/src/main/res/layout/activity_well_management.xml
index 819d37f..c87a5a3 100644
--- a/app/src/main/res/layout/activity_well_management.xml
+++ b/app/src/main/res/layout/activity_well_management.xml
@@ -7,8 +7,6 @@
android:orientation="vertical"
tools:context=".view.WellManagementActivity">
-
-
diff --git a/app/src/main/res/layout/activity_well_operation.xml b/app/src/main/res/layout/activity_well_operation.xml
index a3f1334..a695043 100644
--- a/app/src/main/res/layout/activity_well_operation.xml
+++ b/app/src/main/res/layout/activity_well_operation.xml
@@ -7,8 +7,6 @@
android:orientation="vertical"
tools:context=".view.WellOperationActivity">
-
-
diff --git a/app/src/main/res/layout/fragment_home.xml b/app/src/main/res/layout/fragment_home.xml
index 37d50e5..8c5f4a4 100644
--- a/app/src/main/res/layout/fragment_home.xml
+++ b/app/src/main/res/layout/fragment_home.xml
@@ -9,6 +9,7 @@
@@ -18,193 +19,179 @@
android:layout_height="match_parent" />
+ android:layout_height="@dimen/dp_30">
-
+
-
-
-
+ android:layout_marginHorizontal="@dimen/dp_10"
+ android:background="@drawable/bg_layout">
-
+
+
+
+ android:background="@drawable/bg_layout"
+ android:orientation="vertical">
+
+
+
+
+ android:orientation="horizontal">
-
+
-
+
-
+
+
-
+
-
+
-
-
+
+
-
+
-
+
-
-
-
-
-
-
-
-
-
+
-
+
-
+ android:background="@drawable/bg_layout"
+ android:orientation="vertical">
+
+
+
+
+ android:orientation="horizontal">
-
+
-
+
-
+
+
-
+
-
+
-
-
+
+
-
+
-
+
-
-
+
+
-
+
-
+
-
-
-
-
-
-
-
-
-
+
-
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/fragment_order.xml b/app/src/main/res/layout/fragment_order.xml
index e798ed8..06dc5dc 100644
--- a/app/src/main/res/layout/fragment_order.xml
+++ b/app/src/main/res/layout/fragment_order.xml
@@ -3,7 +3,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:background="@color/mainBackground"
+ android:background="@color/mainBackColor"
android:orientation="vertical">
+ android:text="全\u3000部"
+ android:textColor="@color/white"
+ android:textSize="14sp" />
@@ -42,14 +43,14 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
- android:layout_marginStart="5dp"
+ android:layout_marginStart="@dimen/dp_5"
android:src="@drawable/ic_search" />
+ android:textColor="@color/colorText"
+ android:textSize="14sp" />
\ No newline at end of file
diff --git a/app/src/main/res/layout/item_choice_dialog.xml b/app/src/main/res/layout/item_choice_dialog.xml
index c792afd..a8fe9f3 100644
--- a/app/src/main/res/layout/item_choice_dialog.xml
+++ b/app/src/main/res/layout/item_choice_dialog.xml
@@ -1,7 +1,7 @@
+ android:layout_height="@dimen/titleViewHeight">
+ android:padding="@dimen/dp_10">
#1D55C6
#333333
#626262
- #F7F7F7
+ #F7F7FA
#CCCCCC
#00A000
#FF0000
diff --git a/app/src/main/res/values/dimens.xml b/app/src/main/res/values/dimens.xml
index eb48ef2..1a79924 100644
--- a/app/src/main/res/values/dimens.xml
+++ b/app/src/main/res/values/dimens.xml
@@ -23,7 +23,7 @@
56dp
- 48dp
+ 46dp
48px