android-seekbar

performaction ACTION_SET_SELECTION not working properly

。_饼干妹妹 提交于 2020-04-18 07:28:50
问题 I am new at working with the accessibility library of android i have a lot of troubles. But there is one i think is not my fault: I want to use the accessibilitynodeinfo to start a seekbar from the middle: if(mychildinfo.getClassName().toString().contains("SeekBar")){ Bundle b = new Bundle(); b.putInt(AccessibilityNodeInfo.ACTION_ARGUMENT_SELECTION_START_INT, 49); b.putInt(AccessibilityNodeInfo.ACTION_ARGUMENT_SELECTION_END_INT, 50); mychildinfo.performAction(AccessibilityNodeInfo.ACTION_SET

performaction ACTION_SET_SELECTION not working properly

梦想的初衷 提交于 2020-04-18 07:28:25
问题 I am new at working with the accessibility library of android i have a lot of troubles. But there is one i think is not my fault: I want to use the accessibilitynodeinfo to start a seekbar from the middle: if(mychildinfo.getClassName().toString().contains("SeekBar")){ Bundle b = new Bundle(); b.putInt(AccessibilityNodeInfo.ACTION_ARGUMENT_SELECTION_START_INT, 49); b.putInt(AccessibilityNodeInfo.ACTION_ARGUMENT_SELECTION_END_INT, 50); mychildinfo.performAction(AccessibilityNodeInfo.ACTION_SET

How to add vertical lines above seekbar in android

两盒软妹~` 提交于 2020-03-06 03:28:09
问题 I am new in android and I have a small goal to achieve. I want to create a seekbar exact like that, I know how to work with normal seekbar but don't have any idea to add those vertical lines above seekbar. can you provide me solution for this? Thanks in advance. 回答1: xml file <LinearLayout android:layout_width="match_parent" android:layout_height="10dp" android:orientation="horizontal"> <LinearLayout android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="1"

How do you display 24 hour time format in hourly increments on a time slider in android?

孤者浪人 提交于 2020-03-03 11:45:06
问题 I have a 2 step question here: 1) How do I display a time slider UI which scrolls horizontally upon touch in a 24-hour format? 2) How do I divide it into a 24 hour format with each slot consisting of a 1 hour slot each? The time slot is divided into hourly increments, such that only 8 hours are visible at a time ( but it's actually a 24 hour time slider which scrolls horizontally) Also, I am planning to make it such that based on the start and end time returned by the JSON I am using, it

Android Music Seekbar is not working (Idle)

我只是一个虾纸丫 提交于 2020-01-18 05:45:28
问题 I am playing mp3 file from url, but SeekBar is not updating while playing song. When i am trying to move forcefully then song playing from start. Below code i am using to play and update SeekBar. I wanted to create a seekBar that track the progress of a mediaplayer but it doesnt work out quite well, the music is playing but the seekbar stay idle. Is there something that I left out? I think i am not not calling updateSeekBar() method from correct position...so Tried by change position of

Android custom seekbar render

拜拜、爱过 提交于 2020-01-16 05:07:10
问题 I'm trying to create a custom seekbar for my application. Waht I'd like to get is that: What I got so far: I've made the following code for the Thumb <?xml version="1.0" encoding="UTF-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="oval"> <solid android:color="#16A085"/> <size android:height="30dp" android:width="30dp" /> </shape> and that for the bar: <?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="http://schemas.android.com/apk/res

Discrete SeekBar

放肆的年华 提交于 2020-01-11 04:40:06
问题 I am trying to create a discrete seek bar for an Android app. I know I can set max and min values for a SeekBar (my ideal solution would be the Click example below) but I want the bar to move up and down the slider at particular intervals - every 10 in my case. So the only options available on the SeekBar would be; 20 30 40 50 60 70 Is it possible to define specific values to a standard Android SeekBar or at least change the intervals between items. If not, then would it be possible with a

How to use the Audio with seekbar on Recyclview android?

不想你离开。 提交于 2020-01-07 03:39:09
问题 I am using the lists of audio on my Recyclview and it is working correct means I am able to play the audio file on my Recyclview . As i am using the Seekbar with my audio file on my Recyclview , the problem is generating that when i am scrolling the Recyclview the other items's of Recyclview Seekbar is changing (Seekbar i am using for the progress of the audio file play.) What i want that other Seekbar item of Recyclview sholud not be change when i scroll the Recyclview Please check my code

How to display divider value below seekbar in Android?

感情迁移 提交于 2020-01-03 03:13:09
问题 I have added a seekbar to one of my activities. Its max value is 5. Now, I want to display the divider values (with increment 1, like 0, 1, 2, 3, 4 and 5) below my seekbar. How can I do that? Is there any system method to achieve this which I am not able to put my hands on? Any inputs are welcomed. NOTE : I want to apply any changes programatically, not from xml. The numbers should be separated at equal intervals. I could not edit it that precisely though. 回答1: I am supposing you want to

Draw custom Seekbar on Android

僤鯓⒐⒋嵵緔 提交于 2019-12-25 19:54:49
问题 I know there are a lot of libraries about that on GitHub and several questions on stack overflow about this argument. But no of those fit my needs. I just need to draw something like this : The progress line must be yellow with no thumb. Thank you in advance. 回答1: You can use something similar to what I explained here. Just use a rectangle instead of a circle. Use on-size changed to compute the actual size of the rectangle and have a method to change the percentage and re-compute your