Skip to content

Commit

Permalink
Setup panel for interacting with the logger
Browse files Browse the repository at this point in the history
  • Loading branch information
scaryghost committed Mar 7, 2015
1 parent 70152b4 commit 94d4721
Show file tree
Hide file tree
Showing 4 changed files with 524 additions and 0 deletions.
55 changes: 55 additions & 0 deletions res/layout/fragment_logging.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/logging_plot"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:padding="16dp" >

<ScrollView
android:id="@+id/scrollView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_marginTop="50dp" >

<TextView
android:id="@+id/textView1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/label_log_help" />

</ScrollView>

<Spinner
android:id="@+id/spinner1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_below="@+id/scrollView1" />

<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
style="?android:attr/buttonBarStyle"
android:layout_centerHorizontal="true"
android:layout_below="@+id/scrollView1" >

<Button
android:id="@+id/button1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
style="@style/MetaWear.Button"
android:text="@string/label_log_start" />

<Button
android:id="@+id/button2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
style="@style/MetaWear.Button"
android:text="@string/label_log_save" />

</LinearLayout>

</RelativeLayout>
4 changes: 4 additions & 0 deletions res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,10 @@ contact MbientLab Inc, at www.mbientlab.com.
<string name="label_led_play_description">Plays the LED pattern</string>
<string name="label_led_pause_description">Pauses the LED pattern</string>

<string name="label_log_start">Log</string>
<string name="label_log_save">Save</string>
<string name="label_log_help">Select a sensor you wish to log. Press the Log button to begin logging and the Save button to download and email the data.</string>

<string name="label_neopixel_strand">Strand</string>
<string name="label_neopixel_num_leds"># of LEDs</string>
<string name="label_neopixel_strand_speed">Strand Speed</string>
Expand Down
1 change: 1 addition & 0 deletions src/com/mbientlab/metawear/app/AppFragments.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ public class AppFragments {
fragments.put("Temperature", TemperatureFragment.class);
fragments.put("Event", EventFragment.class);
fragments.put("Settings", SettingsFragment.class);
fragments.put("Logging", LoggingFragment.class);

items= fragments.keySet().toArray(new String[fragments.size()]);
}
Expand Down
Loading

0 comments on commit 94d4721

Please sign in to comment.