diff options
Diffstat (limited to 'res/layout/vibrator_intensity.xml')
-rw-r--r-- | res/layout/vibrator_intensity.xml | 69 |
1 files changed, 30 insertions, 39 deletions
diff --git a/res/layout/vibrator_intensity.xml b/res/layout/vibrator_intensity.xml index dcbc676..171f90e 100644 --- a/res/layout/vibrator_intensity.xml +++ b/res/layout/vibrator_intensity.xml @@ -13,46 +13,37 @@ See the License for the specific language governing permissions and limitations under the License. --> -<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_width="match_parent" - android:layout_height="match_parent"> +<RelativeLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_height="match_parent" + android:layout_width="match_parent" + android:paddingTop="24dp" + android:paddingBottom="24dp" + android:paddingEnd="24dp" > - <RelativeLayout - android:layout_width="match_parent" - android:layout_height="match_parent" - android:gravity="center_horizontal" - android:paddingBottom="20dip"> + <SeekBar + android:id="@*android:id/seekbar" + android:layout_height="wrap_content" + android:layout_width="match_parent" + android:layout_alignParentStart="true" + android:layout_marginStart="8dp" + android:layout_toStartOf="@id/value" /> - <TextView android:id="@+id/text" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:text="@string/vibrator_intensity_title" - android:paddingTop="10dip" - android:paddingLeft="20dip" - android:paddingRight="20dip" /> - <TextView android:id="@+id/value" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_alignParentRight="true" - android:paddingTop="10dip" - android:paddingLeft="20dip" - android:paddingRight="20dip" /> - <SeekBar android:id="@*android:id/seekbar" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_below="@id/text" - android:paddingTop="2dip" - android:paddingLeft="20dip" - android:paddingRight="20dip" /> + <TextView + android:id="@+id/value" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:layout_alignParentEnd="true" + android:layout_marginStart="4dp" + android:gravity="center_horizontal" + android:minEms="2" /> - <TextView - android:id="@+id/warning_text" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_below="@*android:id/seekbar" - android:paddingTop="8dip" - android:gravity="center" - android:textSize="15dp" /> + <TextView + android:id="@+id/warning_text" + android:layout_below="@*android:id/seekbar" + android:layout_height="wrap_content" + android:layout_width="match_parent" + android:layout_marginStart="24dp" + android:layout_marginTop="24dp" /> - </RelativeLayout> -</ScrollView> +</RelativeLayout> |