Added a simple 'about' dialog box with menu item to show it.
This commit is contained in:
59
app/src/main/res/layout/about_layout.xml
Normal file
59
app/src/main/res/layout/about_layout.xml
Normal file
@@ -0,0 +1,59 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2009 The Android Open Source Project
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
-->
|
||||
<ScrollView>
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:padding="20dip">
|
||||
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="16sp"
|
||||
android:autoLink="web"
|
||||
android:text="OpenSeizureDetector epileptic\n
|
||||
(tonic-clonic) seizure detector and \n
|
||||
alarm system. Uses a Pebble Smart\n
|
||||
watch to detect the shaking \n
|
||||
associated with a seizure, \n
|
||||
then raises audible and text\n
|
||||
message (SMS) alerts for carers.\n
|
||||
The system is free and open source - see \n
|
||||
http://openseizuredetector.org.uk for details.
|
||||
Please report any issues to graham@openseizuredetector.org.uk\n
|
||||
or raise an issue on the project github source code \n
|
||||
repository - https://github.com/OpenSeizureDetector"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/about_credits"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingTop="20dip"
|
||||
android:textSize="16sp"
|
||||
android:text="Main Watch App and Android App \n
|
||||
copyright Graham Jones, 2015.\n
|
||||
The following libraries are used:\n
|
||||
- SYLT-FFT - https://github.com/stg/SYLT-FFT by D. Taylor.\n
|
||||
- NanoHTTPD - https://github.com/NanoHttpd/nanohttpd\n
|
||||
- jQuery - http://jquery.org\n
|
||||
- jBeep - http://www.ultraduz.com.br\n
|
||||
- Chartjs - http://www.chartjs.org\n
|
||||
- MPAndroidChart - https://github.com/PhilJay/MPAndroidChart\n
|
||||
\n
|
||||
The Logo is based on Star of life2 by Verdy P, \n
|
||||
Licensed under Public Domain via\n
|
||||
Wikimedia Commons (http://commons.wikimedia.org/wiki/File:Star_of_life2.svg#mediaviewer/File:Star_of_life2.svg).
|
||||
"
|
||||
android:autoLink="web"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
</ScrollView>
|
||||
@@ -1,58 +1,56 @@
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||
<item android:id="@+id/action_accept_alarm"
|
||||
android:title="Accept Alarm"
|
||||
android:showAsAction="never|withText"
|
||||
/>
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item
|
||||
android:id="@+id/action_accept_alarm"
|
||||
android:showAsAction="never|withText"
|
||||
android:title="Accept Alarm" />
|
||||
|
||||
|
||||
<item android:id="@+id/action_launch_pebble_app"
|
||||
android:icon="@drawable/stop_server"
|
||||
android:title="Launch Pebble App"
|
||||
android:showAsAction="never|withText"
|
||||
/>
|
||||
<item
|
||||
android:id="@+id/action_launch_pebble_app"
|
||||
android:icon="@drawable/stop_server"
|
||||
android:showAsAction="never|withText"
|
||||
android:title="Launch Pebble App" />
|
||||
|
||||
<item android:id="@+id/action_start_stop"
|
||||
android:icon="@drawable/stop_server"
|
||||
android:title="Stop Server"
|
||||
android:showAsAction="never|withText"
|
||||
/>
|
||||
<item
|
||||
android:id="@+id/action_start_stop"
|
||||
android:icon="@drawable/stop_server"
|
||||
android:showAsAction="never|withText"
|
||||
android:title="Stop Server" />
|
||||
|
||||
<item android:id="@+id/action_test_fault_beep"
|
||||
android:icon="@drawable/stop_server"
|
||||
android:title="Test Fault Beep"
|
||||
android:showAsAction="never|withText"
|
||||
/>
|
||||
<item
|
||||
android:id="@+id/action_test_fault_beep"
|
||||
android:icon="@drawable/stop_server"
|
||||
android:showAsAction="never|withText"
|
||||
android:title="Test Fault Beep" />
|
||||
|
||||
<item android:id="@+id/action_test_alarm_beep"
|
||||
android:icon="@drawable/stop_server"
|
||||
android:title="Test Alarm Beep"
|
||||
android:showAsAction="never|withText"
|
||||
/>
|
||||
<item
|
||||
android:id="@+id/action_test_alarm_beep"
|
||||
android:icon="@drawable/stop_server"
|
||||
android:showAsAction="never|withText"
|
||||
android:title="Test Alarm Beep" />
|
||||
|
||||
<item android:id="@+id/action_test_warning_beep"
|
||||
android:icon="@drawable/stop_server"
|
||||
android:title="Test Warning Beep"
|
||||
android:showAsAction="never|withText"
|
||||
/>
|
||||
<item
|
||||
android:id="@+id/action_test_warning_beep"
|
||||
android:icon="@drawable/stop_server"
|
||||
android:showAsAction="never|withText"
|
||||
android:title="Test Warning Beep" />
|
||||
|
||||
<item android:id="@+id/action_test_sms_alarm"
|
||||
android:icon="@drawable/stop_server"
|
||||
android:title="Test SMS Alarm Notification"
|
||||
android:showAsAction="never|withText"
|
||||
/>
|
||||
<item
|
||||
android:id="@+id/action_test_sms_alarm"
|
||||
android:icon="@drawable/stop_server"
|
||||
android:showAsAction="never|withText"
|
||||
android:title="Test SMS Alarm Notification" />
|
||||
|
||||
|
||||
<item android:id="@+id/action_settings"
|
||||
android:icon="@drawable/ic_action_settings"
|
||||
android:title="Settings"
|
||||
android:showAsAction="never|withText"
|
||||
/>
|
||||
<item
|
||||
android:id="@+id/action_settings"
|
||||
android:icon="@drawable/ic_action_settings"
|
||||
android:showAsAction="never|withText"
|
||||
android:title="Settings" />
|
||||
|
||||
<!--
|
||||
<item android:id="@+id/action_watch_settings"
|
||||
android:icon="@drawable/ic_action_settings"
|
||||
android:title="Watch Settings"
|
||||
android:showAsAction="never|withText"
|
||||
/>
|
||||
-->
|
||||
</menu>
|
||||
<item
|
||||
android:id="@+id/action_about"
|
||||
android:showAsAction="never|withText"
|
||||
android:title="About..." />
|
||||
|
||||
</menu>
|
||||
|
||||
6
app/src/main/res/values-w820dp/dimens.xml
Normal file
6
app/src/main/res/values-w820dp/dimens.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<resources>
|
||||
<!-- Example customization of dimensions originally defined in res/values/dimens.xml
|
||||
(such as screen margins) for screens with more than 820dp of available width. This
|
||||
would include 7" and 10" devices in landscape (~960dp and ~1280dp respectively). -->
|
||||
<dimen name="activity_horizontal_margin">64dp</dimen>
|
||||
</resources>
|
||||
5
app/src/main/res/values/dimens.xml
Normal file
5
app/src/main/res/values/dimens.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<resources>
|
||||
<!-- Default screen margins, per the Android Design guidelines. -->
|
||||
<dimen name="activity_horizontal_margin">16dp</dimen>
|
||||
<dimen name="activity_vertical_margin">16dp</dimen>
|
||||
</resources>
|
||||
Reference in New Issue
Block a user