Commit 4bfc8b7a by 霍志良

feat:金刚位

parent 28e484f5
ext { ext {
dev_mode = false //组件发布的时候需要设置为false dev_mode = true //组件发布的时候需要设置为false
ydl2PublishVersion = "0.2.0.8" ydl2PublishVersion = "0.2.0.8"
ydlPublishVersion = [ ydlPublishVersion = [
// -------------- 业务模块 -------------- // -------------- 业务模块 --------------
...@@ -74,7 +74,7 @@ ext { ...@@ -74,7 +74,7 @@ ext {
dependencies = [ dependencies = [
//support //support
"appcompat-v7" : 'androidx.appcompat:appcompat:1.2.0', "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', "support-v4" : 'androidx.legacy:legacy-support-v4:1.0.0',
"cardview-v7" : 'androidx.cardview:cardview:1.0.0', "cardview-v7" : 'androidx.cardview:cardview:1.0.0',
"annotations" : "androidx.annotation:annotation:1.0.0", "annotations" : "androidx.annotation:annotation:1.0.0",
......
...@@ -15,6 +15,8 @@ import android.view.inputmethod.EditorInfo ...@@ -15,6 +15,8 @@ import android.view.inputmethod.EditorInfo
import android.view.inputmethod.InputMethodManager import android.view.inputmethod.InputMethodManager
import android.widget.* import android.widget.*
import com.bumptech.glide.Glide 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.ydl.ydlcommon.utils.actionutil.ActionCountUtils
import com.yidianling.common.tools.RxDeviceTool import com.yidianling.common.tools.RxDeviceTool
import com.yidianling.common.tools.RxImageTool import com.yidianling.common.tools.RxImageTool
...@@ -105,7 +107,7 @@ class FilterPopupWindow( ...@@ -105,7 +107,7 @@ class FilterPopupWindow(
view.btnReset.setOnClickListener { view.btnReset.setOnClickListener {
reset() reset()
} }
view.rangeSliderPrice.labelBehavior = LabelFormatter.LABEL_WITHIN_BOUNDS
view.btnConfirm.setOnClickListener { view.btnConfirm.setOnClickListener {
if (tempFilter.priceRanges?.key1 == "avg_price" && filterData.priceRanges.isNotEmpty()) { if (tempFilter.priceRanges?.key1 == "avg_price" && filterData.priceRanges.isNotEmpty()) {
tempFilter.priceRanges?.key1 = filterData.priceRanges[0].key1 tempFilter.priceRanges?.key1 = filterData.priceRanges[0].key1
......
...@@ -182,8 +182,18 @@ ...@@ -182,8 +182,18 @@
</LinearLayout> </LinearLayout>
</ScrollView> </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 <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
......
...@@ -45,4 +45,9 @@ ...@@ -45,4 +45,9 @@
<item name="android:windowNoTitle">true</item> <item name="android:windowNoTitle">true</item>
<item name="android:windowIsTranslucent">true</item> <item name="android:windowIsTranslucent">true</item>
</style> </style>
<array name="initial_slider_values">
<item>100</item>
<item>200</item>
</array>
</resources> </resources>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment