diff --git a/app/src/main/res/drawable-hdpi/compass_icon.png b/app/src/main/res/drawable-hdpi/compass_icon.png
new file mode 100644
index 000000000..985d88e6f
Binary files /dev/null and b/app/src/main/res/drawable-hdpi/compass_icon.png differ
diff --git a/app/src/main/res/drawable-ldpi/compass_icon.png b/app/src/main/res/drawable-ldpi/compass_icon.png
new file mode 100644
index 000000000..1f3c4662e
Binary files /dev/null and b/app/src/main/res/drawable-ldpi/compass_icon.png differ
diff --git a/app/src/main/res/drawable-mdpi/compass_icon.png b/app/src/main/res/drawable-mdpi/compass_icon.png
new file mode 100644
index 000000000..b8a0d05e1
Binary files /dev/null and b/app/src/main/res/drawable-mdpi/compass_icon.png differ
diff --git a/app/src/main/res/drawable-xhdpi/compass_icon.png b/app/src/main/res/drawable-xhdpi/compass_icon.png
new file mode 100644
index 000000000..44cbd3d02
Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/compass_icon.png differ
diff --git a/app/src/main/res/drawable-xxhdpi/compass_icon.png b/app/src/main/res/drawable-xxhdpi/compass_icon.png
new file mode 100644
index 000000000..bd2de3294
Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/compass_icon.png differ
diff --git a/app/src/main/res/drawable-xxxhdpi/compass_icon.png b/app/src/main/res/drawable-xxxhdpi/compass_icon.png
new file mode 100644
index 000000000..fbe46d8d9
Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/compass_icon.png differ
diff --git a/app/src/main/res/drawable/compass_svg.png b/app/src/main/res/drawable/compass_svg.png
deleted file mode 100644
index b1512ae68..000000000
Binary files a/app/src/main/res/drawable/compass_svg.png and /dev/null differ
diff --git a/app/src/main/res/layout/activity_compass.xml b/app/src/main/res/layout/activity_compass.xml
index 006406c54..f14bdf39d 100644
--- a/app/src/main/res/layout/activity_compass.xml
+++ b/app/src/main/res/layout/activity_compass.xml
@@ -8,44 +8,42 @@
android:layout_width="match_parent"
android:layout_height="match_parent">
-
+ android:layout_height="wrap_content"
+ android:orientation="vertical">
+ android:layout_margin="@dimen/card_margin">
-
+ android:layout_width="match_parent"
+ android:layout_height="300dp"
+ android:layout_gravity="center"
+ android:layout_margin="@dimen/compass_margin"
+ android:src="@drawable/compass_icon" />
-
+
@@ -53,12 +51,7 @@
android:id="@+id/card_compass_raw_values"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_below="@+id/compass_card"
- android:layout_marginStart="@dimen/card_margin"
- android:layout_marginLeft="@dimen/card_margin"
- android:layout_marginTop="@dimen/card_margin"
- android:layout_marginEnd="@dimen/card_margin"
- android:layout_marginRight="@dimen/card_margin">
+ android:layout_margin="@dimen/card_margin">
@@ -86,9 +78,8 @@
android:layout_width="@dimen/dimen_zero_dp"
android:layout_height="@dimen/compass_tv_height"
android:layout_weight="1"
- android:gravity="center_vertical"
+ android:gravity="center"
android:text="@string/by"
- android:textAlignment="center"
android:textColor="@color/black"
android:textSize="@dimen/sensor_body_font" />
@@ -96,9 +87,8 @@
android:layout_width="@dimen/dimen_zero_dp"
android:layout_height="@dimen/compass_tv_height"
android:layout_weight="1"
- android:gravity="center_vertical"
+ android:gravity="center"
android:text="@string/bz"
- android:textAlignment="center"
android:textColor="@color/black"
android:textSize="@dimen/sensor_body_font" />
@@ -114,14 +104,10 @@
android:id="@+id/tv_sensor_hmc5883l_bx"
android:layout_width="@dimen/dimen_zero_dp"
android:layout_height="@dimen/compass_tv_height"
- android:layout_marginStart="@dimen/compass_tv_value_margin"
- android:layout_marginLeft="@dimen/compass_tv_value_margin"
- android:layout_marginEnd="@dimen/compass_tv_value_margin"
- android:layout_marginRight="@dimen/compass_tv_value_margin"
+ android:layout_margin="@dimen/compass_tv_value_margin"
android:layout_weight="1"
android:background="@drawable/tv_border"
- android:gravity="center_vertical"
- android:textAlignment="center"
+ android:gravity="center"
android:textColor="@color/black"
android:textSize="@dimen/sensor_body_font" />
@@ -129,14 +115,10 @@
android:id="@+id/tv_sensor_hmc5883l_by"
android:layout_width="@dimen/dimen_zero_dp"
android:layout_height="@dimen/compass_tv_height"
- android:layout_marginStart="@dimen/compass_tv_value_margin"
- android:layout_marginLeft="@dimen/compass_tv_value_margin"
- android:layout_marginEnd="@dimen/compass_tv_value_margin"
- android:layout_marginRight="@dimen/compass_tv_value_margin"
+ android:layout_margin="@dimen/compass_tv_value_margin"
android:layout_weight="1"
android:background="@drawable/tv_border"
- android:gravity="center_vertical"
- android:textAlignment="center"
+ android:gravity="center"
android:textColor="@color/black"
android:textSize="@dimen/sensor_body_font" />
@@ -144,14 +126,10 @@
android:id="@+id/tv_sensor_hmc5883l_bz"
android:layout_width="@dimen/dimen_zero_dp"
android:layout_height="@dimen/compass_tv_height"
- android:layout_marginStart="@dimen/compass_tv_value_margin"
- android:layout_marginLeft="@dimen/compass_tv_value_margin"
- android:layout_marginEnd="@dimen/compass_tv_value_margin"
- android:layout_marginRight="@dimen/compass_tv_value_margin"
+ android:layout_margin="@dimen/compass_tv_value_margin"
android:layout_weight="1"
android:background="@drawable/tv_border"
- android:gravity="center_vertical"
- android:textAlignment="center"
+ android:gravity="center"
android:textColor="@color/black"
android:textSize="@dimen/sensor_body_font" />
@@ -165,35 +143,25 @@
android:id="@+id/card_select_axes"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_below="@+id/card_compass_raw_values"
- android:layout_marginStart="@dimen/card_margin"
- android:layout_marginLeft="@dimen/card_margin"
- android:layout_marginTop="@dimen/card_margin"
- android:layout_marginEnd="@dimen/card_margin"
- android:layout_marginRight="@dimen/card_margin"
- android:layout_marginBottom="@dimen/header_padding_top">
-
-
+
+
+ android:layout_margin="@dimen/margin_10dp"
+ android:orientation="vertical">
-
+
-
+
diff --git a/app/src/main/res/values/dimens.xml b/app/src/main/res/values/dimens.xml
index a872d92b9..f9944f8c4 100644
--- a/app/src/main/res/values/dimens.xml
+++ b/app/src/main/res/values/dimens.xml
@@ -271,7 +271,7 @@
4dp
30dp
- 20dp
+ 8dp
18sp
25sp
120dp
@@ -397,10 +397,15 @@
8sp
16sp
0dp
+
+ 15dp
+ 10dp
+
60dp
50dp
5dp
8sp
90dp
9sp
+