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
4bfc8b7a
Commit
4bfc8b7a
authored
Jul 18, 2022
by
霍志良
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:金刚位
parent
28e484f5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
3 deletions
+20
-3
config.gradle
config.gradle
+2
-2
FilterPopupWindow.kt
m-consultant/src/main/java/com/yidianling/consultant/ui/view/FilterPopupWindow.kt
+3
-1
consultant_ui_filter_popup.xml
m-consultant/src/main/res/layout/consultant_ui_filter_popup.xml
+10
-0
styles.xml
m-consultant/src/main/res/values/styles.xml
+5
-0
No files found.
config.gradle
View file @
4bfc8b7a
ext
{
dev_mode
=
fals
e
//组件发布的时候需要设置为false
dev_mode
=
tru
e
//组件发布的时候需要设置为false
ydl2PublishVersion
=
"0.2.0.8"
ydlPublishVersion
=
[
// -------------- 业务模块 --------------
...
...
@@ -74,7 +74,7 @@ ext {
dependencies
=
[
//support
"appcompat-v7"
:
'androidx.appcompat:appcompat:1.2.0'
,
"design"
:
'com.google.android.material:material:1.
3
.0'
,
"design"
:
'com.google.android.material:material:1.
4
.0'
,
"support-v4"
:
'androidx.legacy:legacy-support-v4:1.0.0'
,
"cardview-v7"
:
'androidx.cardview:cardview:1.0.0'
,
"annotations"
:
"androidx.annotation:annotation:1.0.0"
,
...
...
m-consultant/src/main/java/com/yidianling/consultant/ui/view/FilterPopupWindow.kt
View file @
4bfc8b7a
...
...
@@ -15,6 +15,8 @@ import android.view.inputmethod.EditorInfo
import
android.view.inputmethod.InputMethodManager
import
android.widget.*
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.RxDeviceTool
import
com.yidianling.common.tools.RxImageTool
...
...
@@ -105,7 +107,7 @@ class FilterPopupWindow(
view
.
btnReset
.
setOnClickListener
{
reset
()
}
view
.
rangeSliderPrice
.
labelBehavior
=
LabelFormatter
.
LABEL_WITHIN_BOUNDS
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 @
4bfc8b7a
...
...
@@ -182,8 +182,18 @@
</LinearLayout>
</ScrollView>
<com.google.android.material.slider.RangeSlider
android:id=
"@+id/rangeSliderPrice"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:stepSize=
"50"
android:theme=
"@style/Theme.MaterialComponents.DayNight.NoActionBar"
android:valueFrom=
"50"
android:valueTo=
"500"
app:values=
"@array/initial_slider_values"
></com.google.android.material.slider.RangeSlider>
<LinearLayout
android:layout_width=
"match_parent"
...
...
m-consultant/src/main/res/values/styles.xml
View file @
4bfc8b7a
...
...
@@ -45,4 +45,9 @@
<item
name=
"android:windowNoTitle"
>
true
</item>
<item
name=
"android:windowIsTranslucent"
>
true
</item>
</style>
<array
name=
"initial_slider_values"
>
<item>
100
</item>
<item>
200
</item>
</array>
</resources>
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