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
ae1127f3
Commit
ae1127f3
authored
Jul 21, 2022
by
霍志良
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:价格筛选
parent
504ec287
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
2 deletions
+19
-2
PricePopupWindow.kt
m-consultant/src/main/java/com/yidianling/consultant/ui/view/PricePopupWindow.kt
+19
-2
No files found.
m-consultant/src/main/java/com/yidianling/consultant/ui/view/PricePopupWindow.kt
View file @
ae1127f3
...
...
@@ -44,6 +44,8 @@ class PricePopupWindow(
private
val
priceRangeViews
:
ArrayList
<
View
>
=
ArrayList
()
private
var
min_Price
=
""
private
var
max_Price
=
""
private
var
SeekBarLeftValue
=
0f
private
var
SeekBarRightValue
=
0f
init
{
val
view
=
...
...
@@ -113,9 +115,24 @@ class PricePopupWindow(
textView
.
isSelected
=
true
textView
.
paint
.
isFakeBoldText
=
true
tempFilter
.
priceRangesView
=
textView
if
(
priceRangesItem
.
min_price
.
isNullOrEmpty
())
min_Price
=
"0"
if
(
priceRangesItem
.
max_price
.
isNullOrEmpty
())
max_Price
=
"无限"
if
(
priceRangesItem
.
min_price
.
isNullOrEmpty
())
{
min_Price
=
"0"
SeekBarLeftValue
=
0f
}
else
{
min_Price
=
priceRangesItem
.
min_price
.
toString
()
SeekBarLeftValue
=
(
priceRangesItem
.
min_price
.
toString
().
toFloat
()
/
600
)
*
100f
}
if
(
priceRangesItem
.
max_price
.
isNullOrEmpty
())
{
max_Price
=
"无限"
SeekBarRightValue
=
100f
}
else
{
max_Price
=
priceRangesItem
.
max_price
.
toString
()
SeekBarRightValue
=
(
priceRangesItem
.
max_price
.
toString
().
toFloat
()
/
600
)
*
100f
}
contentView
.
tv_start_end_price
.
text
=
"$min_Price-$max_Price"
contentView
.
range_price_seekbar
.
setProgress
(
SeekBarLeftValue
,
SeekBarRightValue
)
// etMinPrice?.setText(priceRangesItem.min_price)
// etMaxPrice?.setText(priceRangesItem.max_price)
// etMinPrice?.setSelection(etMinPrice?.text!!.length)
...
...
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