summaryrefslogtreecommitdiff
path: root/app/src/main
diff options
context:
space:
mode:
authorMartin Fietz <Martin.Fietz@gmail.com>2015-09-04 16:06:42 +0200
committerMartin Fietz <Martin.Fietz@gmail.com>2015-09-05 19:38:09 +0200
commit7de666f511a0f073255f5eb5aa5d1b88eaffaf8f (patch)
tree9f1cad0b7f1f595a026c339e1ba1922b8c983091 /app/src/main
parent4bfa2cc2f19720a880bba4092393fbb26bccf507 (diff)
downloadAntennaPod-7de666f511a0f073255f5eb5aa5d1b88eaffaf8f.zip
Use CardView to add a shadow
Diffstat (limited to 'app/src/main')
-rw-r--r--app/src/main/res/layout/choose_speed_dialog.xml48
1 files changed, 30 insertions, 18 deletions
diff --git a/app/src/main/res/layout/choose_speed_dialog.xml b/app/src/main/res/layout/choose_speed_dialog.xml
index 7fac5261f..cc0ecb62e 100644
--- a/app/src/main/res/layout/choose_speed_dialog.xml
+++ b/app/src/main/res/layout/choose_speed_dialog.xml
@@ -4,30 +4,42 @@
android:layout_width="match_parent"
android:layout_height="match_parent">
- <LinearLayout
- xmlns:android="http://schemas.android.com/apk/res/android"
- android:orientation="vertical"
+ <android.support.v7.widget.CardView
+ xmlns:card_view="http://schemas.android.com/apk/res-auto"
+ android:id="@+id/card_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_gravity="center_vertical"
- android:gravity="center"
+ android:layout_gravity="center"
android:layout_margin="16dp"
- android:background="@color/white">
+ card_view:cardElevation="12dp"
+ card_view:cardCornerRadius="4dp"
+ card_view:cardUseCompatPadding="true"
+ card_view:cardBackgroundColor="@color/white">
- <TextView
- android:id="@+id/txtvSelectedSpeed"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginTop="8dp"
- android:textSize="22sp"
- android:textStyle="bold"/>
-
- <SeekBar
- android:id="@+id/sbSelectSpeed"
+ <LinearLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_marginBottom="8dp"/>
+ android:layout_gravity="center_vertical"
+ android:gravity="center">
+
+ <TextView
+ android:id="@+id/txtvSelectedSpeed"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="8dp"
+ android:textSize="22sp"
+ android:textStyle="bold"/>
+
+ <SeekBar
+ android:id="@+id/sbSelectSpeed"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginBottom="8dp"/>
+
+ </LinearLayout>
- </LinearLayout>
+ </android.support.v7.widget.CardView>
</LinearLayout>