Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YDL-Component-Medical
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨凯
YDL-Component-Medical
Commits
c8fa8df1
Commit
c8fa8df1
authored
Jul 20, 2022
by
霍志良
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:
parent
59834452
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
1 deletions
+23
-1
FilterPopupWindow.kt
m-consultant/src/main/java/com/yidianling/consultant/ui/view/FilterPopupWindow.kt
+20
-0
consultant_ui_filter_popup.xml
m-consultant/src/main/res/layout/consultant_ui_filter_popup.xml
+1
-1
arrays.xml
m-consultant/src/main/res/values/arrays.xml
+2
-0
No files found.
m-consultant/src/main/java/com/yidianling/consultant/ui/view/FilterPopupWindow.kt
View file @
c8fa8df1
...
...
@@ -18,6 +18,7 @@ import com.bumptech.glide.Glide
import
com.google.android.material.slider.LabelFormatter
import
com.google.android.material.slider.RangeSlider
import
com.ydl.ydlcommon.utils.actionutil.ActionCountUtils
import
com.yidianling.common.tools.LogUtil
import
com.yidianling.common.tools.RxDeviceTool
import
com.yidianling.common.tools.RxImageTool
import
com.yidianling.common.tools.RxKeyboardTool
...
...
@@ -27,6 +28,8 @@ import com.yidianling.consultant.listener.OnFilterConfirmListener
import
com.yidianling.consultant.model.bean.AllFilter
import
com.yidianling.consultant.model.bean.Filters
import
com.yidianling.consultant.model.bean.PriceRangesItem
import
com.yidianling.consultant.ui.view.rangeseekbar.OnRangeChangedListener
import
com.yidianling.consultant.ui.view.rangeseekbar.RangeSeekBar
import
kotlinx.android.synthetic.main.consultant_item_filter.view.*
import
kotlinx.android.synthetic.main.consultant_item_price_range.view.*
import
kotlinx.android.synthetic.main.consultant_ui_filter_popup.view.*
...
...
@@ -107,6 +110,23 @@ class FilterPopupWindow(
view
.
btnReset
.
setOnClickListener
{
reset
()
}
view
.
sb_steps_6
.
setOnRangeChangedListener
(
object
:
OnRangeChangedListener
{
override
fun
onRangeChanged
(
view
:
RangeSeekBar
?,
leftValue
:
Float
,
rightValue
:
Float
,
isFromUser
:
Boolean
)
{
LogUtil
.
e
(
"aaaaleftValue:"
+
(
leftValue
/
100
)
*
600
+
"rightValue:"
+
rightValue
)
}
override
fun
onStartTrackingTouch
(
view
:
RangeSeekBar
?,
isLeft
:
Boolean
)
{
}
override
fun
onStopTrackingTouch
(
view
:
RangeSeekBar
?,
isLeft
:
Boolean
)
{
}
})
view
.
btnConfirm
.
setOnClickListener
{
if
(
tempFilter
.
priceRanges
?.
key1
==
"avg_price"
&&
filterData
.
priceRanges
.
isNotEmpty
())
{
tempFilter
.
priceRanges
?.
key1
=
filterData
.
priceRanges
[
0
].
key1
...
...
m-consultant/src/main/res/layout/consultant_ui_filter_popup.xml
View file @
c8fa8df1
...
...
@@ -196,7 +196,7 @@
app:rsb_step_color=
"@color/platform_gray7"
app:rsb_step_height=
"5dp"
app:rsb_step_width=
"1dp"
app:rsb_steps=
"
4
"
app:rsb_steps=
"
6
"
app:rsb_thumb_drawable=
"@drawable/thumb_yellow_stroke"
app:rsb_thumb_height=
"15dp"
app:rsb_thumb_width=
"15dp"
...
...
m-consultant/src/main/res/values/arrays.xml
View file @
c8fa8df1
...
...
@@ -5,6 +5,8 @@
<item>
100
</item>
<item>
200
</item>
<item>
300
</item>
<item>
400
</item>
<item>
500
</item>
<item>
不限
</item>
</string-array>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment