Пример XML:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:padding="10dip">
<SeekBar android:id="@+id/default_width_seek_bar"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<SeekBar android:id="@+id/fixed_width_seek_bar"
android:layout_width="100dip"
android:layout_height="wrap_content" />
<SeekBar android:id="@+id/full_width_seek_bar"
android:layout_width="fill_parent"
android:layout_height="wrap_content" />
<SeekBar android:id="@+id/padded_full_width_seek_bar"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:paddingLeft="8dip" android:paddingRight="8dip" />
</LinearLayout>
Примечание: Большой палец SeekBar может быть обрезан при перемещении полностью в стороны. Небольшое дополнительное заполнение, как в предыдущем SeekBar, решает эту проблему.