Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You are showing a SeekBar.</p> <p>You can do something like:</p> <pre><code>&lt;RelativeLayout android:id="@+id/layoutSlider" android:orientation="horizontal" android:layout_width="180dp" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:layout_height="wrap_content"&gt; &lt;ImageView android:id="@+id/imageLeft" android:layout_alignParentLeft="true" android:layout_centerVertical="true" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/imageLeft"&gt;&lt;/ImageView&gt; &lt;ImageView android:id="@+id/imageRight" android:layout_alignParentRight="true" android:layout_centerVertical="true" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/imageRight"&gt;&lt;/ImageView&gt; &lt;SeekBar android:id="@+id/sliderZoom" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_toRightOf="@id/imageLeft" android:layout_toLeftOf="@id/imageRight" android:layout_centerVertical="true" style="@style/seekBar"&gt;&lt;/SeekBar&gt; &lt;/RelativeLayout&gt; </code></pre> <p>or a horizontal LinearLayout would do.</p> <p>The images to the left and right could also be TextViews if you simply want "-" and "+" symbols.</p> <p>The seekbar has a OnSeekBarChangeListener to listen for adjustments</p> <pre><code>SeekBar mSliderZoom; mSliderZoom = (SeekBar)findViewById(R.id.sliderZoom); mSliderZoom.setOnSeekBarChangeListener(new OnSeekBarChangeListener() { @Override public void onProgressChanged(SeekBar seekBar, int progress, Boolean fromUser) { } . . . }); </code></pre> <p>This will give you something similar to this example which shows a "brightness" slider with left and right images for darkness/brightness: <img src="https://i.stack.imgur.com/XBNxR.png" alt="enter image description here"></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload