<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent" android:weightSum="1" android:gravity="center_horizontal"> <SeekBar android:layout_width="match_parent" android:layout_height="wrap_content" android:id="@+id/sliderSeekBar" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" tools:text="Sample Text" android:id="@+id/sliderTextView" android:textStyle="bold"/> </LinearLayout>