|
|
|
@ -4,6 +4,7 @@
|
|
|
|
|
android:layout_width="match_parent" |
|
|
|
|
android:layout_height="match_parent" |
|
|
|
|
android:orientation="vertical" |
|
|
|
|
android:paddingHorizontal="2dp" |
|
|
|
|
tools:context=".MainActivity"> |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -24,9 +25,9 @@
|
|
|
|
|
android:layout_width="wrap_content" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:layout_weight="3" |
|
|
|
|
android:textAlignment="center" |
|
|
|
|
android:background="@android:color/background_light" |
|
|
|
|
android:text="" /> |
|
|
|
|
android:text="" |
|
|
|
|
android:textAlignment="center" /> |
|
|
|
|
|
|
|
|
|
<Button |
|
|
|
|
android:id="@+id/ask_location_permission_button" |
|
|
|
@ -41,26 +42,47 @@
|
|
|
|
|
<LinearLayout |
|
|
|
|
android:layout_width="match_parent" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:gravity="center_horizontal" |
|
|
|
|
android:orientation="horizontal"> |
|
|
|
|
|
|
|
|
|
<Button |
|
|
|
|
android:id="@+id/start_service_btn" |
|
|
|
|
android:layout_width="wrap_content" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:layout_weight="1" |
|
|
|
|
android:text="Start Foreground Service" /> |
|
|
|
|
android:layout_gravity="center" |
|
|
|
|
android:text="Start ▶︎" /> |
|
|
|
|
|
|
|
|
|
<Button |
|
|
|
|
android:id="@+id/stop_service_btn" |
|
|
|
|
android:layout_width="wrap_content" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:layout_weight="1" |
|
|
|
|
android:text="Stop Foreground Service" /> |
|
|
|
|
android:layout_gravity="center" |
|
|
|
|
android:text="Stop ◼︎" |
|
|
|
|
android:visibility="gone" /> |
|
|
|
|
|
|
|
|
|
<Button |
|
|
|
|
android:id="@+id/reset_record_btn" |
|
|
|
|
android:layout_width="wrap_content" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:layout_gravity="center" |
|
|
|
|
android:text="Reset ✖︎" |
|
|
|
|
android:visibility="gone" /> |
|
|
|
|
|
|
|
|
|
<Button |
|
|
|
|
android:id="@+id/export_record_btn" |
|
|
|
|
android:layout_width="wrap_content" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:layout_gravity="center" |
|
|
|
|
android:text="Export 📃" |
|
|
|
|
android:visibility="gone" /> |
|
|
|
|
|
|
|
|
|
</LinearLayout> |
|
|
|
|
|
|
|
|
|
<TextView |
|
|
|
|
android:id="@+id/status_textview" |
|
|
|
|
android:layout_width="match_parent" |
|
|
|
|
android:layout_height="wrap_content" /> |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:background="@color/lightGray" |
|
|
|
|
android:padding="5dp"/> |
|
|
|
|
|
|
|
|
|
</LinearLayout> |