-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Request: SeekBarDialogPreference.setInfo(...) + realtime listener support #27
Comments
Don't know what decision @consp1racy will take, but for now you can do that setting a value via |
Hello @anggrayudi ,
The unit thing... I think it would be better as
@JoseGD I'd use Thank you both for ideas, this is totally doable. |
Everything discussed above should be implemented in latest commit. If you pull the sample app you can test it if it fits your needs. Changes include:
I'm going to try to figure out if the "info" text view could be included in |
@consp1racy, I think the best design for The dialog must use Material Dialogs specifications as explained by Google. |
The original was taken straight from AOSP 5.0 so you can't get more Material than that since MD specs are silent about seek bars. In the next version the
If you need anything special on top of what
|
@consp1racy, that's a pretty dialog. But, where's the |
@anggrayudi Damn right it's a pretty dialog, that was the goal. :D Connecting Two options come to mind:
|
Looks like seek bar preferences will have to have a |
@consp1racy, when you will release the next version of this library with some fixes? I hope you can release it ASAP. Thanks |
@anggrayudi What's "some fixes", please, be specific. The library is stable as I see it now. I currently have no clear direction how to alter If you need anything else feel free to make your own preference classes. My package should be extensible enough. |
@consp1racy, I mean, fixes for |
I don't want to repeat myself, but
They're working as intended as far as I can see. If you need anything else I gave you suggestions for alternative solutions and
What more do you want? I will not be implementing #27 (comment). It looks very specialized and you can do it yourself in your app. Potential TODOs on
|
Hi @consp1racy, I want to introduce you a new attribute for
SeekBarPreference
. I have edited below picture from your screenshot. Look at the preferences. Each of them had a unit. For Media preference, the unit is%
(percent), and for Vibration the unit isms
(milliseconds) which means the device will be vibrated for 200ms. I hope you can add this feature by adding the following attribute to the preference:Also, once user seek the bar, the value will be updated automatically.
I have the second request for you, i.e. by adding
app:asp_dialogContent="Some explanation."
attribute toSeekBarDialogPreference
. Adding this attribute makes a big difference betweenSeekBarPreference
andSeekBarDialogPreference
. Let's say that you have aSeekBarDialogPreference
without any explanation about it. If that's so, why don't you just useSeekBarPreference
which already had no explanation but a title? You can see the edited screenshot below:And the last request is, I want you to add
setMin(int min)
method andapp:asp_min
to this preference. We can define the minimum value for theSeekBar
. For example:The
SeekBar
had range value between 20 to 500 with unit in milliseconds.Thanks in advance. I hope you accept this idea.
The text was updated successfully, but these errors were encountered: