florent37 / android-slidr Goto Github PK
View Code? Open in Web Editor NEWAnother android slider / seekbar, but different :-)
License: Apache License 2.0
Another android slider / seekbar, but different :-)
License: Apache License 2.0
Is there a way to make the slider snap upon release to say every 5% increments or .5% etc?
hi. Library is awesome :) niceee
but 1 problem.
if layout have scrollView - very hard sliding. 90% i cant slide to left or right side
sliding stopped after some moving because ScrollView change vertival page offset
lets try move faster, and you will see problem (layout from demo + ScrollView):
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_height="match_parent"
android:layout_width="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:padding="15dp"
tools:context="com.github.florent37.slidr.MainActivity">
<com.github.florent37.androidslidr.Slidr
android:layout_margin="20dp"
android:layout_width="250dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
app:slidr_regions_centerText="false"
app:slidr_region_leftColor="@color/colorLeft" />
<com.github.florent37.androidslidr.Slidr
android:id="@+id/slideure"
android:layout_margin="20dp"
android:layout_width="250dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
app:slidr_region_leftColor="@color/colorLeft"
app:slidr_step_colorizeAfterLast="true" />
<com.github.florent37.androidslidr.Slidr
android:id="@+id/slideure_regions"
android:layout_margin="20dp"
android:layout_width="250dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
app:slidr_regions="true"
app:slidr_region_leftColor="@color/colorLeft"
app:slidr_region_rightColor="@color/colorRight"
app:slidr_regions_textFollowRegionColor="true"
app:slidr_regions_centerText="true"
app:slidr_draw_bubble="false"
/>
<com.github.florent37.androidslidr.Slidr
android:id="@+id/slideure2"
android:layout_margin="20dp"
android:layout_width="250dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
app:slidr_barHeight="10dp"
app:slidr_step_colorizeAfterLast="true"
app:slidr_textBottom_visible="false"
app:slidr_textTop_visible="false" />
<Button
android:id="@+id/max"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="change max"
/>
<Button
android:id="@+id/current"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="change current"
/>
</LinearLayout>
</ScrollView>
Any way to prevent the user from changing the progress bar?
how to hide bubble Programmatically. without handling in xml.
Two questions:
Is there a way to change the slider height? and is there a way to remove the bubble above the slider?
I need it to be shown like an Android default SeekBar.
It's always light-gray, how to change it?
<com.github.florent37.androidslidr.Slidr
android:id="@+id/slidr"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="16dp"
app:slidr_barHeight="8dp"
app:slidr_draw_bubble="false"
app:slidr_region_leftColor="#4CAF50"
app:slidr_regions_centerText="false"
app:slidr_step_colorizeAfterLast="true"
app:slidr_textBottom_visible="false"
app:slidr_textTop_visible="false"/>
as like this
Gradle sync is throwing following error when I add the library with implementation 'com.github.florent37:android-slidr:1.0.4'
-
Failed to resolve: com.github.florent37:android-slidr:1.0.4
Is there anything wrong I am doing?
ENJOY!
slidr.setListener(new Slidr.Listener() {
@Override
public void valueChanged(Slidr slidr, float currentValue) {
//TO ROUND DIGIT TO NEAREST 5
slidr.setCurrentValue( (float)Math.ceil(currentValue / 5d) * 5);
}
});
Hello,
The method addStep(List) does not seem to work correctly when the steps are not sorted. It seems like the Collections.sort should be sorting this.steps and not the argument.
line ~385
public void addStep(List<Step> steps) { this.steps.addAll(steps); Collections.sort(steps); update(); }
Have a nice day.
How to change currency symbol?
No method to change or hide the euro symbol
Is there a way to make the current value indicator come closer to the bar without showing the max and min value straight out the box?
Hi @florent37 :
It would be possible to add the following features:
All through xml.
The version com.github.florent37: android-slidr: 1.0.4, does not work is not installed.
how to use slider vertical ?
How can I set the minimum value for the slidr?
Cannot find it
compile 'com.github.florent37:android-slidr:1.0.4'
Error:(52, 13) Failed to resolve: com.github.florent37:android-slidr:1.0.4
ERROR: Failed to resolve: com.github.florent37:android-slidr:1.0.4
Show in Project Structure dialog
Affected Modules: app
Just added it to gradle, what the hell?
Dear Florent!
Could you please help me to set min value to other value rather then "0".
Can I use this implementation without having to show a euro sign at the end of the value in the bubble?
Caused by: java.lang.ClassCastException: com.mohammedalaa.seekbar.RangeSeekBarView cannot be cast to com.github.florent37.androidslidr.Slidr
It would be great if some attributes were bindable.
For example
min
max
progress
listener
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.