android-seekbar

Seekbar on top of view

亡梦爱人 提交于 2019-12-10 18:51:36
问题 I am trying to implement a seekbar on top of a view like in Google Play Music app. I couldn't find answer for this anywhere.I tried negative marginBottom but the thumb was getting cut off. I found a similar post on SO SeekBar at the top of the layout in Android but with no answer so had to post this. Please help. Reference image from Google play music below. <FrameLayout android:id="@+id/rl_pager" android:layout_width="match_parent" android:layout_height="match_parent" > <ViewPager android:id

Can't move Android SeekBar with Appium

眉间皱痕 提交于 2019-12-08 17:39:47
问题 I have a customized Android seekbar like this, and the positions where it can move to. And it starts from the middle: I want to move the slider first and then check if it's saved. I have a method which I use TouchAction: public void moveSeekBar(){ WebElement seekBar = appiumDriver.findElementById("com.feverapp:id/SymptomTrackingActivity_var"); //Get start point of seekbar. int startX = seekBar.getLocation().getX(); System.out.println(startX); //Get end point of seekbar. int endX = seekBar

Buffered level of music showing in seekbar

妖精的绣舞 提交于 2019-12-08 01:59:09
问题 Hi there. As you can see i want to show buffered level of media that stream to user in android music player. The solution i imagine for this issue is that: Should i create a seekbar and a progressbar with transparent background and overlap progressbar to seek bar, whereas progreesbar showing buffered level of music. but im not sure about this strategy. is anyone to help me for best way to reaching the goal at this issue. 回答1: First of all should implements OnBufferingUpdateListener to

Android SeekBar with separators

て烟熏妆下的殇ゞ 提交于 2019-12-08 00:46:26
问题 I am making a custom SeekBar as following image. after searching through internet, I couldn't find the best solution to meet for this issue. The following code is normal SeekBar control and please help me to change like above image. <SeekBar android:id="@+id/seekBar" android:layout_width="fill_parent" android:layout_height="@dimen/sbumit_form_field_height" android:layout_marginTop="@dimen/sbumit_form_field_top_mergin" android:layout_marginLeft="@dimen/sbumit_form_field_side_mergin" android

Android - Custom SeekBar - round corners on progress bar

廉价感情. 提交于 2019-12-07 03:15:07
问题 Trying to make a custom SeekBar. I want to achieve this. What I have done so far is this. I can't find a way to round the corners on the progress bar. Can someone help with this? Here is my code main_activity.xml <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" android:gravity="center"> <SeekBar android:id="@+id/seekBar1" android:layout_width="match_parent" android

Android - How to change default SeekBar thickness?

我们两清 提交于 2019-12-06 16:36:41
问题 I have this SeekBar: <SeekBar android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="26dp" android:id="@+id/seekbar" android:visibility="gone" android:maxHeight="3dp"/> I have tried to change this SeekBar thickness using maxHeight. But nothing changed. It looks like this: I want to change this SeekBar's thickness to 3dp and make look like this: So my question is it possible to change SeekBar thickness somehow? If yes, how? 回答1: You have to change

Buffered level of music showing in seekbar

こ雲淡風輕ζ 提交于 2019-12-06 13:27:00
Hi there. As you can see i want to show buffered level of media that stream to user in android music player. The solution i imagine for this issue is that: Should i create a seekbar and a progressbar with transparent background and overlap progressbar to seek bar, whereas progreesbar showing buffered level of music. but im not sure about this strategy. is anyone to help me for best way to reaching the goal at this issue. First of all should implements OnBufferingUpdateListener to activity then set onBufferingUpdate ike this: public void onBufferingUpdate(MediaPlayer arg0, int percent) { /**

Seekbar OnProgressChanged doesn't get fired when moving manually

萝らか妹 提交于 2019-12-06 09:14:15
I have an app that is supposed to do some stuff when the seekbar is moved (manually). However, onProgressChanged never gets executed, even though I made sure that the progress value does change when moving the bar. onStartTrackingTouch and onStopTrackingTouch both get fired without any problems. public class MainActivity extends ActionBarActivity implements OnSeekBarChangeListener{ ... @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); SeekBar seekBar = (SeekBar) findViewById(R.id.seekBar1); seekBar

Android SeekBar with separators

社会主义新天地 提交于 2019-12-06 08:12:24
I am making a custom SeekBar as following image. after searching through internet, I couldn't find the best solution to meet for this issue. The following code is normal SeekBar control and please help me to change like above image. <SeekBar android:id="@+id/seekBar" android:layout_width="fill_parent" android:layout_height="@dimen/sbumit_form_field_height" android:layout_marginTop="@dimen/sbumit_form_field_top_mergin" android:layout_marginLeft="@dimen/sbumit_form_field_side_mergin" android:layout_marginRight="@dimen/sbumit_form_field_side_mergin" android:max="6"/> Your image shows exactly this

Add labels above Seekbars steps with different font size, vertically aligned to seekbars thumb

隐身守侯 提交于 2019-12-06 07:44:40
I would like to create a Seekbar , above which there will be text label on each Seekbar step, what it should look like is shown in below image this is the expected result, for which what i have done, <RelativeLayout android:id="@+id/layout_font_size" android:layout_width="match_parent" android:layout_height="wrap_content"> <TextView android:id="@+id/txtFont_size_hint" style="@style/textStyle" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/Aa" /> <LinearLayout android:id="@+id/layout_seekbar_interval_holder" android:layout_width="match_parent"